|
||||||||||
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.identification.Identification
public abstract class Identification
This class contains identification results.
Field Summary | |
---|---|
static java.lang.String |
EXTENTION
Deprecated. use the database methods instead |
protected java.util.ArrayList<java.lang.String> |
longKeys
Deprecated. use the database instead @TODO implement this for db keys |
protected int |
methodUsed
The method used. |
protected java.util.ArrayList<java.lang.String> |
peptideIdentification
List of the keys of all imported peptides. |
protected java.util.ArrayList<java.lang.String> |
proteinIdentification
List of the keys of all imported proteins. |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
proteinMap
A map linking protein accessions to all their protein matches keys. |
protected java.lang.String |
reference
The reference of the identification. |
protected java.lang.String |
serializationDirectory
The directory where matches will be serialized/the database stored. |
protected java.util.ArrayList<java.lang.String> |
spectrumIdentification
Deprecated. use file specific mapping instead |
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
spectrumIdentificationMap
List of all imported psms indexed by mgf file name. |
protected java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,UrParameter>> |
urParameters
Deprecated. use the database instead |
Constructor Summary | |
---|---|
Identification()
|
Method Summary | |
---|---|
void |
addMatchParameter(java.lang.String key,
UrParameter urParameter)
Deprecated. use the database match specific methods instead |
void |
addPeptideMatchParameter(java.lang.String key,
UrParameter urParameter)
Adds a peptide match parameter to the database. |
void |
addProteinMatchParameter(java.lang.String key,
UrParameter urParameter)
Adds a protein match parameter to the database. |
void |
addSpectrumMatch(java.util.Set<SpectrumMatch> spectrumMatches)
Add a set of spectrumMatches to the model. |
void |
addSpectrumMatch(SpectrumMatch newMatch)
Adds a spectrum match to the identification. |
void |
addSpectrumMatchParameter(java.lang.String key,
UrParameter urParameter)
Adds a spectrum match parameter to the database. |
void |
buildPeptidesAndProteins(java.lang.String spectrumMatchKey)
Creates the peptides and protein instances based on the given spectrum match. |
void |
buildPeptidesAndProteins(WaitingHandler waitingHandler)
Creates the peptides and protein instances based on the spectrum matches. |
void |
close()
Closes the database connection. |
void |
convert(WaitingHandler waitingHandler,
java.lang.String newDirectory,
java.lang.String newName,
ObjectsCache objectsCache)
Converts a serlialization based structure into a database based one. |
void |
establishConnection(java.lang.String dbFolder,
boolean deleteOldDatabase,
ObjectsCache objectsCache)
Establishes a connection to the database. |
static java.lang.String |
getDefaultReference(java.lang.String experimentReference,
java.lang.String sampleReference,
int replicateNumber)
Returns the default reference for an identification |
java.lang.String |
getFileName(java.lang.String key)
Deprecated. use the database methods instead |
UrParameter |
getMatchParameter(java.lang.String matchKey,
UrParameter urParameter)
Deprecated. use the database match specific methods instead |
IdentificationMatch.MatchType |
getMatchType(java.lang.String matchKey)
Returns the kind of match pointed by the given key in the identification mappings. |
int |
getMethodUsed()
Getter for the identification method used. |
java.util.ArrayList<java.lang.String> |
getOrderedSpectrumFileNames()
Returns the ordered list of spectrum file names. |
java.util.ArrayList<java.lang.String> |
getPeptideIdentification()
Returns a list of the keys of all encountered peptides. |
PeptideMatch |
getPeptideMatch(java.lang.String peptideKey)
Returns a peptide match. |
UrParameter |
getPeptideMatchParameter(java.lang.String key,
UrParameter urParameter)
Returns the desired peptide match parameter. |
java.util.ArrayList<java.lang.String> |
getProteinIdentification()
Returns a list of the keys of all encountered proteins. |
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getProteinMap()
Returns a map of all the protein matches which can be ascribed to a protein indexed by its accession. |
ProteinMatch |
getProteinMatch(java.lang.String proteinKey)
Returns a protein match. |
UrParameter |
getProteinMatchParameter(java.lang.String key,
UrParameter urParameter)
Returns the desired protein match parameter. |
java.lang.String |
getSerializationDirectory()
Returns the serialization directory. |
java.util.ArrayList<java.lang.String> |
getSpectrumFiles()
Returns the names of the mgf files used in the spectrum identification map as a list. |
java.util.ArrayList<java.lang.String> |
getSpectrumIdentification()
Deprecated. use file specific names instead |
java.util.ArrayList<java.lang.String> |
getSpectrumIdentification(java.lang.String spectrumFile)
Returns the spectrum identifications for a given spectrum file name. |
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getSpectrumIdentificationMap()
Returns the keys of all identified spectra indexed by the spectrum file. |
int |
getSpectrumIdentificationSize()
Returns the number of spectrum identifications. |
SpectrumMatch |
getSpectrumMatch(java.lang.String spectrumKey)
Returns a spectrum match. |
UrParameter |
getSpectrumMatchParameter(java.lang.String key,
UrParameter urParameter)
Returns the desired spectrum match parameter. |
java.lang.Boolean |
isDB()
Indicates whether the identification matches should be stored in a database (true, default value) or serialized files (false, deprecated default). |
void |
loadPeptideMatches(java.util.ArrayList<java.lang.String> peptideKeys,
WaitingHandler waitingHandler)
Loads the desired peptide matches of the given type in the cache of the database. |
void |
loadPeptideMatches(WaitingHandler waitingHandler)
Loads all peptide matches in the cache of the database. |
void |
loadPeptideMatchParameters(java.util.ArrayList<java.lang.String> peptideKeys,
UrParameter urParameter,
WaitingHandler waitingHandler)
Loads the desired peptide match parameters of the given type in the cache of the database. |
void |
loadPeptideMatchParameters(UrParameter urParameter,
WaitingHandler waitingHandler)
Loads all peptide match parameters of the given type in the cache of the database. |
void |
loadProteinMatches(WaitingHandler waitingHandler)
Loads all protein matches in the cache of the database. |
void |
loadProteinMatchParameters(UrParameter urParameter,
WaitingHandler waitingHandler)
Loads all protein match parameters of the given type in the cache of the database. |
void |
loadSpectrumMatches(java.util.ArrayList<java.lang.String> spectrumKeys,
WaitingHandler waitingHandler)
Loads the given spectrum matches in the cache of the database. |
void |
loadSpectrumMatches(java.lang.String fileName,
WaitingHandler waitingHandler)
Loads all spectrum matches of the file in the cache of the database |
void |
loadSpectrumMatchParameters(java.util.ArrayList<java.lang.String> spectrumKeys,
UrParameter urParameter,
WaitingHandler waitingHandler)
Loads all desired spectrum match parameters in the cache of the database. |
void |
loadSpectrumMatchParameters(java.lang.String fileName,
UrParameter urParameter,
WaitingHandler waitingHandler)
Loads all spectrum match parameters of the given type in the cache of the database |
boolean |
matchExists(java.lang.String matchKey)
Indicates whether a match indexed by the given key exists. |
void |
removeMatch(java.lang.String matchKey)
Deprecated. it is advised to use the specific psm/peptide/protein method instead |
void |
removePeptideMatch(java.lang.String matchKey)
Removes a peptide match from the model. |
void |
removeProteinMatch(java.lang.String matchKey)
Removes a protein match from the model. |
void |
removeSpectrumMatch(java.lang.String matchKey)
Removes a spectrum match from the model. |
void |
setDirectory(java.lang.String serializationDirectory,
boolean deleteOldDatabase)
Deprecated. use establishConnection(String dbFolder) instead |
void |
setIsDB(java.lang.Boolean isDB)
Sets whether the identification matches should be stored in a database or serialized files. |
void |
setOrderedListOfSpectrumFileNames(java.util.ArrayList<java.lang.String> orderedSpectrumFileNames)
Set the ordered list of spectrum file names. |
void |
updatePeptideMatch(PeptideMatch peptideMatch)
Updates a peptide match in the database. |
void |
updatePeptideMatchParameter(java.lang.String key,
UrParameter urParameter)
Updates a peptide match parameter in the database. |
void |
updateProteinMatch(ProteinMatch proteinMatch)
Updates a protein match in the database. |
void |
updateProteinMatchParameter(java.lang.String key,
UrParameter urParameter)
Updates a protein match parameter in the database. |
void |
updateSpectrumMapping()
Converts the old spectrum keys structure into the mapped version. |
void |
updateSpectrumMatch(SpectrumMatch spectrumMatch)
Updates a spectrum match in the database. |
void |
updateSpectrumMatchParameter(java.lang.String key,
UrParameter urParameter)
Updates a spectrum match parameter in the database. |
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 |
---|
public static final java.lang.String EXTENTION
protected java.util.ArrayList<java.lang.String> proteinIdentification
protected java.util.ArrayList<java.lang.String> peptideIdentification
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> spectrumIdentificationMap
protected java.util.ArrayList<java.lang.String> spectrumIdentification
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> proteinMap
protected int methodUsed
protected java.lang.String serializationDirectory
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.lang.String reference
Constructor Detail |
---|
public Identification()
Method Detail |
---|
public java.util.ArrayList<java.lang.String> getOrderedSpectrumFileNames()
public void setOrderedListOfSpectrumFileNames(java.util.ArrayList<java.lang.String> orderedSpectrumFileNames) throws java.lang.IllegalArgumentException
orderedSpectrumFileNames
- the ordered list of spectrum file names
java.lang.IllegalArgumentException
- thrown if the length of the ordered file
names as to be the same as the number of spectrum filespublic java.util.ArrayList<java.lang.String> getSpectrumFiles()
public int getSpectrumIdentificationSize()
public void addMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the key of the parameterurParameter
- the additional parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic UrParameter getMatchParameter(java.lang.String matchKey, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
matchKey
- the match keyurParameter
- example of parameter to retrieve
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic void loadSpectrumMatchParameters(java.lang.String fileName, UrParameter urParameter, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
fileName
- the file nameurParameter
- the parameter typewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadSpectrumMatchParameters(java.util.ArrayList<java.lang.String> spectrumKeys, UrParameter urParameter, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
spectrumKeys
- the key of the spectrum match of the parameters to be
loadedurParameter
- the parameter typewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadPeptideMatchParameters(UrParameter urParameter, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
urParameter
- the parameter typewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadPeptideMatchParameters(java.util.ArrayList<java.lang.String> peptideKeys, UrParameter urParameter, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
peptideKeys
- the list of peptide keys of the parameters to loadurParameter
- the parameter typewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadPeptideMatches(java.util.ArrayList<java.lang.String> peptideKeys, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
peptideKeys
- the list of peptide keys to loadwaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadProteinMatchParameters(UrParameter urParameter, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
urParameter
- the parameter typewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadProteinMatches(WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
waitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadPeptideMatches(WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
waitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadSpectrumMatches(java.lang.String fileName, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
fileName
- the file namewaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public void loadSpectrumMatches(java.util.ArrayList<java.lang.String> spectrumKeys, WaitingHandler waitingHandler) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
spectrumKeys
- the spectrum keyswaitingHandler
- the waiting handler
java.sql.SQLException
- exception thrown whenever an error occurred while
interrogating the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the database
java.lang.ClassNotFoundException
- exception thrown whenever the class of the
object is not found when deserializing it.public UrParameter getSpectrumMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
key
- the psm keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic void addSpectrumMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the psm keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic UrParameter getPeptideMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
key
- the peptide keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic void addPeptideMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the peptide keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic UrParameter getProteinMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
key
- the protein keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic void addProteinMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the protein keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updateProteinMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the protein keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updatePeptideMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the peptide keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updateSpectrumMatchParameter(java.lang.String key, UrParameter urParameter) throws java.sql.SQLException, java.io.IOException
key
- the spectrum keyurParameter
- the match parameter
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updateSpectrumMatch(SpectrumMatch spectrumMatch) throws java.sql.SQLException, java.io.IOException
spectrumMatch
- the match
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updatePeptideMatch(PeptideMatch peptideMatch) throws java.sql.SQLException, java.io.IOException
peptideMatch
- the match
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic void updateProteinMatch(ProteinMatch proteinMatch) throws java.sql.SQLException, java.io.IOException
proteinMatch
- the match
java.sql.SQLException
- exception thrown whenever an error occurred while
adding the object in the database
java.io.IOException
- exception thrown whenever an error occurred while
writing the objectpublic java.lang.String getSerializationDirectory()
public void setDirectory(java.lang.String serializationDirectory, boolean deleteOldDatabase) throws java.sql.SQLException
serializationDirectory
- the path of the directorydeleteOldDatabase
- if true, tries to delete the old database
java.sql.SQLException
public void removeMatch(java.lang.String matchKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException
matchKey
- the key of the match to remove
java.lang.IllegalArgumentException
java.sql.SQLException
- exception thrown whenever an error occurred while
deleting the match
java.io.IOException
public void removeSpectrumMatch(java.lang.String matchKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException
matchKey
- the key of the match to remove
java.lang.IllegalArgumentException
java.sql.SQLException
- exception thrown whenever an error occurred while
deleting the match
java.io.IOException
public void removePeptideMatch(java.lang.String matchKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException
matchKey
- the key of the match to remove
java.lang.IllegalArgumentException
java.sql.SQLException
- exception thrown whenever an error occurred while
deleting the match
java.io.IOException
public void removeProteinMatch(java.lang.String matchKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException
matchKey
- the key of the match to remove
java.lang.IllegalArgumentException
java.sql.SQLException
- exception thrown whenever an error occurred while
deleting the match
java.io.IOException
public boolean matchExists(java.lang.String matchKey)
matchKey
- the key of the match looked for
public SpectrumMatch getSpectrumMatch(java.lang.String spectrumKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
spectrumKey
- the key of the match
java.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while retrieving the match
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic PeptideMatch getPeptideMatch(java.lang.String peptideKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
peptideKey
- the key of the match
java.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while retrieving the match
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic ProteinMatch getProteinMatch(java.lang.String proteinKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
proteinKey
- the key of the match
java.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while retrieving the match
java.sql.SQLException
- exception thrown whenever an error occurred while
loading the object from the database
java.io.IOException
- exception thrown whenever an error occurred while
reading the object in the database
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while casting the database input in the desired match classpublic java.util.ArrayList<java.lang.String> getProteinIdentification()
public java.util.ArrayList<java.lang.String> getPeptideIdentification()
public java.util.ArrayList<java.lang.String> getSpectrumIdentification()
public java.util.ArrayList<java.lang.String> getSpectrumIdentification(java.lang.String spectrumFile)
spectrumFile
- the name of the spectrum file
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getSpectrumIdentificationMap()
public void addSpectrumMatch(SpectrumMatch newMatch) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException, java.sql.SQLException, java.lang.ClassNotFoundException
newMatch
- the new match
java.io.FileNotFoundException
- exception thrown whenever an error occurred
while saving the file
java.io.IOException
- exception thrown whenever an error occurred while
saving the file
java.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while saving the file
java.sql.SQLException
- exception thrown whenever an error occurred while
saving the file
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while saving the filepublic void buildPeptidesAndProteins(WaitingHandler waitingHandler) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
waitingHandler
- the waiting handler displaying the progress. Can be
null. The progress will be displayed as secondary.
java.lang.IllegalArgumentException
java.sql.SQLException
java.io.IOException
java.lang.ClassNotFoundException
public void buildPeptidesAndProteins(java.lang.String spectrumMatchKey) throws java.lang.IllegalArgumentException, java.sql.SQLException, java.io.IOException, java.lang.ClassNotFoundException
spectrumMatchKey
- The key of the spectrum match to add
java.lang.IllegalArgumentException
java.sql.SQLException
java.lang.ClassNotFoundException
java.io.IOException
public void addSpectrumMatch(java.util.Set<SpectrumMatch> spectrumMatches) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException, java.sql.SQLException, java.lang.ClassNotFoundException
spectrumMatches
- The spectrum matches
java.io.FileNotFoundException
- exception thrown whenever an error occurred
while saving the file
java.io.IOException
- exception thrown whenever an error occurred while
saving the file
java.lang.IllegalArgumentException
- exception thrown whenever an error
occurred while saving the file
java.sql.SQLException
- exception thrown whenever an error occurred while
saving the file
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while saving the filepublic int getMethodUsed()
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getProteinMap()
public java.lang.String getFileName(java.lang.String key)
key
- the key of the match
public java.lang.Boolean isDB()
public void setIsDB(java.lang.Boolean isDB)
isDB
- a boolean indicating whether the identification matches
should be stored in a database or serialized filespublic void close() throws java.sql.SQLException
java.sql.SQLException
- exception thrown whenever an error occurred while
closing the database connectionpublic IdentificationMatch.MatchType getMatchType(java.lang.String matchKey)
matchKey
- the match key
public void establishConnection(java.lang.String dbFolder, boolean deleteOldDatabase, ObjectsCache objectsCache) throws java.sql.SQLException
dbFolder
- the absolute path to the folder where the database is
locateddeleteOldDatabase
- if true, tries to delete the old databaseobjectsCache
-
java.sql.SQLException
- exception thrown whenever an error occurred while
establishing the connectionpublic void convert(WaitingHandler waitingHandler, java.lang.String newDirectory, java.lang.String newName, ObjectsCache objectsCache) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException, java.sql.SQLException
waitingHandler
- the waiting handlernewDirectory
- the new directory where to store the datanewName
- objectsCache
-
java.io.FileNotFoundException
- exception thrown whenever a file is not
found
java.io.IOException
- exception thrown whenever an error occurred while
reading/writing a file
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while deserializing a match
java.sql.SQLException
- exception thrown whenever an error occurred while
interacting with the databasepublic void updateSpectrumMapping()
public static java.lang.String getDefaultReference(java.lang.String experimentReference, java.lang.String sampleReference, int replicateNumber)
experimentReference
- the experiment referencesampleReference
- the sample referencereplicateNumber
- the replicate number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |