Package org.biojava.nbio.structure
Class EntityInfo
java.lang.Object
org.biojava.nbio.structure.EntityInfo
- All Implemented Interfaces:
Serializable
An object to contain the info from the PDB header for a Molecule.
In mmCIF dictionary, it is called an Entity. In the case of polymers it
is defined as each group of sequence identical NCS-related chains
Now PDB file format 3.2 aware - contains the new TAX_ID fields for the
organism studied and the expression system.
- Since:
- 1.5
- Author:
- Jules Jacobsen, Jose Duarte, Anthony Bradley
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EntityInfo copying all data from the given one but not setting the Chains -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd new Chain to this EntityInfointgetAlignedResIndex(Group g, Chain c) Given a Group g of Chain c (member of this EntityInfo) return the corresponding position in the alignment of all member sequences (1-based numbering), i.e. the index (1-based) in the SEQRES sequence.getAtcc()getCell()Return the list of member chain ids (asym ids) that are described by this EntityInfo, only unique chain IDs are contained in the list.Get the list of chains that are part of this EntityInfo.getGene()getId()get the ID used by HibernateintgetMolId()Return the molecule identifier, called entity_id in mmCIF dictionary.getOrgan()Return the ref chain id value.Get the representative Chain for this EntityInfo.getTitle()getType()Get the type of entity this EntityInfo describes.voidvoidsetBiologicalUnit(String biologicalUnit) voidvoidsetCellLine(String cellLine) voidsetCellularLocation(String cellularLocation) voidSet the chains for this EntityInfovoidsetDescription(String molName) voidsetDetails(String details) voidvoidsetEngineered(String engineered) voidsetExpressionSystem(String expressionSystem) voidsetExpressionSystemAtccNumber(String expressionSystemAtccNumber) voidsetExpressionSystemCell(String expressionSystemCell) voidsetExpressionSystemCellLine(String expressionSystemCellLine) voidsetExpressionSystemCellularLocation(String expressionSystemCellularLocation) voidsetExpressionSystemGene(String expressionSystemGene) voidsetExpressionSystemOrgan(String expressionSystemOrgan) voidsetExpressionSystemOrganelle(String expressionSystemOrganelle) voidsetExpressionSystemOtherDetails(String expressionSystemOtherDetails) voidsetExpressionSystemPlasmid(String expressionSystemPlasmid) voidsetExpressionSystemStrain(String expressionSystemStrain) voidsetExpressionSystemTaxId(String expressionSystemTaxId) voidsetExpressionSystemTissue(String expressionSystemTissue) voidsetExpressionSystemVariant(String expressionSystemVariant) voidsetExpressionSystemVector(String expressionSystemVector) voidsetExpressionSystemVectorType(String expressionSystemVectorType) voidsetFragment(String fragment) voidvoidsetHeaderVars(String headerVars) voidset the ID used by HibernatevoidsetMolId(int molId) Set the molecule identifier, called entity_id in mmCIF dictionary.voidsetMutation(String mutation) voidvoidvoidsetOrganelle(String organelle) voidsetOrganismCommon(String organismCommon) voidsetOrganismScientific(String organismScientific) voidsetOrganismTaxId(String organismTaxId) voidsetRefChainId(String refChainId) Return the ref chain id value.voidsetResNames(String resNames) voidsetSecretion(String secretion) voidvoidsetSynonyms(List<String> synonyms) voidsetSynthetic(String synthetic) voidvoidvoidsetType(EntityType type) Set the type of entity this EntityInfo describes.voidsetVariant(String variant) toString()
-
Constructor Details
-
EntityInfo
public EntityInfo() -
EntityInfo
Constructs a new EntityInfo copying all data from the given one but not setting the Chains- Parameters:
c-
-
-
Method Details
-
toString
-
getRepresentative
Get the representative Chain for this EntityInfo. We choose the Chain with the first asym_id chain identifier after lexicographical sorting (case insensitive), e.g. chain A if EntityInfo is composed of chains A,B,C,D,E- Returns:
-
getId
get the ID used by Hibernate- Returns:
- the ID used by Hibernate
-
setId
set the ID used by Hibernate- Parameters:
id-
-
getChainIds
Return the list of member chain ids (asym ids) that are described by this EntityInfo, only unique chain IDs are contained in the list. Note that in the case of multimodel structures this will return just the unique chain identifiers whilstgetChains()will return a corresponding chain per model.- Returns:
- the list of unique ChainIDs that are described by this EnityInfo
- See Also:
-
getAlignedResIndex
Given a Group g of Chain c (member of this EntityInfo) return the corresponding position in the alignment of all member sequences (1-based numbering), i.e. the index (1-based) in the SEQRES sequence. This allows for comparisons of residues belonging to different chains of the same EntityInfo (entity).Note this method should only be used for entities of type
EntityType.POLYMERIf
FileParsingParameters.setAlignSeqRes(boolean)is not used or SEQRES not present, a mapping will not be available and this method will returnResidueNumber.getSeqNum()for all residues, which in some cases will be correctly aligned indices (when no insertion codes are used and when all chains within the entity are numbered in the same way), but in general they will be neither unique (because of insertion codes) nor aligned.- Parameters:
g- the groupc- the chain- Returns:
- the aligned residue index (1 to n), if no SEQRES groups are available at all then
ResidueNumber.getSeqNum()is returned as a fall-back, if the group is not found in the SEQRES groups then -1 is returned for the given group and chain - Throws:
IllegalArgumentException- if the given Chain is not a member of this EntityInfo- See Also:
-
getRefChainId
Return the ref chain id value.- Returns:
- the RefChainID
- See Also:
-
setRefChainId
Return the ref chain id value.- Parameters:
refChainId- the RefChainID- See Also:
-
getMolId
Return the molecule identifier, called entity_id in mmCIF dictionary.- Returns:
- the molecule id
- See Also:
-
setMolId
Set the molecule identifier, called entity_id in mmCIF dictionary.- Parameters:
molId- the molecule id- See Also:
-
getDescription
-
setDescription
-
getTitle
-
setTitle
-
getSynonyms
-
setSynonyms
-
getEcNums
-
setEcNums
-
getEngineered
-
setEngineered
-
getMutation
-
setMutation
-
getBiologicalUnit
-
setBiologicalUnit
-
getDetails
-
setDetails
-
getNumRes
-
setNumRes
-
getResNames
-
setResNames
-
getHeaderVars
-
setHeaderVars
-
getSynthetic
-
setSynthetic
-
getFragment
-
setFragment
-
getOrganismScientific
-
setOrganismScientific
-
getOrganismTaxId
-
setOrganismTaxId
-
getOrganismCommon
-
setOrganismCommon
-
getStrain
-
setStrain
-
getVariant
-
setVariant
-
getCellLine
-
setCellLine
-
getAtcc
-
setAtcc
-
getOrgan
-
setOrgan
-
getTissue
-
setTissue
-
getCell
-
setCell
-
getOrganelle
-
setOrganelle
-
getSecretion
-
setSecretion
-
getGene
-
setGene
-
getCellularLocation
-
setCellularLocation
-
getExpressionSystem
-
getExpressionSystemTaxId
-
setExpressionSystemTaxId
-
setExpressionSystem
-
getExpressionSystemStrain
-
setExpressionSystemStrain
-
getExpressionSystemVariant
-
setExpressionSystemVariant
-
getExpressionSystemCellLine
-
setExpressionSystemCellLine
-
getExpressionSystemAtccNumber
-
setExpressionSystemAtccNumber
-
getExpressionSystemOrgan
-
setExpressionSystemOrgan
-
getExpressionSystemTissue
-
setExpressionSystemTissue
-
getExpressionSystemCell
-
setExpressionSystemCell
-
getExpressionSystemOrganelle
-
setExpressionSystemOrganelle
-
getExpressionSystemCellularLocation
-
setExpressionSystemCellularLocation
-
getExpressionSystemVectorType
-
setExpressionSystemVectorType
-
getExpressionSystemVector
-
setExpressionSystemVector
-
getExpressionSystemPlasmid
-
setExpressionSystemPlasmid
-
getExpressionSystemGene
-
setExpressionSystemGene
-
getExpressionSystemOtherDetails
-
setExpressionSystemOtherDetails
-
getChains
Get the list of chains that are part of this EntityInfo. Note that for multi-model structures chains from all models are returned.- Returns:
- a List of Chain objects
-
addChain
Add new Chain to this EntityInfo- Parameters:
chain-
-
setChains
Set the chains for this EntityInfo- Parameters:
chains-
-
getType
Get the type of entity this EntityInfo describes. Options are polymer, non-polymer or water.- Returns:
- a string describing the type of entity. (polymer, non-polymer or water).
-
setType
Set the type of entity this EntityInfo describes. Options are polymer, non-polymer or water.- Parameters:
type- a string describing the type of entity. (polymer, non-polymer or water).
-