Package pl.poznan.put.pdb.analysis
Interface ResidueCollection
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
CifModel
,PdbModel
,SingleTypedResidueCollection
- All Known Implementing Classes:
AbstractPdbModel
,DefaultCifModel
,DefaultPdbModel
,DefaultResidueCollection
,ImmutableDefaultCifModel
,ImmutableDefaultPdbModel
,ImmutableDefaultResidueCollection
,ImmutablePdbChain
,ImmutablePdbCompactFragment
,PdbChain
,PdbCompactFragment
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A collection of residues.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder that can merge many residue collections in one mmCIF file.static final class
A builder that can merge many residue collections in one PDB file. -
Method Summary
Modifier and TypeMethodDescriptiondefault List<PdbAtomLine>
filteredAtoms
(MoleculeType moleculeType) Filters atoms in this residue collection.Analyzes atomic bond lenths to find violations (too long or too short) and generates a report in a form of a list of validation messages.default PdbResidue
findResidue
(ChainNumberICode query) Finds a residue by a triplet (chain, number, icode).default boolean
hasResidue
(ChainNumberICode query) Checks if a given (chain, number, icode) is present in this collection of residues.default int
indexOf
(ChainNumberICode query) Finds a residue by a triplet (chain, number, icode).default List<PdbNamedResidueIdentifier>
default List<PdbResidueIdentifier>
residues()
default String
sequence()
Generates a sequence out of this residue collection.default String
toCif()
Generates a list of ATOM lines in mmCIF format from this instance.default String
toPdb()
Generates a list of ATOM lines in PDB format from this instance.default ResidueCollection
Creates a new instance of this class in which atoms with alternate locations are present only once.
-
Method Details
-
residues
List<PdbResidue> residues()- Returns:
- The list of residues.
-
withoutAlternateLocations
Creates a new instance of this class in which atoms with alternate locations are present only once.- Returns:
- A copy of the current instance, but without alternate locations in atoms.
-
findBondLengthViolations
Analyzes atomic bond lenths to find violations (too long or too short) and generates a report in a form of a list of validation messages.- Returns:
- A list of error messages.
-
hasResidue
Checks if a given (chain, number, icode) is present in this collection of residues.- Parameters:
query
- A residue identifier.- Returns:
- True if a given residue is part of this collection.
-
findResidue
Finds a residue by a triplet (chain, number, icode).- Parameters:
query
- A residue identifier.- Returns:
- The residue found in this collection of residues.
-
indexOf
Finds a residue by a triplet (chain, number, icode).- Parameters:
query
- A residue identifier.- Returns:
- The index of a residue found in this collection of residues.
-
sequence
Generates a sequence out of this residue collection.- Returns:
- A sequence of one-letter-codes e.g. ACGGGG.
-
filteredAtoms
Filters atoms in this residue collection.- Parameters:
moleculeType
- Type of molecule to leave in the result.- Returns:
- A list of atoms of a given type.
-
residueIdentifiers
- Returns:
- A list of residue identifiers.
-
namedResidueIdentifiers
- Returns:
- A list of named residue identifiers.
-
toPdb
Generates a list of ATOM lines in PDB format from this instance.- Returns:
- A representation of this residue collection in PDB format.
-
toCif
Generates a list of ATOM lines in mmCIF format from this instance.- Returns:
- A representation of this residue collection in mmCIF format.
- Throws:
IOException
-