public class ChainImpl extends Object implements Chain, Serializable
GroupType constants.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHAIN_ID
The default chain identifier used to be an empty space
|
| Constructor and Description |
|---|
ChainImpl()
Constructs a ChainImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Group group)
add a group to the list of ATOM record group of this chain.
|
protected void |
addSeqResGroup(Group g) |
Object |
clone()
Returns an identical copy of this Chain .
|
Group |
getAtomGroup(int position)
Return the Group at given position,
from within Groups with observed density in the chain, i.e.
|
List<Group> |
getAtomGroups()
Return all Groups with observed density in the chain, i.e.
|
List<Group> |
getAtomGroups(GroupType type)
Return a List of all (observed) Groups of a special type, one of:
GroupType.AMINOACID,
GroupType.HETATM or GroupType.NUCLEOTIDE. |
int |
getAtomLength()
Returns the number of Groups with observed density in the chain, i.e.
|
List<Group> |
getAtomLigands()
Gets all groups that are not polymer groups and that are not solvent groups.
|
String |
getAtomSequence()
Returns the sequence of amino acids as it has been provided in the ATOM records.
|
Sequence<?> |
getBJSequence()
Converts the SEQRES groups of a Chain to a Biojava Sequence object.
|
String |
getChainID()
Gets the name of this chain (Chain id in PDB file ).
|
Compound |
getCompound()
Returns the Compound for this chain.
|
Group |
getGroupByPDB(ResidueNumber resNum)
Get a group by its PDB residue numbering.
|
Group[] |
getGroupsByPDB(ResidueNumber start,
ResidueNumber end)
Get all groups that are located between two PDB residue numbers.
|
Group[] |
getGroupsByPDB(ResidueNumber start,
ResidueNumber end,
boolean ignoreMissing)
Deprecated.
|
Long |
getId()
Get the ID used by Hibernate.
|
String |
getInternalChainID()
If available, returns the internal chain ID that is used in mmCIF files (asym_id), otherwise null
|
Structure |
getParent()
Deprecated.
use getStructure instead.
|
List<SeqMisMatch> |
getSeqMisMatches()
Get annotated sequence mismatches for this chain.
|
Group |
getSeqResGroup(int position)
Return the Group at given position,
from within groups in the SEQRES records of the chain, i.e.
|
List<Group> |
getSeqResGroups()
Returns a list of all groups in SEQRES records of the chain, i.e.
|
List<Group> |
getSeqResGroups(GroupType type)
Returns a List of all SEQRES groups of a special type, one of:
GroupType.AMINOACID,
GroupType.HETATM or GroupType.NUCLEOTIDE. |
int |
getSeqResLength()
Returns the number of groups in the SEQRES records of the chain, i.e.
|
String |
getSeqResSequence()
Returns the PDB SEQRES sequence as a one-letter sequence string.
|
Structure |
getStructure()
Returns the parent Structure of this chain.
|
String |
getSwissprotId()
get the Swissprot id of this chains .
|
void |
setAtomGroups(List<Group> groups)
Set all Groups with observed density in the chain, i.e.
|
void |
setChainID(String nam)
Sets the name of this chain (Chain id in PDB file ).
|
void |
setCompound(Compound mol)
Sets the Compound
|
void |
setId(Long id)
Set the ID used by Hibernate.
|
void |
setInternalChainID(String internalChainID)
Sets the internal chain ID that is used in mmCif files
|
void |
setParent(Structure parent)
Deprecated.
|
void |
setSeqMisMatches(List<SeqMisMatch> seqMisMatches)
Set annotated sequence mismatches for this chain.
|
void |
setSeqResGroups(List<Group> groups)
Sets the list of SeqResGroups for this chain.
|
void |
setStructure(Structure parent)
Sets the back-reference to its parent Structure.
|
void |
setSwissprotId(String sp_id)
set the Swissprot id of this chains .
|
String |
toMMCIF()
Convert this Chain to a String in mmCIF format
|
String |
toPDB()
Convert this Chain to a String in PDB format
|
String |
toString()
String representation.
|
public static String DEFAULT_CHAIN_ID
public ChainImpl()
public Long getId()
getId in interface ChainChain.setId(Long)public void setId(Long id)
setId in interface Chainid - assigned by HibernateChain.getId()@Deprecated public void setParent(Structure parent)
setParent in interface Chainparent - the parent Structure object for this ChainChain.getStructure()public void setStructure(Structure parent)
setStructure in interface Chainpublic Structure getStructure()
getStructure in interface ChainChain.setStructure(Structure)@Deprecated public Structure getParent()
getParent in interface ChainChain.setStructure(Structure)public void setCompound(Compound mol)
setCompound in interface Chainmol - the CompoundChain.getCompound()public Compound getCompound()
getCompound in interface ChainChain.setCompound(Compound)public void setSwissprotId(String sp_id)
setSwissprotId in interface Chainsp_id - a String specifying the swissprot id valuegetSwissprotId()public String getSwissprotId()
getSwissprotId in interface ChainsetSwissprotId(java.lang.String)public void addGroup(Group group)
public Group getAtomGroup(int position)
getAtomGroup in interface Chainposition - an intChain.getAtomLength(),
Chain.getAtomGroups(),
Chain.getSeqResGroup(int)public List<Group> getAtomGroups(GroupType type)
GroupType.AMINOACID,
GroupType.HETATM or GroupType.NUCLEOTIDE.
Note that if a standard aminoacid appears as a HETATM (because it is part of a ligand) then
it is still considered as GroupType.AMINOACID and not as GroupType.HETATM.getAtomGroups in interface Chaintype - GroupTypeChain.setAtomGroups(List)public List<Group> getAtomGroups()
getAtomGroups in interface ChainChain.setAtomGroups(List),
Chain.getAtomLength(),
Chain.getSeqResGroups()public void setAtomGroups(List<Group> groups)
setAtomGroups in interface Chaingroups - a List object representing the Groups of this Chain.Chain.getAtomGroups()@Deprecated public Group[] getGroupsByPDB(ResidueNumber start, ResidueNumber end, boolean ignoreMissing) throws StructureException
ChaingetGroupsByPDB in interface Chainstart - PDB residue number of startend - PDB residue number of endignoreMissing - ignore missing groups in this range.StructureExceptionpublic Group getGroupByPDB(ResidueNumber resNum) throws StructureException
getGroupByPDB in interface ChainresNum - the PDB residue number of the groupStructureExceptionpublic Group[] getGroupsByPDB(ResidueNumber start, ResidueNumber end) throws StructureException
getGroupsByPDB in interface Chainstart - PDB residue number of startend - PDB residue number of endStructureExceptionpublic int getSeqResLength()
getSeqResLength in interface ChainChain.getSeqResGroup(int),
Chain.getSeqResGroups(),
Chain.getAtomLength()public void setChainID(String nam)
setChainID in interface Chainnam - a String specifying the name valueChain.getChainID()public String getChainID()
getChainID in interface ChainChain.setChainID(String)public Sequence<?> getBJSequence()
getBJSequence in interface Chainpublic String getAtomSequence()
getAtomSequence in interface ChainChain.getSeqResSequence()public String getSeqResSequence()
getSeqResSequence in interface ChainChain.getAtomSequence()public Group getSeqResGroup(int position)
getSeqResGroup in interface Chainposition - an intChain.getSeqResLength(),
Chain.getSeqResGroups(),
Chain.getAtomGroup(int)public List<Group> getSeqResGroups(GroupType type)
GroupType.AMINOACID,
GroupType.HETATM or GroupType.NUCLEOTIDE.getSeqResGroups in interface Chaintype - a GroupTypeChain.setSeqResGroups(List)public List<Group> getSeqResGroups()
getSeqResGroups in interface ChainChain.setSeqResGroups(List),
Chain.getSeqResLength(),
Chain.getAtomGroups()public void setSeqResGroups(List<Group> groups)
setSeqResGroups in interface Chaingroups - a List of Group objects that from the SEQRES groups of this chain.Chain.getSeqResGroups()protected void addSeqResGroup(Group g)
public int getAtomLength()
getAtomLength in interface ChainChain.getAtomGroup(int),
Chain.getAtomGroups(),
#getSeqResLength())public List<Group> getAtomLigands()
FileParsingParameters#setLoadChemCompInfo(boolean) has not been set to true.
Otherwise the Ligands could not correctly be identified.getAtomLigands in interface Chainpublic String getInternalChainID()
ChaingetInternalChainID in interface Chainpublic void setInternalChainID(String internalChainID)
ChainsetInternalChainID in interface Chainpublic String toPDB()
Chainpublic String toMMCIF()
Chainpublic void setSeqMisMatches(List<SeqMisMatch> seqMisMatches)
ChainsetSeqMisMatches in interface Chainpublic List<SeqMisMatch> getSeqMisMatches()
ChaingetSeqMisMatches in interface ChainCopyright © 2000–2017 BioJava. All rights reserved.