|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.mol.Monomer
org.strbio.mol.Residue
public class Residue
Class to represent a single residue in a protein. See ProfRes as an example of how to extend this.
Version 1.3, 12/15/04 - added molecularWeight Version 1.21, 11/22/00 - added translateEA Version 1.2, 1/14/00 - added makeVirtualCB Version 1.18, 1/7/00 - made isGap return more gap types Version 1.17, 9/28/99 - saves more env stuff in YAPF files Version 1.16, 11/2/98 - added isValidType function Version 1.15, 8/20/98 - changed readVar2 and readConv to correctly read coil secondary structure as a -, not a ? Version 1.14, 8/7/98 - changed PrintfStream to Printf Version 1.13, 7/20/98 - changed coding for VAR files' env code... values range from -2 to -5. -1 = unknown. Version 1.12, 7/17/98 - added readVar Version 1.11, 6/10/98 - added writeCASP Version 1.1, 4/17/98 - based on Monomer, JMC-specific stuff moved to org.strbio.jmc.JMCResidue Version 1.0, 4/3/98 - original version
Atom
,
AtomNode
,
Protein
,
ProfRes
Field Summary | |
---|---|
static double[] |
aaMolecularWeight
molecular weight of each residue above |
double |
cAlpha
Pre-calculated alpha angle at this residue. |
double |
cPhi
Pre-calculated phi angle at this residue. |
double |
cPsi
Pre-calculated psi angle at this residue. |
double |
cTau
Pre-calculated tau angle at this residue. |
int |
env
Environment code. |
double |
exposedArea
Area of the residue (in square angstroms) exposed to solvent, as calculated from Scott Presnell's access program. |
static java.lang.String |
oneLetter
one letter code, in alphabetical order by 3-letter code. |
static java.lang.String |
oneLetterBLAST
one letter code used by BLAST. |
static java.lang.String |
oneLetterDefay
one letter code, in alphabetical order by 1-letter code. |
double |
pctExposed
Percentage of surface-exposed area, from 0 - 100.0. |
double |
predE
Predicted strand probability. |
double |
predH
Predicted helix probability. |
char |
predStructure
Predicted secondary structure. |
char |
structure
the structure, as defined by DSSP. |
static java.lang.String |
threeLetter
three letter code, in alphabetical order. |
Fields inherited from class org.strbio.mol.Monomer |
---|
atoms, n, type |
Constructor Summary | |
---|---|
Residue()
Constructor makes structure and predStructure '?'. |
|
Residue(char t)
Make a new residue of a given type. |
|
Residue(Residue q)
copy another residue, including the atoms. |
|
Residue(java.lang.String t)
Make a new residue of a given type (3-letter code). |
Method Summary | |
---|---|
double |
alpha()
Alpha is the bond angle between CA(n-1), CA(n), CA(n+1). |
void |
copyDataFrom(Monomer q)
copy another residue, including the atoms. |
DLinkedList.Node |
copyNode()
copy contents of a residue |
static boolean |
is3Res(java.lang.String x)
Is your string a valid 3-letter code? |
boolean |
isGap()
is the character used to represent a gap? |
static boolean |
isGap(char x)
Is a character a gap code? |
static boolean |
isRes(char x)
Is your character a valid 1-letter code? |
boolean |
isValidType()
is the character in 'type' valid for this residue? |
void |
makeVirtualCB()
Construct a virtual CB atom. |
double |
molecularWeight()
molecular weight for residue of a residue, minus 18 for the water missing in the peptide bond |
static char |
num2Res(int x)
Convert a number to amino acid one letter code (0-20), in the order shown in Residue.oneLetter. |
static char |
num2ResDefay(int x)
Convert a number to amino acid one letter code (0-20), in the order shown in Residue.oneLetterDefay. |
static java.lang.String |
one2Three(char x)
Convert your 1-letter code into 3-letter code. |
double |
phi()
Phi is the bond angle between C(n-1), N(n), CA(n), C(n). |
double |
psi()
Psi is the bond angle between N(n), CA(n), C(n), N(n+1). |
boolean |
readAccess(java.io.BufferedReader infile)
Read this residue out of an Access format file (Scott Presnell's format). |
void |
readAccessRecord(java.lang.String buffer)
Read Access record out of YAPF file. |
void |
readAngleRecord(java.lang.String buffer)
Read pre-calc angles out of YAPF file. |
boolean |
readConv(java.io.BufferedReader infile)
Read this residue out of a Conv format file (Tom Defay's format). |
boolean |
readDSSP(java.io.BufferedReader infile)
Read this residue out of a DSSP (Dictionary of Secondary Structure for Proteins) format file (Kabsch & Sander's format). |
void |
readDSSPRecord(java.lang.String buffer)
Read DSSP record out of YAPF file. |
boolean |
readEA(java.io.BufferedReader infile)
Read this residue out of a EA (Estimated Accuracy) format file (JMC's format). |
void |
readJMCSTR(java.lang.String buffer)
Get info for this residue out of a JMCSTR line in a PDB or YAPF file. |
void |
readPredSSRecord(java.lang.String buffer)
Read predicted SS info out of YAPF file. |
boolean |
readProf(java.io.BufferedReader infile)
Read this residue out of a Prof (sequence profile) format file (JMC's format). |
boolean |
readVar(java.io.BufferedReader infile)
Read this residue out of a Var format file (Tom Defay's format). |
boolean |
readVar2(java.io.BufferedReader infile)
Read this residue out of a Var2 format file (Tom Defay's format). |
void |
readVarTomRecord(java.lang.String buffer)
Read VarTom record out of YAPF file. |
static int |
res2Num(char x)
Convert an amino acid one letter code to a number (0-20), in the order shown in Residue.oneLetter. |
static int |
res2NumDefay(char x)
Convert an amino acid one letter code to a number (0-20), in the order shown in Residue.oneLetterDefay. |
void |
stripAllButCA()
Strip away all atoms except alpha carbons (atoms named "CA"). |
double |
tau()
Tau is the dihedral angle between CA(n-1), CA(n), CA(n+1), CA(n+2). |
static char |
three2One(java.lang.String x)
Convert your 3-letter code into 1-letter code. |
void |
translateEA()
Translates predH and predE into predStructure (directly). |
java.lang.String |
typeName()
Return a long name for this monomer, based on the type. |
void |
writeAccessRecord(Printf outfile)
Write ACCESS record to YAPF file. |
void |
writeAngleRecord(Printf outfile)
Write ANGLE record to YAPF file. |
void |
writeCASP(Printf outfile)
Writes out this residue in CASP format. |
void |
writeConv(Printf outfile)
Writes out this residue in Conv format. |
void |
writeDSSPRecord(Printf outfile)
Write DSSP record to YAPF file. |
void |
writeEA(Printf outfile)
Writes out this residue in EA format. |
void |
writePDBStr(Printf outfile)
Writes out PDB JMCSTR records for this residue. |
void |
writePredSSRecord(Printf outfile)
Write PREDSS record to YAPF file. |
void |
writeVar2(Printf outfile)
Writes out this residue in Var2 format. |
void |
writeVarTomRecord(Printf outfile)
Write VarTom record to YAPF file. |
Methods inherited from class org.strbio.mol.Monomer |
---|
atomSearch, centerOfMass, centerOfMass, copyAtoms, isValidNonGap, nAtoms, nAtomsWithCoord, next, prev, readAtomRecord, readFasta, readSeqRecord, rotate, setNext, setPrev, stripAllAtoms, stripAllBut, stripAllButFirstAtom, stripAtomsByName, transform, translate, writePDBAtom, writePts, writeSeqRecord, writeYAPFAtom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String oneLetter
res2Num(char)
,
num2Res(int)
,
isRes(char)
,
Constant Field Valuespublic static final java.lang.String oneLetterDefay
res2NumDefay(char)
,
num2ResDefay(int)
,
Constant Field Valuespublic static final java.lang.String threeLetter
three2One(java.lang.String)
,
one2Three(char)
,
is3Res(java.lang.String)
,
Constant Field Valuespublic static final double[] aaMolecularWeight
public static final java.lang.String oneLetterBLAST
public char structure
public char predStructure
public double predH
public double predE
public double cPhi
phi()
public double cPsi
psi()
public double cAlpha
alpha()
public double cTau
tau()
public double exposedArea
public double pctExposed
public int env
Constructor Detail |
---|
public Residue()
public Residue(char t)
public Residue(java.lang.String t)
public Residue(Residue q)
Method Detail |
---|
public static final boolean isRes(char x)
public static final boolean isGap(char x)
public static final boolean is3Res(java.lang.String x)
public static final char three2One(java.lang.String x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your String is not a valid AA.is3Res(java.lang.String)
public void copyDataFrom(Monomer q)
copyDataFrom
in class Monomer
public DLinkedList.Node copyNode()
copyNode
in interface DLinkedList.Node
copyNode
in class Monomer
public static final int res2Num(char x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your code isn't an AA.oneLetter
,
isRes(char)
public static final int res2NumDefay(char x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your code isn't an AA.oneLetterDefay
,
isRes(char)
public static final char num2Res(int x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your number is not 0-20.oneLetter
public static final char num2ResDefay(int x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your number is not 0-20.oneLetterDefay
public static final java.lang.String one2Three(char x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if your character is not a valid AA.isRes(char)
public java.lang.String typeName()
typeName
in class Monomer
public final void stripAllButCA()
public final boolean readVar2(java.io.BufferedReader infile)
Protein.readVar2(java.io.BufferedReader, org.strbio.io.Printf)
public final boolean readVar(java.io.BufferedReader infile)
Protein.readVar(java.io.BufferedReader, org.strbio.io.Printf)
public final boolean readAccess(java.io.BufferedReader infile)
Protein.readAccess(java.io.BufferedReader, org.strbio.io.Printf)
public final boolean readEA(java.io.BufferedReader infile)
Protein.readEA(java.io.BufferedReader, org.strbio.io.Printf)
public final boolean readConv(java.io.BufferedReader infile)
Protein.readConv(java.io.BufferedReader, org.strbio.io.Printf)
public void readJMCSTR(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void readPredSSRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void writePredSSRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public void readDSSPRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void writeDSSPRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public void readAccessRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void writeAccessRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public void readVarTomRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void writeVarTomRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public void readAngleRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public void writeAngleRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public boolean readProf(java.io.BufferedReader infile)
public final boolean readDSSP(java.io.BufferedReader infile) throws java.io.IOException
java.io.IOException
Protein.readDSSP(java.io.BufferedReader, org.strbio.io.Printf)
public final void writeEA(Printf outfile) throws java.io.IOException
java.io.IOException
Protein.writeEA(org.strbio.io.Printf)
public final void translateEA()
public final void writeCASP(Printf outfile) throws java.io.IOException
java.io.IOException
Protein.writeCASP(org.strbio.io.Printf)
public final void writeConv(Printf outfile) throws java.io.IOException
java.io.IOException
Protein.writeConv(org.strbio.io.Printf)
public final void writeVar2(Printf outfile) throws java.io.IOException
java.io.IOException
Protein.writeVar2(org.strbio.io.Printf)
public final void writePDBStr(Printf outfile) throws java.io.IOException
java.io.IOException
Protein.writePDB(org.strbio.io.Printf, boolean)
public final double alpha()
public final double tau()
public final double phi()
public final double psi()
public boolean isValidType()
isValidType
in class Monomer
public boolean isGap()
isGap
in class Monomer
public void makeVirtualCB()
public double molecularWeight()
molecularWeight
in class Monomer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |