Changelog
Additions
- Added
J(leucine or isoleucine) to the ambiguousProteinSequencealphabet and the substitution matrices. (#958)- Note that this changes the symbol codes of
Xand*.
- Note that this changes the symbol codes of
- Added
structure.PSeaElementandapplication.dssp.DsspElementenums to represent secondary structure elements. (#949) - Added
sequence.io.fastq.FastqFile.Offsetenum to represent FASTQ quality score offsets. (#928, #949) - Added
rngparameter tosequence.align.EValueEstimator.from_samples(). (#949) sequence.align.score()accepts a(match, mismatch)tuple as scoring scheme. (#949)
Changes
- Renamed
structure.RigidTransformationtoAffineTransformation. (#949)- Transformations can be composed via
*and inverted via unary-.
- Transformations can be composed via
biotite.application_v2is renamed tobiotite.application, replacing the old application interface. (#949)biotite.application_v2remains as deprecated alias.
- Removed deprecated functionality: (#949)
- The old
biotite.applicationinterface sequence.align.align_local_ungapped()visualize.set_font_size_in_coord()structure.io.pdb.PDBFile.get_symmetry_mates()andstructure.io.pdb.get_symmetry_mates()as_bytesparameter ofLetterAlphabet.decode()andLetterAlphabet.decode_multiple()distance_rangeparameter ofstructure.connect_via_distances()float_toleranceparameter ofstructure.io.pdbx.compress()include_bondsparameter ofstructure.io.pdbx.set_structure()as_maskparameter ofstructure.CellList.get_atoms()andstructure.CellList.get_atoms_in_cells()
- The old
structure.io.pdbxfunctions use thelabel_xxxfields by default, i.e.use_author_fields=False. (#949)structure.io.pdbx.get_sequence()uses thelabel_asym_idas keys.
- Removed
sequence.phylo.Treeandsequence.phylo.TreeNode. (#944)sequence.phylo.upgma(),sequence.phylo.neighbor_joining()andsequence.align.align_multiple()usenetworkx.DiGraphfor trees instead.- As a result, Biotite does not contain any Cython modules anymore.
sequence.ProteinSequencedistinguishes between an unambiguous alphabet (alphabet_unambiguous) containing the 20 canonical amino acids and an ambiguous alphabet (alphabet_ambiguous) containing additionallyB,Z,J,Xand*, analogous tosequence.NucleotideSequence. (#969)- By default the unambiguous alphabet is used, unless the sequence contains ambiguous symbols or stop signals. The new
ambiguousparameter selects the alphabet explicitly. - The smaller alphabet of unambiguous protein sequences leads to smaller k-mer spaces, e.g. reducing the memory requirements of
KmerTable, but changes the k-mer codes. ProteinSequence.alphabetis replaced byalphabet_unambiguousandalphabet_ambiguous.NucleotideSequence.alphabet_unambandNucleotideSequence.alphabet_ambare renamed toalphabet_unambiguousandalphabet_ambiguous, respectively.
- By default the unambiguous alphabet is used, unless the sequence contains ambiguous symbols or stop signals. The new
- Pairwise alignment functions and
sequence.align.score()use a match/mismatch scoring scheme of(1, -1)and a gap penalty of-1by default. (#949)- To make
matrixoptional, thebandparameter ofalign_banded()and theseed/thresholdparameters ofalign_local_gapped()now precedematrix.
- To make
structure.superimpose()and its variants as well asstructure.align_vectors()andstructure.orient_principal_components()return only the transformation instead of also the transformed structure. (#949)- Multiple tuples and unstructured return values are replaced by dedicated classes: (#949)
sequence.graphics.ColorSchemeis returned byload_color_scheme()and required by the plotting functions, which do not accept plain lists of colors anymore.sequence.io.gff.GFFRecordis used byGFFFile.sequence.io.genbank.GenBankRecordis used byGenBankFile.sequence.io.genbank.GenBankLocusis used byget_locus()andset_locus().interface.pymol.CGOis used for Compiled Graphics Objects.
structure.annotate_sse()andstructure.io.pdbx.get_sse()returnPSeaElementvalues andapplication.dssp.DsspAppreturnsDsspElementvalues. (#949)sequence.io.fastq.FastqFiledoes not accept string offsets anymore. (#928, #949)sequence.io.fasta.FastaFiledoes not introduce line breaks into sequences by default. (#949)- All
fetch()functions inbiotite.databaseaccept and returnpathlib.Pathobjects and theverboseparameter is removed. (#949) - The minimum required NumPy version is now 2.1. (#942)
- All functionality deprecated in previous releases is removed.
Fixes
- Fixed
structure.hbond()potentially assigning hydrogen atoms to donors in other chains. (#942)