|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.strbio.mol.Monomer org.strbio.mol.Residue org.strbio.mol.ProfRes
public class ProfRes
Class to represent a single residue in a protein with profile information. All the standard residue info applies to the main residue in the profile (usually the one for which structure is known); statistical information about possible residue substitutions at each position is also stored.
Version 1.2, 3/10/00 - changed frequency() vector to contain frequencies multiplied by 1000. Also added nonZeroFrequency vector to hold indices of non-zero frequencies. Version 1.1, 10/4/99 - increased speed of addSeq, removeSeq Version 1.02, 1/19/99 - added removeSeq Version 1.01, 8/7/98 - changed PrintfStream to Printf Version 1.0, 4/30/98 - original version
Profile
Field Summary | |
---|---|
int[] |
frequency
0-100 frequency for each residue in the profile, in alphabetical order by 3-letter code, multiplied by 1000. |
int[] |
nonZeroFrequency
Index of non-zero frequencies, if calculated. |
static java.lang.String |
oneLetterHSSP
one letter code, in the order used in the HSSP. |
char[] |
seq
Info on sequences in the profile, if available. |
double |
weight
Conservation weight, as defined by Rost & Sander. |
Fields inherited from class org.strbio.mol.Residue |
---|
aaMolecularWeight, cAlpha, cPhi, cPsi, cTau, env, exposedArea, oneLetter, oneLetterBLAST, oneLetterDefay, pctExposed, predE, predH, predStructure, structure, threeLetter |
Fields inherited from class org.strbio.mol.Monomer |
---|
atoms, n, type |
Constructor Summary | |
---|---|
ProfRes()
Most constructors just call the superclass one. |
|
ProfRes(char t)
|
|
ProfRes(ProfRes q)
Constructor to copy another ProfRes. |
|
ProfRes(Residue q)
|
|
ProfRes(java.lang.String s)
|
Method Summary | |
---|---|
void |
allocSeqs(int n)
Tell the ProfRes to allocate space for at least N sequences. |
void |
clearSeqs()
Tell the ProfRes to forget any sequence information it knows. |
void |
copyDataFrom(Monomer q)
Copy another ProfRes. |
DLinkedList.Node |
copyNode()
copy contents of a residue |
void |
findFrequencies()
Calculate the frequencies for this residue from the seq. |
void |
findNonZeroFrequencies()
Index which frequencies are non-zero. |
void |
frequencies2Consensus()
Find the consensus residue for this residue from the frequencies. |
static int |
HSSPnum2Num(int x)
Translate the ordering used in the HSSP code to my numbering. |
void |
readCWRecord(java.lang.String buffer)
Read CW record out of YAPF file. |
void |
readFREQRecord(java.lang.String buffer)
Read FREQ record out of YAPF file. |
boolean |
readHSSPSeqs(java.io.BufferedReader infile,
int firstAln,
int lastAln)
Read sequence info for this residue out of a HSSP format file. |
boolean |
readProf(java.io.BufferedReader infile)
Read this residue out of a Prof (sequence profile) format file (JMC's format). |
void |
readSeqRecord(java.lang.String buffer)
Read this residue out of a YAPF (sequence profile) format file (JMC's format). |
void |
removeSeq(int n)
Remove one sequence from the ProfRes. |
int |
sequences()
Number of sequences in the profile, if known; otherwise, zero. |
void |
writeCWRecord(Printf outfile)
Write CW info for this residue in JMC's YAPF format. |
void |
writeFREQRecord(Printf outfile)
Write FREQ info for this residue in JMC's YAPF format. |
void |
writeProf(Printf outfile)
Write this residue in JMC's .prof format. |
void |
writeSeqRecord(Printf outfile)
Write this residue in JMC's YAPF format. |
Methods inherited from class org.strbio.mol.Residue |
---|
alpha, is3Res, isGap, isGap, isRes, isValidType, makeVirtualCB, molecularWeight, num2Res, num2ResDefay, one2Three, phi, psi, readAccess, readAccessRecord, readAngleRecord, readConv, readDSSP, readDSSPRecord, readEA, readJMCSTR, readPredSSRecord, readVar, readVar2, readVarTomRecord, res2Num, res2NumDefay, stripAllButCA, tau, three2One, translateEA, typeName, writeAccessRecord, writeAngleRecord, writeCASP, writeConv, writeDSSPRecord, writeEA, writePDBStr, writePredSSRecord, writeVar2, writeVarTomRecord |
Methods inherited from class org.strbio.mol.Monomer |
---|
atomSearch, centerOfMass, centerOfMass, copyAtoms, isValidNonGap, nAtoms, nAtomsWithCoord, next, prev, readAtomRecord, readFasta, rotate, setNext, setPrev, stripAllAtoms, stripAllBut, stripAllButFirstAtom, stripAtomsByName, transform, translate, writePDBAtom, writePts, 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 oneLetterHSSP
Residue.res2Num(char)
,
Residue.res2NumDefay(char)
,
Constant Field Valuespublic int[] frequency
public int[] nonZeroFrequency
public double weight
public char[] seq
Constructor Detail |
---|
public ProfRes()
public ProfRes(char t)
public ProfRes(java.lang.String s)
public ProfRes(Residue q)
public ProfRes(ProfRes q)
Method Detail |
---|
public static final int HSSPnum2Num(int x) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public int sequences()
public void copyDataFrom(Monomer q)
copyDataFrom
in class Residue
public DLinkedList.Node copyNode()
copyNode
in interface DLinkedList.Node
copyNode
in class Residue
public void clearSeqs()
public void allocSeqs(int n)
public void removeSeq(int n)
public final void frequencies2Consensus()
public final void findFrequencies()
public final void findNonZeroFrequencies()
public final boolean readProf(java.io.BufferedReader infile)
readProf
in class Residue
Protein.readProf(java.io.BufferedReader, org.strbio.io.Printf)
public final void readSeqRecord(java.lang.String buffer) throws java.io.IOException
readSeqRecord
in class Monomer
java.io.IOException
Polymer.readYAPF(java.io.BufferedReader, org.strbio.io.Printf)
public final void writeProf(Printf outfile) throws java.io.IOException
java.io.IOException
Profile.writeProf(org.strbio.io.Printf)
public final void writeSeqRecord(Printf outfile) throws java.io.IOException
writeSeqRecord
in class Monomer
java.io.IOException
public void readCWRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public final void writeCWRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public void readFREQRecord(java.lang.String buffer) throws java.io.IOException
java.io.IOException
public final void writeFREQRecord(Printf outfile) throws java.io.IOException
java.io.IOException
public final boolean readHSSPSeqs(java.io.BufferedReader infile, int firstAln, int lastAln)
Profile.readHSSP(java.io.BufferedReader, org.strbio.io.Printf)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |