|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.molecularElements.Protein
public class Protein
A protein chain.
| Nested Class Summary | |
|---|---|
static class |
Protein.BackboneFilter
Sets the chain of this protein, after asserting
that it is comprised of residues belonging to a single
polypeptide chain. |
| Field Summary | |
|---|---|
protected AngleList |
angles
|
protected AtomList |
atoms
A list of the protein's atoms. |
protected AtomPairList |
bonds
A list of the protein's bonds. |
protected ChainList |
chains
|
protected int |
firstResidueIndex
|
protected java.lang.Integer |
modelNumber
Often many models of the same protein are generated. |
protected java.lang.String |
name
The protein name. |
protected ResidueList |
residues
A list of the protein's residues. |
protected TorsionList |
torsions
|
private boolean |
verbose
|
| Constructor Summary | |
|---|---|
Protein(AtomList atomList)
Builds a protein from a list of atoms. |
|
Protein(AtomList atomList,
ResidueCreator creator)
Builds a protein from a PDB formatted file and a line filter. |
|
Protein(Residue residue)
|
|
Protein(Sequence sequence,
java.lang.String name,
ResidueCreator creator)
Builds a protein from AA sequence. |
|
Protein(Sequence sequence,
java.lang.String name,
java.lang.String chainName,
ResidueCreator creator)
|
|
Protein(java.lang.String name)
|
|
Protein(java.lang.String fileName,
Filter filter,
ResidueCreator creator)
Builds a protein from a PDB formatted file and a line filter. |
|
| Method Summary | |
|---|---|
void |
addChain(Chain chain)
|
void |
allYouWantToKnow()
|
AtomList |
atoms()
A list of the protein's atoms. |
AtomPairList |
bonds()
|
Chain |
chain()
|
ChainList |
chains()
|
void |
defrost()
Allow all atoms to move. |
int |
firstResidueIndex()
For users who need this signature. |
ResidueIdentifier[] |
firstResidues()
An array of the Residue Identifiers of the first residues in each chain In most cases it is residue 1 but in many other cases some n > 1 typicaly because the N-terminus is not present in the PDB file |
void |
freeze()
|
void |
freeze(Filter filter)
|
Atom |
getAtom(java.lang.String residueName,
ResidueIdentifier residueID,
java.lang.String atomName)
Returns the specified atom. |
private java.lang.Integer |
getModelNumber(MeshiLineReader file)
Extracts the model number from the filename. |
static java.lang.String |
getProteinName(MeshiLineReader file)
Extract the protein name from the filename. |
static java.lang.String |
getProteinName(java.lang.String pathString)
|
java.lang.String |
getSequence()
|
ResidueList |
missingResidues()
|
int |
modelNumber()
|
java.lang.String |
name()
The protein name. |
AtomList |
nowhereAtoms()
|
void |
printAtomsToFile(java.lang.String fileName)
|
Residue |
residue(int residueNumber)
Returns the residue. |
Residue |
residue(ResidueIdentifier id)
Returns the residue. |
Residue |
residueAt(int residueNumber)
|
ResidueList |
residues()
A list of the protein's residues. |
Sequence |
sequence()
|
void |
setName(java.lang.String name)
|
void |
setSS(SequenceAlignment alignment)
|
void |
setSS(java.lang.String SS)
A method to set the secondary structure of a protein. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.Integer modelNumber
protected ResidueList residues
protected ChainList chains
protected AtomList atoms
protected AtomPairList bonds
protected AngleList angles
protected TorsionList torsions
protected int firstResidueIndex
private boolean verbose
| Constructor Detail |
|---|
public Protein(java.lang.String name)
public Protein(Sequence sequence,
java.lang.String name,
ResidueCreator creator)
public Protein(Sequence sequence,
java.lang.String name,
java.lang.String chainName,
ResidueCreator creator)
public Protein(AtomList atomList,
ResidueCreator creator)
public Protein(java.lang.String fileName,
Filter filter,
ResidueCreator creator)
public Protein(Residue residue)
public Protein(AtomList atomList)
| Method Detail |
|---|
public ChainList chains()
public void addChain(Chain chain)
public ResidueList missingResidues()
public AtomList nowhereAtoms()
public AtomPairList bonds()
public static java.lang.String getProteinName(MeshiLineReader file)
public static java.lang.String getProteinName(java.lang.String pathString)
private java.lang.Integer getModelNumber(MeshiLineReader file)
public java.lang.String name()
public int modelNumber()
public AtomList atoms()
public ResidueList residues()
public ResidueIdentifier[] firstResidues()
public Residue residue(ResidueIdentifier id)
public Residue residue(int residueNumber)
public void defrost()
public void freeze()
public void freeze(Filter filter)
public java.lang.String toString()
toString in class java.lang.Object
public Atom getAtom(java.lang.String residueName,
ResidueIdentifier residueID,
java.lang.String atomName)
public int firstResidueIndex()
public void allYouWantToKnow()
public void setSS(java.lang.String SS)
public void setSS(SequenceAlignment alignment)
public java.lang.String getSequence()
public void printAtomsToFile(java.lang.String fileName)
throws java.lang.Exception
java.lang.Exceptionpublic void setName(java.lang.String name)
public Residue residueAt(int residueNumber)
public Sequence sequence()
public Chain chain()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||