|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.applications.corpus.Corpus
public class Corpus
A class that hold the 20-type-mutation energy data of one or several proteins. This class can be loaded from disk or created from a PDB file of a protein. Another way to create this class is by merging two instances into a larger corpus.
| Field Summary | |
|---|---|
static double[][] |
blosum62
|
protected double[][][] |
coors
|
protected double[][][] |
energies
|
protected java.lang.String[] |
energyNames
|
protected java.lang.String[] |
excludedProteinsFromUngapped
|
protected double[][] |
forAlign1
|
protected double[][] |
forAlign2
|
protected int |
Nenergies
|
protected int |
Nres
|
protected double[] |
prePro
|
protected java.lang.String[] |
proteinNames
|
protected int[] |
protInd
|
protected boolean[] |
resHasAllEne
|
protected int[] |
resNum
|
protected int[] |
resType
|
protected double[][] |
torsions
|
protected int[] |
ungapped
|
| Fields inherited from interface meshi.energy.simpleEnergyTerms.compositeTorsions.CompositeTorsionsDefinitions |
|---|
ALL, CHI_1, CHI_2, CHI_3, CHI_4, COIL, HELIX, NUM_SIDECHAIN_TORSIONS, OMG, OMNI, PHI, POLYNOMIAL_CHI_1, POLYNOMIAL_CHI_1_CHI_2, POLYNOMIAL_CHI_1_CHI_2_TORSIONS, POLYNOMIAL_CHI_1_CHI_3, POLYNOMIAL_CHI_1_CHI_3_TORSIONS, POLYNOMIAL_CHI_1_CHI_4, POLYNOMIAL_CHI_1_CHI_4_TORSIONS, POLYNOMIAL_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI, POLYNOMIAL_PHI_PSI_CHI_1, POLYNOMIAL_PHI_PSI_CHI_1_TORSIONS, POLYNOMIAL_PHI_PSI_TORSIONS, PREPRO, PSI, SHEET, TOTAL_TORSION_ANGLES, UNIDENTIFIED_TORSION_TYPE |
| Constructor Summary | |
|---|---|
Corpus(java.lang.String exsitingCorpusFile)
Reading a corpus from file. |
|
Corpus(java.lang.String PDBfile,
CommandList commands,
EnergyCreator[] energyCreators)
|
|
| Method Summary | |
|---|---|
void |
buildUngappedArray(int fragL)
|
void |
buildUngappedArray(int fragL,
java.lang.String[] excludeProteins)
Building the ungapped array for fragments of length fragL. |
void |
buildUngappedArraynoPG(int fragL)
|
double |
calcRmsBetweenStruct(int ind1,
int ind2,
int fragL,
int manner,
int overlap)
This method gives the rms between two fragments in the corpus (starting in ind1 and ind2). |
private void |
calculateSolRot1(java.lang.String PDBfile,
CommandList commands)
|
private static void |
extractCoordinatesOfRes(Residue res,
double[][] co)
|
void |
findDisDist(int len)
Find the distributaion of distances between ends. |
int |
findInUngapped(java.lang.String proteinName,
int residueNumber)
|
void |
findPhiPsiRelations(int howMany)
Find the relation between Delta{phi,psi} and RMS |
void |
GeneralThreadingExperiment(int fragL,
int Ninstances,
java.lang.String header,
int RMSind1,
int RMSind2)
This is a method for general ungapped threading. |
private static boolean |
haveAllBackboneAtoms(Residue res)
|
void |
merge(Corpus corpus)
|
void |
setExcludedProteinsFromUngapped(java.lang.String[] list)
|
private void |
specialMutate(Protein aux,
int mutateThis,
int mutateTo,
double[][] pp,
DunbrackLib lib)
|
void |
threadingExperiment_withPP(int fragL,
double Wprop,
double Wsolv)
|
void |
threadingExperiment(int fragL)
|
void |
threadingExperimentnoPG(int fragL)
|
void |
writeToDisk(java.lang.String fileName)
This overload writes the entire corpus to disk. |
private void |
writeToDisk(java.lang.String fileName,
boolean[] toWrite)
Writing all the residues in the corpus that are marked as TRUE in the 'toWrite' input array (its length must be as the corpus's). |
void |
writeToDisk(java.lang.String fileName,
int indAr,
int fragL)
This overload writes to disk a subset of the corpus, all the residues that have of the previous method, that writes to disk only residues from the fragments whos indices are given in the input array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] proteinNames
protected java.lang.String[] energyNames
protected int Nenergies
protected int Nres
protected int[] protInd
protected int[] resNum
protected int[] resType
protected double[] prePro
protected double[][][] energies
protected double[][][] coors
protected double[][] torsions
protected boolean[] resHasAllEne
protected int[] ungapped
protected java.lang.String[] excludedProteinsFromUngapped
protected double[][] forAlign1
protected double[][] forAlign2
public static final double[][] blosum62
| Constructor Detail |
|---|
public Corpus(java.lang.String PDBfile,
CommandList commands,
EnergyCreator[] energyCreators)
public Corpus(java.lang.String exsitingCorpusFile)
| Method Detail |
|---|
private void writeToDisk(java.lang.String fileName,
boolean[] toWrite)
public void writeToDisk(java.lang.String fileName)
public void writeToDisk(java.lang.String fileName,
int indAr,
int fragL)
public void merge(Corpus corpus)
public void buildUngappedArray(int fragL)
public void buildUngappedArray(int fragL,
java.lang.String[] excludeProteins)
public void threadingExperiment(int fragL)
public void threadingExperiment_withPP(int fragL,
double Wprop,
double Wsolv)
public void GeneralThreadingExperiment(int fragL,
int Ninstances,
java.lang.String header,
int RMSind1,
int RMSind2)
private static boolean haveAllBackboneAtoms(Residue res)
private static void extractCoordinatesOfRes(Residue res,
double[][] co)
private void calculateSolRot1(java.lang.String PDBfile,
CommandList commands)
private void specialMutate(Protein aux,
int mutateThis,
int mutateTo,
double[][] pp,
DunbrackLib lib)
public int findInUngapped(java.lang.String proteinName,
int residueNumber)
public double calcRmsBetweenStruct(int ind1,
int ind2,
int fragL,
int manner,
int overlap)
public void buildUngappedArraynoPG(int fragL)
public void threadingExperimentnoPG(int fragL)
public void findDisDist(int len)
public void findPhiPsiRelations(int howMany)
public void setExcludedProteinsFromUngapped(java.lang.String[] list)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||