Package org.biojava.nbio.structure
Class DBRef
java.lang.Object
org.biojava.nbio.structure.DBRef
- All Implemented Interfaces:
Serializable,PDBRecord
A class to represent database cross references. This is just a simple bean that contains the infor from one
DBREF line
- Since:
- 4:56:14 PM
- Version:
- %I% %G%
- Author:
- Andreas Prlic
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe name of the corresponding chain.The database of the db-ref.Sequence database accession code.Sequence database identification code.intInitial sequence number of the database seqment.intEnding sequence position of the database segment.getId()Get the ID used by Hibernate.charInsertion code of initial residue of the segment, if PDB is the reference.charInsertion code of the ending residue of the segment, if PDB is the reference.get the idCode for this entrycharInitial insertion code of the PDB sequence segment.charEnding insertion code of the PDB sequence segment.Get the structure object that this DBRef relates to.intInitial sequence number of the PDB sequence segment.intEnding sequence number of the PDB sequence segment.voidsetChainName(String chainName) The name of the corresponding chain.voidsetDatabase(String database) Specifies the database value.voidsetDbAccession(String dbAccession) Sequence database accession code.voidsetDbIdCode(String dbIdCode) Sequence database identification code.voidsetDbSeqBegin(int dbSeqBegin) Initial sequence number of the database seqment.voidsetDbSeqEnd(int dbSeqEnd) The begin of the sequence position in the databasevoidSet the ID used by Hibernate.voidsetIdbnsBegin(char idbnsBegin) Insertion code of initial residue of the segment, if PDB is the reference.voidsetIdbnsEnd(char idbnsEnd) Insertion code of the ending residue of the segment, if PDB is the reference.voidSet the idCode for this entry.voidsetInsertBegin(char insertBegin) Initial insertion code of the PDB sequence segment.voidsetInsertEnd(char insertEnd) Ending insertion code of the PDB sequence segment.voidSet the structure object that this DBRef relates to.voidsetSeqBegin(int seqbegin) Initial sequence number of the PDB sequence segment.voidsetSeqEnd(int seqEnd) Ending sequence number of the PDB sequence segment.toPDB()Convert the DBRef object to a DBREF record as it is used in PDB filesvoidtoPDB(StringBuffer buf) Append the PDB representation of this DBRef to the provided StringBuffertoString()String representation of a DBRef.
-
Constructor Details
-
DBRef
public DBRef()
-
-
Method Details
-
getId
Get the ID used by Hibernate.- Returns:
- the ID used by Hibernate
- See Also:
-
setId
Set the ID used by Hibernate.- Parameters:
id- the id assigned by Hibernate- See Also:
-
setParent
Set the structure object that this DBRef relates to.- Parameters:
s- a structure object- See Also:
-
getParent
Get the structure object that this DBRef relates to.- Returns:
- s a structure object
- See Also:
-
toPDB
Convert the DBRef object to a DBREF record as it is used in PDB files -
toPDB
Append the PDB representation of this DBRef to the provided StringBuffer -
toString
String representation of a DBRef. -
getIdCode
get the idCode for this entry- Returns:
- the idCode
- See Also:
-
setIdCode
Set the idCode for this entry.- Parameters:
idCode- the idCode for this entry- See Also:
-
getChainName
The name of the corresponding chain.- Returns:
- chainName the name of the corresponding chain.
-
setChainName
The name of the corresponding chain.- Parameters:
chainName- the name of the corresponding chain- See Also:
-
getDatabase
The database of the db-ref. uses the abbreviation as provided in the PDB files:Database name database (code in columns 27 - 32) ---------------------------------------------------------- GenBank GB Protein Data Bank PDB Protein Identification Resource PIR SWISS-PROT SWS TREMBL TREMBL UNIPROT UNP- Returns:
- name of database of this DBRef
- See Also:
-
setDatabase
Specifies the database value.- Parameters:
database- the database- See Also:
-
getDbAccession
Sequence database accession code.- Returns:
- the dbAccession
- See Also:
-
setDbAccession
Sequence database accession code.- Parameters:
dbAccession- the dbAccession- See Also:
-
getDbIdCode
Sequence database identification code.- Returns:
- the dbIdCode
- See Also:
-
setDbIdCode
Sequence database identification code.- Parameters:
dbIdCode- identification code- See Also:
-
getDbSeqBegin
Initial sequence number of the database seqment.- Returns:
- position
- See Also:
-
setDbSeqBegin
Initial sequence number of the database seqment.- Parameters:
dbSeqBegin- a sequence position- See Also:
-
getDbSeqEnd
Ending sequence position of the database segment.- Returns:
- dbSeqEnd
- See Also:
-
setDbSeqEnd
The begin of the sequence position in the database- Parameters:
dbSeqEnd- sequence position- See Also:
-
getIdbnsBegin
Insertion code of initial residue of the segment, if PDB is the reference.- Returns:
- idbnsBegin isnertion code
- See Also:
-
setIdbnsBegin
Insertion code of initial residue of the segment, if PDB is the reference.- Parameters:
idbnsBegin- insertion code- See Also:
-
getIdbnsEnd
Insertion code of the ending residue of the segment, if PDB is the reference.- Returns:
- idbnsEnd insertion code
- See Also:
-
setIdbnsEnd
Insertion code of the ending residue of the segment, if PDB is the reference.- Parameters:
idbnsEnd- the insertion code- See Also:
-
getInsertBegin
Initial insertion code of the PDB sequence segment.- Returns:
- insertBegin
- See Also:
-
setInsertBegin
Initial insertion code of the PDB sequence segment.- Parameters:
insertBegin-- See Also:
-
getInsertEnd
Ending insertion code of the PDB sequence segment.- Returns:
- insertEnd insertion code
- See Also:
-
setInsertEnd
Ending insertion code of the PDB sequence segment.- Parameters:
insertEnd- insertEnd- See Also:
-
getSeqBegin
Initial sequence number of the PDB sequence segment.- Returns:
- start seq. position
- See Also:
-
setSeqBegin
Initial sequence number of the PDB sequence segment.- Parameters:
seqbegin- start seq. position- See Also:
-
getSeqEnd
Ending sequence number of the PDB sequence segment.- Returns:
- sequence end position
- See Also:
-
setSeqEnd
Ending sequence number of the PDB sequence segment.- Parameters:
seqEnd- sequence end position- See Also:
-