public interface Chain
 Defines the interface for a Chain. A Chain corresponds to a Chain in a PDB file.
 A chain consists out of a list of Group objects. A Group can either be
 an AminoAcid, Hetatom or Nucleotide.
 
 The BioJava API provides access to both the ATOM and SEQRES records in a PDB file.
 During parsing of a PDB file it aligns the ATOM and SEQRES groups and joins them.
 The SEQRES sequence can be accessed via  getSeqResGroups() and the
 ATOM groups via getAtomGroups(). Groups that have been observed
 (i.e. they are in the ATOM records) can be detected by Group.has3D()
  
| Modifier and Type | Method and Description | 
|---|---|
| void | addGroup(Group group)add a group to the list of ATOM record group of this chain. | 
| 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.HETATMorGroupType.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 pdbresnumStart,
              ResidueNumber pdbresnumEnd)Get all groups that are located between two PDB residue numbers. | 
| Group[] | getGroupsByPDB(ResidueNumber pdbresnumStart,
              ResidueNumber pdbresnumEnd,
              boolean ignoreMissing)Get all groups that are located between two PDB residue numbers. | 
| 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(Structure) 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.HETATMorGroupType.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()Gets the Swissprot id of this chain. | 
| void | setAtomGroups(List<Group> groups)Set all Groups with observed density in the chain, i.e. | 
| void | setChainID(String name)Sets the name of this chain (Chain id in PDB file ). | 
| void | setCompound(Compound compound)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. 
 use setStructure instead | 
| void | setSeqMisMatches(List<SeqMisMatch> seqMisMatches)Set annotated sequence mismatches for this chain. | 
| void | setSeqResGroups(List<Group> seqResGroups)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)Sets the Swissprot id of this chain. | 
| String | toMMCIF()Convert this Chain to a String in mmCIF format | 
| String | toPDB()Convert this Chain to a String in PDB format | 
| String | toString() | 
Object clone()
void addGroup(Group group)
group - a Group objectLong getId()
setId(Long)void setId(Long id)
id - assigned by HibernategetId()Group getAtomGroup(int position)
position - an intgetAtomLength(), 
getAtomGroups(), 
getSeqResGroup(int)Group getSeqResGroup(int position)
position - an intgetSeqResLength(), 
getSeqResGroups(), 
getAtomGroup(int)List<Group> getAtomGroups()
setAtomGroups(List), 
getAtomLength(), 
getSeqResGroups()void setAtomGroups(List<Group> groups)
groups - a List object representing the Groups of this Chain.getAtomGroups()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.type - GroupTypesetAtomGroups(List)Group getGroupByPDB(ResidueNumber resNum) throws StructureException
resNum - the PDB residue number of the groupStructureExceptionGroup[] getGroupsByPDB(ResidueNumber pdbresnumStart, ResidueNumber pdbresnumEnd) throws StructureException
pdbresnumStart - PDB residue number of startpdbresnumEnd - PDB residue number of endStructureExceptionGroup[] getGroupsByPDB(ResidueNumber pdbresnumStart, ResidueNumber pdbresnumEnd, boolean ignoreMissing) throws StructureException
pdbresnumStart - PDB residue number of startpdbresnumEnd - PDB residue number of endignoreMissing - ignore missing groups in this range.StructureExceptionint getAtomLength()
getAtomGroup(int), 
getAtomGroups(), 
#getSeqResLength())int getSeqResLength()
getSeqResGroup(int), 
getSeqResGroups(), 
getAtomLength()void setCompound(Compound compound)
compound - the CompoundgetCompound()Compound getCompound()
setCompound(Compound)void setChainID(String name)
name - a String specifying the name valuegetChainID()String getChainID()
setChainID(String)String getInternalChainID()
void setInternalChainID(String internalChainID)
internalChainID - Sequence<?> getBJSequence()
String getAtomSequence()
getSeqResSequence()String getSeqResSequence()
getAtomSequence()void setSwissprotId(String sp_id)
sp_id - a String specifying the swissprot id valuegetSwissprotId()String getSwissprotId()
setSwissprotId(String sp_id)List<Group> getSeqResGroups(GroupType type)
GroupType.AMINOACID,
 GroupType.HETATM or GroupType.NUCLEOTIDE.type - a GroupTypesetSeqResGroups(List)List<Group> getSeqResGroups()
setSeqResGroups(List), 
getSeqResLength(), 
getAtomGroups()void setSeqResGroups(List<Group> seqResGroups)
seqResGroups - a List of Group objects that from the SEQRES groups of this chain.getSeqResGroups()@Deprecated void setParent(Structure parent)
parent - the parent Structure object for this ChaingetStructure()void setStructure(Structure parent)
parent - @Deprecated Structure getParent()
setStructure(Structure)Structure getStructure()
setStructure(Structure)List<Group> getAtomLigands()
FileParsingParameters#setLoadChemCompInfo(boolean) has not been set to true.
 Otherwise the Ligands could not correctly be identified.String toPDB()
String toMMCIF()
void setSeqMisMatches(List<SeqMisMatch> seqMisMatches)
seqMisMatches - List<SeqMisMatch> getSeqMisMatches()
Copyright © 2000–2016 BioJava. All rights reserved.