Changelog
Additions
- Support for Python 3.13 (#661).
- Support for structural alphabets that encodes geometric information from
structure.AtomArray
objects insequence.Sequence
objects. - Support for positional substitution matrices. (#655)
sequence.PositionalSequence
acts as a placeholder sequence for a sequence profile in alignment functions fromsequence.align
.sequence.align.SubstitutionMatrix.as_positional()
expands a substitution matrix into a positional substitution matrix.
- New functionalities for
structure.io.pdbx
:- Custom annotations can be written with
set_structure()
withextra_fields=True
. (#669) - Missing columns in
atom_site
category are now handled by using sensible default annotations. (#670) - Added
compress()
function that automatically finds optimal encodings forBinaryCIFFile
, decreasing the file size by a factor of approx 8x. (#674) get_assembly()
now adds asym_id
annotation to better distinguish copies of the asymmetric unit. (#700)
- Custom annotations can be written with
- Added
PDBFile.get_space_group()
andPDBFile.set_space_group()
to read and write the space group information. (#707) - Added
structure.concatenate()
, which supports concatenating more thanAtomArrayStack
objects. (#712) - Performance improvements:
Changes
structure.io.pdbx.set_structure()
does not write 'canonical' bonds tostruct_conn
category anymore. (#678)- The internal Chemical Component Dictionary is not version controlled anymore. (#687, #716)
- For installations from local repository clones, it must be built with
python -m biotite.setup_ccd
.
- For installations from local repository clones, it must be built with
Fixes
structure.io.pdbx
can now handleatom_site
categories with quoted values containing whitespaces. (#673)nan
values instructure.AtomArray
now count as equal when comparingAtomArray
objects. (#714)- Fixed wrong band calculation in
sequence.align.align_banded()
that occurred when the given band was outside the sequence bounds. (#723)- This lead to premature traceback termination in rare cases.