|
||||||||||
| 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
one of the types defined in the GroupType constants.
| Field Summary | |
|---|---|
static String |
DEFAULT_CHAIN_ID
The default chain identifier is an empty space. |
| Constructor Summary | |
|---|---|
ChainImpl()
Constructs a ChainImpl object. |
|
| Method Summary | |
|---|---|
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 . |
Annotation |
getAnnotation()
get/set the Annotation of a Chain. |
Group |
getAtomGroup(int position)
return the group at position . |
List<Group> |
getAtomGroups()
Return all groups that have been specified in the ATOM section of this chain . |
List<Group> |
getAtomGroups(String type)
Get the Groups of a certain type, that are listed int the ATOM records of the PDB file. |
int |
getAtomLength()
Return the number of Groups in the ATOM records of the chain. |
String |
getAtomSequence()
Return the sequence of amino acids as it has been provided in the ATOM records. |
Sequence |
getBJSequence()
Convert the SEQRES groups of a Chain to a Biojava Sequence object. |
Group |
getGroup(int position)
Deprecated. use getAtomGroup or getSeqResGroup instead |
Group |
getGroupByPDB(String pdbresnum)
get a group by its PDB residue numbering. |
List<Group> |
getGroups()
Deprecated. use getAtomGroups instead |
List<Group> |
getGroups(String type)
Deprecated. use getAtomGroups instead |
Group[] |
getGroupsByPDB(String pdbresnumStart,
String pdbresnumEnd)
Get all groups that are located between two PDB residue numbers. |
Group[] |
getGroupsByPDB(String pdbresnumStart,
String pdbresnumEnd,
boolean ignoreMissing)
Get all groups that are located between two PDB residue numbers. |
Compound |
getHeader()
Returns the Header ( a Compound object) for this chain. |
Long |
getId()
Get the ID used by Hibernate. |
int |
getLength()
Deprecated. use getAtomLength instead |
int |
getLengthAminos()
returns the length of the AminoAcids in the ATOM records of this chain. |
String |
getName()
get and set the name of this chain (Chain id in PDB file ). |
Structure |
getParent()
Returns the parent Structure of this chain. |
Group |
getSeqResGroup(int position)
return the Group at position X. |
List<Group> |
getSeqResGroups()
Return all groups of this chain. |
List<Group> |
getSeqResGroups(String type)
Return a List of all groups of a special type (e.g. |
int |
getSeqResLength()
Returns the number of groups in the SEQRES records of the chain. |
String |
getSeqResSequence()
Get the sequence for all amino acids as it is specified in the SEQRES residues. |
String |
getSequence()
Deprecated. use getAtomSequence instead |
String |
getSwissprotId()
get the Swissprot id of this chains . |
void |
setAnnotation(Annotation anno)
get/set the Annotation of a Chain. |
void |
setAtomGroups(List<Group> groups)
Set all groups that have been specified in the ATOM section of this chain . |
void |
setHeader(Compound mol)
Set the Header from the PDB file. |
void |
setId(Long id)
Set the ID used by Hibernate. |
void |
setName(String nam)
get and set the name of this chain (Chain id in PDB file ). |
void |
setParent(Structure parent)
Set the back-reference to its parent Structure. |
void |
setSeqResGroups(List<Group> groups)
Set the list of SeqResGroups for this chain. |
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 Long getId()
getId in interface ChainChain.setId(Long)public void setId(Long id)
setId in interface Chainid - assigned by HibernateChain.getId()public void setParent(Structure parent)
setParent in interface Chainparent - the parent Structure object for this ChainChain.getParent()public Structure getParent()
getParent in interface ChainChain.setParent(Structure)public Object clone()
clone in interface Chainclone in class Objectpublic void setAnnotation(Annotation anno)
setAnnotation in interface Chainanno - the Annotation to be provided.Chain.getAnnotation()public Annotation getAnnotation()
getAnnotation in interface ChainChain.setAnnotation(Annotation)public void setHeader(Compound mol)
setHeader in interface Chainmol - the Compound that contains the header information for this chainChain.getHeader()public Compound getHeader()
getHeader in interface ChainChain.setHeader(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)
addGroup in interface Chaingroup - a Group objectpublic Group getGroup(int position)
getGroup in interface Chainposition - an int
Chain.getAtomGroup(int),
Chain.getSeqResGroup(int)public Group getAtomGroup(int position)
getAtomGroup in interface Chainposition - an int
public List<Group> getGroups(String type)
GroupType constants.
getGroups in interface Chaintype - a String
public List<Group> getAtomGroups(String type)
getAtomGroups in interface Chaintype - the type of the groups to return. Can be one of the 3 types defined in the GroupType constants
Chain.setAtomGroups(List)public List<Group> getGroups()
getGroups in interface Chainpublic List<Group> getAtomGroups()
getAtomGroups in interface ChainChain.setAtomGroups(List)public void setAtomGroups(List<Group> groups)
setAtomGroups in interface Chaingroups - a List object representing the Groups of this Chain.Chain.getAtomGroups()
public Group[] getGroupsByPDB(String pdbresnumStart,
String pdbresnumEnd,
boolean ignoreMissing)
throws StructureException
getGroupsByPDB in interface ChainpdbresnumStart - PDB residue number of startpdbresnumEnd - PDB residue number of endignoreMissing - ignore missing groups in this range.
StructureException
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
getGroupsByPDB in interface ChainpdbresnumStart - PDB residue number of startpdbresnumEnd - PDB residue number of end
StructureExceptionpublic int getLength()
Chain
getLength in interface ChainChain.getAtomLength(),
Chain.getSeqResLength()public int getLengthAminos()
getLengthAminos in interface Chainpublic int getSeqResLength()
Chain
getSeqResLength 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 Object
public Sequence getBJSequence()
throws IllegalSymbolException
getBJSequence in interface ChainIllegalSymbolExceptionpublic String getSequence()
getSequence in interface ChaingetAtomSequence(),
getSeqResSequence()public 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 int
public List<Group> getSeqResGroups(String type)
getSeqResGroups in interface Chaintype - a String
Chain.setSeqResGroups(List)public List<Group> getSeqResGroups()
getSeqResGroups in interface ChainChain.setSeqResGroups(List)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()public int getAtomLength()
getAtomLength in interface Chain
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||