|
||||||||||
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 Quantification.QuantificationMethod |
methodUsed
The quantification method used |
protected HashMap<String,ArrayList<String>> |
modifiedPeptidesQuantification
The modified peptides quantification |
protected ArrayList<String> |
peptideQuantification
The peptide quantification |
protected ArrayList<String> |
proteinQuantification
The protein quantification |
protected HashMap<String,ArrayList<String>> |
psmIDentificationToQuantification
A convenience map indicating all psm quantifying an identified PSM |
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 |
buildPeptidesAndProteinQuantifications(Identification identification,
WaitingHandler waitingHandler)
Creates the peptides and protein quantification instances based on the identification and the psm quantification. |
void |
establishConnection(String dbFolder,
String name,
boolean deleteOldDatabase,
ObjectsCache objectsCache)
Establishes connection to the database. |
Quantification.QuantificationMethod |
getMethodUsed()
getter for the method used |
ArrayList<String> |
getModifiedPeptideQuantification(String modificationName)
This method retrieves the quantification result at the modified peptides level |
PeptideQuantification |
getPeptideMatch(String peptideKey)
Returns a peptide quantification match. |
ArrayList<String> |
getPeptideQuantification()
This method retrieves the quantification result at the peptide level |
ProteinQuantification |
getProteinMatch(String proteinKey)
Returns a protein quantification match. |
ArrayList<String> |
getProteinQuantification()
This method retrieves the quantification result at the protein level |
HashMap<String,ArrayList<String>> |
getPsmIDentificationToQuantification()
This method retrieves the quantification result at the spectrum level |
PsmQuantification |
getSpectrumMatch(String spectrumKey)
Returns a spectrum quantification match. |
ArrayList<PsmQuantification> |
getSpectrumMatches(String identificationMatchKey)
Returns a list of PSM quantification matches corresponding to the given psm identification key. |
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 |
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
protected ArrayList<String> proteinQuantification
protected ArrayList<String> peptideQuantification
protected HashMap<String,ArrayList<String>> modifiedPeptidesQuantification
protected HashMap<String,ArrayList<String>> psmIDentificationToQuantification
Constructor Detail |
---|
public Quantification()
Method Detail |
---|
public ArrayList<String> getProteinQuantification()
public ArrayList<String> getPeptideQuantification()
public ArrayList<String> getModifiedPeptideQuantification(String modificationName)
modificationName
- the name of the modification
public HashMap<String,ArrayList<String>> getPsmIDentificationToQuantification()
public Quantification.QuantificationMethod getMethodUsed()
public void setMethodUsed(Quantification.QuantificationMethod methodUsed)
methodUsed
- the method usedpublic ArrayList<PsmQuantification> getSpectrumMatches(String identificationMatchKey) throws Exception
identificationMatchKey
- the key of the identification match
Exception
- exception thrown whenever an error occurred while
retrieving the matchpublic PsmQuantification getSpectrumMatch(String spectrumKey) throws Exception
spectrumKey
- the key of the spectrum match
Exception
- exception thrown whenever an error occurred while
retrieving the matchpublic PeptideQuantification getPeptideMatch(String peptideKey) throws Exception
peptideKey
- the key of the match
Exception
- exception thrown whenever an error occurred while
retrieving the matchpublic ProteinQuantification getProteinMatch(String proteinKey) throws Exception
proteinKey
- the key of the match
Exception
- exception thrown whenever an error occurred while
retrieving the matchpublic void addPsmQuantification(PsmQuantification match) throws Exception
match
- the new spectrum match
Exception
public void addPeptideQuantification(PeptideQuantification match) throws Exception
match
- the new spectrum match
Exception
public void addProteinQuantification(ProteinQuantification match) throws Exception
match
- the new spectrum match
Exception
public void buildPeptidesAndProteinQuantifications(Identification identification, WaitingHandler waitingHandler) throws Exception
identification
- waitingHandler
-
Exception
public void setMatchChanged(QuantificationMatch match) throws IllegalArgumentException, IOException, SQLException
match
-
IllegalArgumentException
IOException
SQLException
public void establishConnection(String dbFolder, String name, boolean deleteOldDatabase, ObjectsCache objectsCache) throws SQLException
dbFolder
- the absolute path to the folder where the database is
locatedname
- deleteOldDatabase
- if true, tries to delete the old databaseobjectsCache
-
SQLException
- exception thrown whenever an error occurred while
establishing the connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |