|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.structure.ChainImpl
public class ChainImpl
A Chain in a PDB file. It contains several groups which can be of type "amino", "hetatm", "nucleotide".
| Field Summary | |
|---|---|
static String |
DEFAULT_CHAIN_ID
|
| Constructor Summary | |
|---|---|
ChainImpl()
Constructs a ChainImpl object. |
|
| Method Summary | |
|---|---|
void |
addGroup(Group group)
add a group to this chain. |
Object |
clone()
returns an identical copy of this Chain . |
Annotation |
getAnnotation()
get/set the Annotation of a Chain. |
Group |
getGroup(int position)
return the amino acid at position . |
Group |
getGroupByPDB(String pdbresnum)
get a group by its PDB residue numbering. |
List |
getGroups()
return all groups of this chain . |
List |
getGroups(String type)
return an array of all groups of a special type (e.g. |
Group[] |
getGroupsByPDB(String pdbresnumStart,
String pdbresnumEnd)
get all groups that are located between two PDB residue numbers |
int |
getLength()
get total length of chain, including HETATMs.. |
int |
getLengthAminos()
returns the length of the AminoAcids in chain, without HETATMs. |
String |
getName()
get and set the name of this chain (Chain id in PDB file ). |
String |
getSequence()
get amino acid sequence. |
String |
getSwissprotId()
get the Swissprot id of this chains . |
void |
setAnnotation(Annotation anno)
get/set the Annotation of a Chain. |
void |
setName(String nam)
get and set the name of this chain (Chain id in PDB file ). |
void |
setSwissprotId(String sp_id)
set the Swissprot id of this chains . |
String |
toString()
string representation. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_CHAIN_ID
| Constructor Detail |
|---|
public ChainImpl()
| Method Detail |
|---|
public Object clone()
clone in interface Chainclone in class Objectpublic void setAnnotation(Annotation anno)
Chain
setAnnotation in interface Chainanno - the Annotation to be provided.public Annotation getAnnotation()
Chain
getAnnotation in interface Chainpublic 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)
Chain
addGroup in interface Chaingroup - a Group objectpublic Group getGroup(int position)
getGroup in interface Chainposition - an int
public List getGroups(String type)
getGroups in interface Chaintype - a String
public List getGroups()
getGroups in interface Chain
public Group getGroupByPDB(String pdbresnum)
throws StructureException
Chain
getGroupByPDB in interface Chainpdbresnum - the PDB residue number of the group
StructureException
public Group[] getGroupsByPDB(String pdbresnumStart,
String pdbresnumEnd)
throws StructureException
Chain
getGroupsByPDB in interface ChainpdbresnumStart - PDB residue number of startpdbresnumEnd - PDB residue number of end
StructureExceptionpublic int getLength()
Chain
getLength in interface Chainpublic int getLengthAminos()
Chain
getLengthAminos in interface Chainpublic void setName(String nam)
setName in interface Chainnam - a String specifying the name valuegetName()public String getName()
getName in interface ChainsetName(java.lang.String)public String toString()
toString in interface ChaintoString in class Objectpublic String getSequence()
getSequence in interface Chain
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||