|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.biojava.bio.structure.ChainImpl
A Chain in a PDB file. It contains several groups which can be of type "amino", "hetatm", "nucleotide".
| Constructor Summary | |
ChainImpl()
|
|
| Method Summary | |
void |
addGroup(Group group)
add a group to this chain |
Group |
getGroup(int position)
return the amino acid at position |
ArrayList |
getGroups(String type)
return an array of all groups of a special type (e.g. |
int |
getLength()
get total length of chain, including HETATMs. |
int |
getLengthAminos()
returns the length of the AminoAcids in chain, without HETATMs. |
String |
getName()
|
String |
getSequence()
get amino acid sequence |
String |
getSwissprotId()
get the Swissprot id of this chains |
void |
setName(String nam)
get and set the name of this chain (Chain id in PDB file ) |
void |
setSwissprotId(String sp_id)
this class also knows about the swissprot link ... |
String |
toString()
string representation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ChainImpl()
| Method Detail |
public void setSwissprotId(String sp_id)
setSwissprotId in interface Chainpublic String getSwissprotId()
Chain
getSwissprotId in interface Chainpublic void addGroup(Group group)
Chain
addGroup in interface Chainpublic Group getGroup(int position)
getGroup in interface Chainpublic ArrayList getGroups(String type)
getGroups in interface Chainpublic int getLength()
Chain
getLength in interface Chainpublic int getLengthAminos()
Chain
getLengthAminos in interface Chainpublic void setName(String nam)
Chain
setName in interface Chainpublic String getName()
getName in interface Chainpublic String toString()
toString in interface Chainpublic String getSequence()
getSequence in interface Chain
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||