Changelog
Additions
- Added PubChem database interface with
database.pubchem
(#472)- Analogous to the other
database
subpackages, it supports,search()
andfetch()
fetch_property()
can be used to quickly obtain a wide range of properties for a given list of compound IDs- Automatic throttle control ensures that the PubChem usage control is obeyed
- Analogous to the other
- Extended functionality for
database.rcsb.search()
anddatabase.rcsb.count()
(#466):- Added support for computational structures (e.g. from Alphafold DB) via the
content_types
parameter - Added support for grouping via the new
group_by
andreturn_groups
parameters- the type of grouping is selected via
Grouping
subclasses
- the type of grouping is selected via
- Added support for ascending sorting with the
Sorting
class
- Added support for computational structures (e.g. from Alphafold DB) via the
database.entrez.search()
now also accepts the common database name in addition to the E-utility database name (#471)- This is now consistent with the behavior in
database.entrez.fetch()
- This is now consistent with the behavior in
- Added
structure.io.pdb.PDBFile.get_b_factor()
analogous tostructure.io.pdb.PDBFile.get_coord()
(#469) - Added
structure.io.pdbx.get_component()
andset_component()
(#468)- Allows getting/setting chemical components from/to PDBx files via their
chem_comp
group of categories instead ofatom_site
- Allows getting/setting chemical components from/to PDBx files via their
Changes
- Deprecate
atom_mask
parameter instructure.connect_via_residue_names()
andstructure.connect_via_distances()
(#474)- It has no effect anymore
- In
structure.BondList.merge()
theBondList
given as parameter takes precedence, if bothBondList
s contain the same bond with differentBondType
(#473)- Previously it was the other way round
- The
BondList
returned bystructure.io.pdb.PDBFile.get_structure()
(ifinclude_bonds
isTrue
) gives appropriateBondType
s, if they can be determined using the CCD (#473)- Otherwise the
BondType
isBondType.ANY
- Previously it was
BondType.ANY
for all bonds
- Otherwise the
- Refactored
structure.remove_pbc()
(#460)- PCB removal is conducted for each molecule separately
- Not the first atom but the centroid of a molecule is placed within the box
- The
selection
can only be a boolean matrix
Fixes
- Fixed a bug in
structure.connect_via_distances()
andstructure.connect_via_residue_names()
that allowed unexpected bonds between polymer and non-polymer residues (#473)