Skip to content

Commit

Permalink
Merge pull request #142 from biotite-dev/official-master
Browse files Browse the repository at this point in the history
Official master
  • Loading branch information
padix-key authored Sep 20, 2019
2 parents 9e143f3 + daa2f16 commit aa1b1f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/biotite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
modules.
"""

__version__ = "0.16.0"
__version__ = "0.17.0"
__author__ = "Patrick Kunzmann"

from .file import *
Expand Down
7 changes: 5 additions & 2 deletions src/biotite/database/rcsb/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def fetch(pdb_ids, format, target_path=None, overwrite=False, verbose=False):
to be downloaded .
format : str
The format of the files to be downloaded.
'pdb', 'pdbx', 'cif' or 'mmtf' are allowed.
``'pdb'``, ``'pdbx'``, ``'cif'``, ``'mmcif'`` or ``'mmtf'``
are allowed.
However, ``'pdbx'``, ``'cif'`` and ``'mmcif'`` are synonyms for
the same format.
target_path : str, optional
The target directory of the downloaded files.
By default, the file content is stored in a file-like object
Expand Down Expand Up @@ -99,7 +102,7 @@ def fetch(pdb_ids, format, target_path=None, overwrite=False, verbose=False):
else:
with open(file, "w+") as f:
f.write(content)
elif format == "cif" or format == "pdbx":
elif format in ["cif", "mmcif", "pdbx"]:
r = requests.get(_standard_url + id + ".cif")
content = r.text
_assert_valid_file(content, id)
Expand Down
2 changes: 1 addition & 1 deletion src/biotite/sequence/align/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def get_sequence_identity(alignment, mode="not_terminal"):
if len(np.unique(column)) == 1:
matches += 1

#Calculate iddentity
#Calculate identity
if mode == "shortest":
shortest_length = min([len(seq) for seq in alignment.sequences])
return matches / shortest_length
Expand Down

0 comments on commit aa1b1f9

Please sign in to comment.