Changelog
Additions
- Added
structure.filter_nucleotides()
structure.io.pdbx.get_sequence()
is able to parse a
sequence.NucleotideSequence
from a PDBx file in addition to
sequence.ProteinSequence
- Added
structure.base_pairs()
for determining base pairs in nucleic acid
structures - Added
structure.get_residue_starts_for()
- Added
structure.check_atom_id_continuity()
- Added
structure.renumber_atom_ids()
andstructure.renumber_res_ids()
to fix structures with discontinuous atom/residue IDs - Added
get_model_count()
tostructure.io.pdb
,structure.io.pdbx
,
structure.io.mmtf
andstructure.io.gro
to obtain the total number
of models - The
model
parameter inget_structure()
instructure.io.pdb
,
structure.io.pdbx
,structure.io.mmtf
andstructure.io.gro
supports
negative values to start indexing beginning from the last model - Increased performance of residue and chain-related functions
(e.g.structure.get_residue.starts()
)
Changes
- Revamped altloc ID handling (#194)
- Instead of choosing each alternate location individually there are three
options: 'first'
choses always chooses the atoms with the first altloc ID
for each residue'occupancy'
choses always chooses the atoms with the highest occupancy
for each residue'all'
does not filter any altloc IDs and adds thealtloc_id
annotation to the resultingstructure.AtomArray
or
structure.AtomArrayStack
- Instead of choosing each alternate location individually there are three
- Renamed
structure.check_id_continuity()
into
structure.check_res_id_continuity()
;structure.check_id_continuity()
is still available, but is deprecated
Fixes
- Fixed
structure.BondList
being iterable, yielding nonsense values - Improved element guesses in
structure.io.pdb.PDBFile
when the
element column is missing (#188) - Fixed parsing of single models from
structure.io.mmtf.MMTFFile
(#205) - Fixed missing unit cell values in
structure.io.pdbx.get_structure()
raising an error; thebox
attribute is set toNone
instead