|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.quantification.Quantification
public abstract class Quantification
This class contains quantification results. User: Marc Date: Nov 11, 2010 Time: 3:46:24 PM
Nested Class Summary | |
---|---|
static class |
Quantification.QuantificationMethod
The implemented quantification methods. |
Field Summary | |
---|---|
protected boolean |
automatedMemoryManagement
boolean indicating whether the memory management should be done automatically. |
protected int |
cacheSize
The cache size in number of matches. |
static java.lang.String |
EXTENTION
Extention for a serialized hit. |
protected boolean |
inMemory
boolean indicating whether the identification should be stored in memory or not. |
protected java.util.ArrayList<java.lang.String> |
loadedMatches
List of the loaded quantification matches with the most used matches in the end |
protected java.util.HashMap<java.lang.String,java.lang.Object> |
loadedMatchesMap
Map of the loaded quantification matches |
protected java.util.ArrayList<java.lang.String> |
longKeys
Map of long keys which will be referenced by their index for file creation |
protected Quantification.QuantificationMethod |
methodUsed
The quantification method used |
protected java.util.HashMap<java.lang.String,java.lang.Boolean> |
modifiedMatches
Map indicating whether a quantification match is modified. |
protected java.util.ArrayList<java.lang.String> |
peptideQuantification
The peptide quantification |
protected java.util.ArrayList<java.lang.String> |
proteinQuantification
The protein quantification |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
psmIDentificationToQuantification
A convenience map indicating all psm quantifying an identified PSM |
protected java.lang.String |
serializationDirectory
the directory where matches will be serialized |
protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,UrParameter>> |
urParameters
Map of the user's parameters. |
Constructor Summary | |
---|---|
Quantification()
|
Method Summary | |
---|---|
void |
addPeptideQuantification(PeptideQuantification match)
Add a peptide quantification match to the peptide quantification matches map if not already implemented. |
void |
addProteinQuantification(ProteinQuantification match)
Add a protein quantification match to the peptide quantification matches map if not already implemented. |
void |
addPsmQuantification(PsmQuantification match)
Add a spectrum quantification to the spectrum quantification matches map and overwrites if already implemented. |
void |
addQuantificationParameter(java.lang.String key,
UrParameter urParameter)
adds a parameter with a corresponding quantification key which will be loaded in the memory. |
void |
buildPeptidesAndProteinQuantifications(Identification identification)
Creates the peptides and protein quantification instances based on the identification and the psm quantification. |
void |
emptyCache(ProgressDialogX progressDialog)
Empties the cache and serializes everything in the specified serialization folder |
int |
getCacheSize()
Returns the cache size in number of matches |
java.lang.String |
getFileName(java.lang.String key)
Returns the name of the file to use for serialization/deserialization |
Quantification.QuantificationMethod |
getMethodUsed()
getter for the method used |
PeptideQuantification |
getPeptideMatch(java.lang.String peptideKey)
Returns a peptide quantification match |
java.util.ArrayList<java.lang.String> |
getPeptideQuantification()
This method retrieves the quantification result at the protein level |
ProteinQuantification |
getProteinMatch(java.lang.String proteinKey)
Returns a protein quantification match |
java.util.ArrayList<java.lang.String> |
getProteinQuantification()
This method retrieves the quantification result at the protein level |
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getPsmIDentificationToQuantification()
This method retrieves the quantification result at the protein level |
UrParameter |
getQuantificationParameter(java.lang.String matchKey,
UrParameter urParameter)
Returns the personalization parameter of the given quantification |
java.lang.String |
getSerializationDirectory()
Returns the serialization directory |
PsmQuantification |
getSpectrumMatch(java.lang.String spectrumKey)
Returns a spectrum quantification match |
java.util.ArrayList<PsmQuantification> |
getSpectrumMatches(java.lang.String identificationMatchKey)
Returns a list of PSM quantification matches corresponding to the given psm identification key. |
boolean |
isAutomatedMemoryManagement()
Returns whether the memory management is automated. |
boolean |
isInMemory()
Indicates whether matches will be stored in memory |
boolean |
memoryCheck()
Indicates whether the memory used by the application is lower than 99% of the heap size |
void |
removeQuantification(java.lang.String quantificationKey)
Removes a quantification from the model |
void |
save(java.io.File newFolder,
ProgressDialogX progressDialog)
Saves the identification matches in the desired folder |
void |
setAutomatedMemoryManagement(boolean automatedMemoryManagement)
Sets whether the memory management should be automated |
void |
setCacheSize(int cacheSize)
Sets the cache size |
void |
setInMemory(boolean inMemory)
Sets whether matches shall be stored in memory |
void |
setMatchChanged(QuantificationMatch match)
Indicates that a match was changed, it will thus be serialized again if needed. |
void |
setMethodUsed(Quantification.QuantificationMethod methodUsed)
setter for the method used |
void |
setSerializationDirectory(java.lang.String serializationDirectory)
sets the serialization directory |
void |
updateCache()
updates the cache according to the memory settings. |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Quantification.QuantificationMethod methodUsed
public static final java.lang.String EXTENTION
protected int cacheSize
protected java.lang.String serializationDirectory
protected boolean inMemory
protected boolean automatedMemoryManagement
protected java.util.HashMap<java.lang.String,java.lang.Object> loadedMatchesMap
protected java.util.ArrayList<java.lang.String> loadedMatches
protected java.util.HashMap<java.lang.String,java.lang.Boolean> modifiedMatches
protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,UrParameter>> urParameters
protected java.util.ArrayList<java.lang.String> longKeys
protected java.util.ArrayList<java.lang.String> proteinQuantification
protected java.util.ArrayList<java.lang.String> peptideQuantification
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> psmIDentificationToQuantification
Constructor Detail |
---|
public Quantification()
Method Detail |
---|
public java.util.ArrayList<java.lang.String> getProteinQuantification()
public java.util.ArrayList<java.lang.String> getPeptideQuantification()
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getPsmIDentificationToQuantification()
public Quantification.QuantificationMethod getMethodUsed()
public void setMethodUsed(Quantification.QuantificationMethod methodUsed)
methodUsed
- the method usedpublic void addQuantificationParameter(java.lang.String key, UrParameter urParameter)
key
- the key of the parameterurParameter
- the additional parameterpublic UrParameter getQuantificationParameter(java.lang.String matchKey, UrParameter urParameter)
matchKey
- the match keyurParameter
- example of parameter to retrieve
public boolean isAutomatedMemoryManagement()
public void setAutomatedMemoryManagement(boolean automatedMemoryManagement)
automatedMemoryManagement
- a boolean indicating whether the memory management should be automatedpublic int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- number of matches to allow in the cache sizepublic boolean isInMemory()
public void setInMemory(boolean inMemory)
inMemory
- a boolean indicating whether matches shall be stored in memorypublic java.lang.String getSerializationDirectory()
public void setSerializationDirectory(java.lang.String serializationDirectory)
serializationDirectory
- the path of the serialization directorypublic void removeQuantification(java.lang.String quantificationKey)
quantificationKey
- the key of the match to removepublic java.util.ArrayList<PsmQuantification> getSpectrumMatches(java.lang.String identificationMatchKey) throws java.lang.Exception
identificationMatchKey
- the key of the identification match
java.lang.Exception
- exception thrown whenever an error occurred while retrieving the matchpublic PsmQuantification getSpectrumMatch(java.lang.String spectrumKey) throws java.lang.Exception
spectrumKey
- the key of the spectrum match
java.lang.Exception
- exception thrown whenever an error occurred while retrieving the matchpublic PeptideQuantification getPeptideMatch(java.lang.String peptideKey) throws java.lang.Exception
peptideKey
- the key of the match
java.lang.Exception
- exception thrown whenever an error occurred while retrieving the matchpublic ProteinQuantification getProteinMatch(java.lang.String proteinKey) throws java.lang.Exception
proteinKey
- the key of the match
java.lang.Exception
- exception thrown whenever an error occurred while retrieving the matchpublic void addPsmQuantification(PsmQuantification match) throws java.lang.Exception
match
- the new spectrum match
java.lang.Exception
public void addPeptideQuantification(PeptideQuantification match) throws java.lang.Exception
match
- the new spectrum match
java.lang.Exception
public void addProteinQuantification(ProteinQuantification match) throws java.lang.Exception
match
- the new spectrum match
java.lang.Exception
public void updateCache() throws java.lang.Exception
java.lang.Exception
- exception thrown whenever an error occurred while serializing a matchpublic boolean memoryCheck()
public void buildPeptidesAndProteinQuantifications(Identification identification) throws java.lang.Exception
identification
-
java.lang.Exception
public void emptyCache(ProgressDialogX progressDialog) throws java.lang.Exception
progressDialog
-
java.lang.Exception
- exception thrown whenever an error occurred while serializing a matchpublic void setMatchChanged(QuantificationMatch match) throws java.lang.Exception
match
-
java.lang.Exception
public void save(java.io.File newFolder, ProgressDialogX progressDialog) throws java.lang.Exception
newFolder
- the new folderprogressDialog
- a progress dialog to display the progress (can be null)
java.lang.Exception
- Exception thrown whenever a problem occurred during the serialization processpublic java.lang.String getFileName(java.lang.String key)
key
- the key of the match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |