|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.mol.Molecule
org.strbio.mol.Polymer
org.strbio.mol.Protein
public class Protein
Class to represent a single protein. For an example of how to extend this class, see Profile or ProfilePSI
Version 1.7, 7/1/05 - added readSwissProt Version 1.64, 12/15/04 - added molecularWeight Version 1.63, 1/8/02 - change in getInfo; moved some code to parent class Version 1.62, 2/12/02 - made findPDB look for matching chain ID. Version 1.61, 11/22/00 - moved translateEA to Residue Version 1.6, 3/31/00 - split PRECALC_ANGLES into PRECALC_PHIPSI and PRECALC_ALPHATAU Version 1.5, 1/14/00 - added makeVirtualCB Version 1.48, 1/7/00 - added fixDistanceGaps Version 1.47, 1/3/00 - added makeMonDistanceCB Version 1.46, 12/6/99 - added isCATHMatch function Version 1.45, 10/28/99 - recognises PDB HEADER lines Version 1.44, 9/28/99 - made getInfo(env) get exposedArea, pctExposed Version 1.43, 7/22/99 - changed getPDBInfo to getInfo Version 1.42, 6/4/99 - added predictSS Version 1.41, 3/30/99 - made printfs consistent, limited names to 4096 chars Version 1.4, 2/10/99 - added YAPF format Version 1.38, 1/4/99 - added readCASP Version 1.37, 11/23/98 - fixed readDSSP for no-HEADER cases Version 1.36, 8/20/98 - gets secondary structure predcition if present in VAR2 file. Added translateEA from org.strbio.jmc.TPSet. Version 1.35, 8/17/98 - changed all JMC.fatal() calls to exceptions, since they aren't always fatal. Version 1.34, 8/7/98 - changed PrintfStream to Printf Version 1.33, 7/22/98 - fixed bug in reading SEQRES records in generic PDB Version 1.32, 7/17/98 - added readVar Version 1.31, 6/10/98 - added writeCASP Version 1.3, 5/21/98 - added transparent reading of gzipped files ending in .gz. Version 1.2, 4/20/98 - extends Polymer, removed JMC-specific methods Version 1.1, 4/8/98 - added static alignment methods, getPDBInfo, readList Version 1.01, 4/3/98 - added methods to setup JMCPotential's with default offset and scale. Version 1.0, 3/31/98 - original version
Atom
,
Residue
,
ProteinSet
,
Profile
,
ProfilePSI
Field Summary |
---|
Fields inherited from class org.strbio.mol.Polymer |
---|
chainID, includeFile, includingFile, monDistance, monomers, properties |
Fields inherited from class org.strbio.mol.Molecule |
---|
atoms, data, MAX_NAME_LENGTH, name |
Constructor Summary | |
---|---|
Protein()
Create a new protein with no information known about it. |
|
Protein(Protein q)
Copy another Protein, making copies of all data fields. |
|
Protein(java.lang.String sequence)
Make a new protein from a string representing a sequence. |
Method Summary | |
---|---|
Residue |
AA(int i)
returns the N'th residue in the sequence. |
double |
actualAccuracy()
The actual accuracy of the secondary structure prediction that's been done on this protein. |
Polymer |
copy()
Return a copy of yourself. |
void |
copyPredSSFrom(Protein q)
Copy predicted secondary structure info from another protein. |
double |
expectedAccuracy()
Expected accuracy of the secondary structure prediction that's been done on this protein. |
void |
filterPred()
filters predStructure predictions in a protein's residues according to DSSP rules: no helix shorter than 4, no strand shorter than 2. |
void |
filterPred(boolean frishman)
filters predStructure predictions in a protein's residues according to DSSP rules: no helix shorter than 4, no strand shorter than 2. |
void |
filterReal()
filters DSSP structure in a protein's residues according to DSSP rules: no helix shorter than 4, no strand shorter than 2. |
void |
filterReal(boolean frishman)
filters DSSP structure in a protein's residues according to DSSP rules: no helix shorter than 4, no strand shorter than 2. |
Protein |
findAccess(Printf outfile)
find a protein in a PDB file which should be this one, based on the name. |
Protein |
findDSSP(Printf outfile)
finds a protein in a PDB file which should be this one, based on the name. |
protected Protein |
findDSSPResult(ProteinSet q,
Printf outfile)
returns the appropriate protein from a set of DSSP results, aligned to this one. |
Protein |
findPDB(Printf outfile)
find a protein in a PDB file which should be this one, based on the name. |
Residue |
firstRes()
Return first residue if there is one. |
ProteinSet |
fixDistanceGaps()
Filter out distance gaps (inter-CA > 4 A or < 3.6 A), returning a new set of proteins consisting of this protein broken into fragments everywhere there is a problem. |
ProteinSet |
getDSSPResults(Printf outfile)
runs DSSP on a protein, returning a ProteinSet containing results from DSSP. |
void |
getInfo(Printf outfile,
boolean getSequence,
boolean getAngles,
boolean getAtoms,
boolean getStructure,
boolean getEnv,
boolean getPDB,
boolean getCATH)
Get info for a protein out of local databases. |
boolean |
hasGaps()
Are any residues missing? |
boolean |
isCATHMatch(Protein y)
Does this protein match another at the H level or below, according to CATH codes? |
void |
makeMonDistance()
calculate inter-residue distance matrix (CA-CA distances) for use in threading functions. |
void |
makeMonDistanceCB()
calculate inter-residue distance matrix (CB-CB distances, or CA for Gly residues) for use in threading functions. |
void |
makeVirtualCB()
Add a virtual CB atom for residues that don't have one. |
double |
molecularWeight()
Calculate molecular weight; add back the last water |
Monomer |
newMonomer()
This should return a new monomer of whatever type this polymer is made of (i.e. |
Monomer |
newMonomer(char t)
This should return a new monomer of whatever type this polymer is made of (i.e. |
Monomer |
newMonomer(java.lang.String s)
This should return a new monomer of whatever type this polymer is made of (i.e. |
void |
preCalculateAlphaTau()
pre-calculates cAlpha and cTau for all residues. |
void |
preCalculateAngles()
pre-calculates cPhi, cPsi, cAlpha, and cTau for all residues. |
void |
preCalculatePhiPsi()
pre-calculates cPhi and cPsi for all residues. |
void |
predictSS(Printf outfile)
Predict the secondary structure of this protein, using the default method (Pred2ary, with large jury). |
void |
predictSS(Printf outfile,
SSPredictor method)
Predict the secondary structure of this protein, using a specified prediction method. |
void |
processYAPF(java.lang.String buffer)
Process a line from a YAPF file... this should ignore the line if it doesn't know what it is. |
void |
readAccess(java.io.BufferedReader infile,
Printf outfile)
read a protein out of an Access file. |
void |
readCASP(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a CASP file. |
void |
readConv(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a Conv file. |
void |
readDSSP(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a DSSP file. |
void |
readEA(java.io.BufferedReader infile,
Printf outfile)
read a protein out of an EA file. |
void |
readPDB(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a PDB file. |
void |
readPDBAtom(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a PDB file with no SEQRES records. |
void |
readProf(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a Prof file. |
void |
readSwissProt(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a SwissProt file. |
void |
readVar(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a Var file. |
void |
readVar2(java.io.BufferedReader infile,
Printf outfile)
read a protein out of a Var2 file. |
protected boolean |
recognizeAndRead(java.lang.String buffer,
java.io.BufferedReader infile,
Printf outfile)
This looks for a protein and reads it in. |
int |
residues()
How many residues do we have? |
void |
reverse()
Reverse yourself. |
void |
runDSSP(Printf outfile)
Runs DSSP on this protein (which must have atomic coordinates). |
void |
showGaps(Printf outfile)
Print out possible gaps in the sequence. |
void |
smoothHE()
Do one round of 'diffusive smoothing' on the predH and predE values in a protein's residues. |
protected Polymer |
splitCopy()
This should return a copy of all data which should be copied during AutoSplit (not including monomers, monDistance, name). |
void |
stripAllButCA()
go to each residue, and remove all atoms except alpha carbons (CA). |
ThreadResults |
thread(Printf outfile)
Thread, using the default method. |
ThreadResults |
thread(Printf outfile,
ThreadMethod method)
Thread the protein, using a specified threading method. |
void |
translateEA()
Translates predH and predE into predStructure (directly). |
void |
writeCASP(Printf outfile)
Write in CASP format. |
void |
writeConv(Printf outfile)
Write in Conv format. |
void |
writeEA(Printf outfile)
Write in EA format. |
void |
writePDB(Printf outfile)
Write in PDB format, including SEQRES, JMCSTR, and ATOM records. |
void |
writePDB(Printf outfile,
boolean vanillaPDB)
Write in PDB format, which includes SEQRES and ATOM records. |
void |
writeVar2(Printf outfile)
Write in Var2 format. |
protected void |
writeYAPFInfo(Printf outfile)
Write applicable sections of YAPF info. |
Methods inherited from class org.strbio.mol.Molecule |
---|
atomSearch, copyAtoms |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Protein()
public Protein(Protein q)
public Protein(java.lang.String sequence)
Method Detail |
---|
public int residues()
public Residue firstRes()
public Monomer newMonomer()
newMonomer
in class Polymer
public Monomer newMonomer(char t)
newMonomer
in class Polymer
public Monomer newMonomer(java.lang.String s)
newMonomer
in class Polymer
protected Polymer splitCopy()
Polymer
splitCopy
in class Polymer
public final Residue AA(int i)
public void makeMonDistance()
makeMonDistance
in class Polymer
public void makeMonDistanceCB()
public final void readPDB(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open PDB fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
public final void readPDBAtom(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open PDB fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
public final void readVar2(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open Var2 fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readVar2(java.io.BufferedReader)
public final void readVar(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open Var fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readVar(java.io.BufferedReader)
public final void readEA(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open EA fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readEA(java.io.BufferedReader)
public final void readProf(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open Prof fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readProf(java.io.BufferedReader)
,
ProfRes.readProf(java.io.BufferedReader)
public final void readConv(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open Conv fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readConv(java.io.BufferedReader)
public final void readCASP(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open CASP fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
public final void readSwissProt(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open SwissProt fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
public final void readDSSP(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open DSSP fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Polymer.read(java.io.BufferedReader, org.strbio.io.Printf, boolean)
,
Residue.readDSSP(java.io.BufferedReader)
public final void readAccess(java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
infile
- an open Access fileoutfile
- if non-null, will print info on what's going on
java.io.IOException
Residue.readAccess(java.io.BufferedReader)
protected boolean recognizeAndRead(java.lang.String buffer, java.io.BufferedReader infile, Printf outfile) throws java.io.IOException
recognizeAndRead
in class Polymer
java.io.IOException
Polymer.recognizeAndRead(java.lang.String, java.io.BufferedReader, org.strbio.io.Printf)
public final double expectedAccuracy()
public final void translateEA()
public final double actualAccuracy()
public final void writePDB(Printf outfile, boolean vanillaPDB) throws java.io.IOException
outfile
- where to write tovanillaPDB
- if true, won't write JMCSTR records
java.io.IOException
public final void writePDB(Printf outfile) throws java.io.IOException
writePDB
in class Polymer
outfile
- where to write to
java.io.IOException
public final void writeEA(Printf outfile) throws java.io.IOException
outfile
- where to write to
java.io.IOException
public final void writeCASP(Printf outfile) throws java.io.IOException
outfile
- where to write to
java.io.IOException
public final void writeConv(Printf outfile) throws java.io.IOException
outfile
- where to write to
java.io.IOException
public final void writeVar2(Printf outfile) throws java.io.IOException
outfile
- where to write to
java.io.IOException
public void processYAPF(java.lang.String buffer) throws java.io.IOException
processYAPF
in class Polymer
java.io.IOException
protected void writeYAPFInfo(Printf outfile) throws java.io.IOException
writeYAPFInfo
in class Polymer
java.io.IOException
public final void filterPred(boolean frishman)
public final void filterPred()
public final void filterReal(boolean frishman)
public final void filterReal()
public final void smoothHE()
public final void stripAllButCA()
Residue.stripAllButCA()
public final void makeVirtualCB()
public Polymer copy()
copy
in class Polymer
public final boolean hasGaps()
public final ProteinSet fixDistanceGaps()
public final void showGaps(Printf outfile) throws java.io.IOException
java.io.IOException
public final void preCalculatePhiPsi()
public final void preCalculateAlphaTau()
public final void preCalculateAngles()
public final Protein findPDB(Printf outfile) throws java.io.IOException
java.io.IOException
public final ProteinSet getDSSPResults(Printf outfile) throws java.io.IOException
java.io.IOException
ProteinSet.findDSSP(java.lang.String, org.strbio.io.Printf)
protected final Protein findDSSPResult(ProteinSet q, Printf outfile) throws java.io.IOException
java.io.IOException
public final void runDSSP(Printf outfile) throws java.io.IOException
java.io.IOException
public final Protein findDSSP(Printf outfile) throws java.io.IOException
java.io.IOException
public final Protein findAccess(Printf outfile) throws java.io.IOException
java.io.IOException
public final void copyPredSSFrom(Protein q)
public void predictSS(Printf outfile, SSPredictor method) throws java.io.IOException
java.io.IOException
public void predictSS(Printf outfile) throws java.io.IOException
java.io.IOException
public ThreadResults thread(Printf outfile, ThreadMethod method) throws java.io.IOException
java.io.IOException
public ThreadResults thread(Printf outfile) throws java.io.IOException
java.io.IOException
public final void getInfo(Printf outfile, boolean getSequence, boolean getAngles, boolean getAtoms, boolean getStructure, boolean getEnv, boolean getPDB, boolean getCATH) throws java.io.IOException
outfile
- write progress reports heregetSequence
- get sequence out of PDBgetAngles
- get precalculated dihedral angelsgetAtoms
- get atomic coordinatesgetStructure
- get secondary structure using DSSPgetEnv
- get environmental class using AccessgetPDB
- get records like title, header from PDBgetCATH
- get records like title, header from CATH
java.io.IOException
public final boolean isCATHMatch(Protein y)
public void reverse()
reverse
in class Polymer
public double molecularWeight()
molecularWeight
in class Polymer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |