public class PeptideShaker extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_DIRECTORY
Folder where the data files are stored by default.
|
static String |
PEPTIDESHAKER_CONFIGURATION_FILE
Default PeptideShaker modifications.
|
static int |
TIMEOUT_DAYS
Default time out in days.
|
| Constructor and Description |
|---|
PeptideShaker(com.compomics.util.experiment.ProjectParameters projectParameters)
Constructor without mass specification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createProject(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.parameters.tools.ProcessingParameters processingParameters,
com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters spectrumCountingParameters,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
ProjectDetails projectDetails,
com.compomics.util.parameters.peptide_shaker.ProjectType projectType,
com.compomics.util.waiting.WaitingHandler waitingHandler,
boolean setWaitingHandlerFinshedWhenDone,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
Creates a PeptideShaker project.
|
com.compomics.util.experiment.biology.genes.GeneMaps |
getGeneMaps()
Returns the gene maps.
|
com.compomics.util.experiment.identification.Identification |
getIdentification()
Returns the identification object.
|
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator |
getIdentificationFeaturesGenerator()
Returns the identification features generator used when loading the
files.
|
static String |
getJarFilePath()
Retrieves the path to the jar file.
|
static String |
getMatchesDirectoryParent()
Returns the matches directory parent.
|
static File |
getMatchesDirectoryParentFile()
Returns the matches directory parent.
|
static String |
getMatchesDirectorySubPath()
Returns the directory used to store the identification matches.
|
static File |
getMatchesFolder()
Returns the path to the matches folder according to the user path
settings.
|
com.compomics.util.experiment.identification.peptide_shaker.Metrics |
getMetrics()
Returns the metrics picked-up while loading the files.
|
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider |
getProteinDetailsProvider()
Returns the protein details provider.
|
com.compomics.util.experiment.io.biology.protein.SequenceProvider |
getSequenceProvider()
Returns the sequence provider.
|
static String |
getUserPreferencesFile()
Returns the file used for user preferences storage.
|
static String |
getUserPreferencesFolder()
Returns the folder used for user preferences storage.
|
static String |
getVersion()
Retrieves the version number set in the pom file.
|
int |
importFiles(com.compomics.util.waiting.WaitingHandler waitingHandler,
ArrayList<File> idFiles,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
ProjectDetails projectDetails,
com.compomics.util.parameters.tools.ProcessingParameters processingPreferences,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
Imports identification results from result files.
|
static void |
instantiateFacories(com.compomics.util.parameters.UtilitiesUserParameters utilitiesUserPreferences)
Instantiates the spectrum, sequence, and PTM factories with caches
adapted to the memory available as set in the user preferences.
|
static String |
loadModifications(com.compomics.util.parameters.identification.search.SearchParameters searchParameters)
Verifies that the modifications backed-up in the search parameters are
loaded and returns an error message if one was already loaded, null
otherwise.
|
void |
peptideMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider)
Processes the identifications if a change occurred in the peptide map.
|
void |
proteinMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider)
Processes the identifications if a change occurred in the protein map.
|
void |
setGeneMaps(com.compomics.util.experiment.biology.genes.GeneMaps geneMaps)
Sets the gene maps.
|
static void |
setMatchesDirectoryParent(String matchesDirectoryParent)
Sets the matches directory parent.
|
static void |
setUserPreferencesFolder(String userPreferencesFolder)
Sets the file used for user preferences storage.
|
void |
spectrumMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.tools.ProcessingParameters processingPreferences,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.peptide_shaker.ProjectType projectType)
Processes the identifications if a change occurred in the PSM map.
|
public static final int TIMEOUT_DAYS
public static final String PEPTIDESHAKER_CONFIGURATION_FILE
public static String DATA_DIRECTORY
public PeptideShaker(com.compomics.util.experiment.ProjectParameters projectParameters)
projectParameters - the experiment conductedpublic int importFiles(com.compomics.util.waiting.WaitingHandler waitingHandler,
ArrayList<File> idFiles,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
ProjectDetails projectDetails,
com.compomics.util.parameters.tools.ProcessingParameters processingPreferences,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
waitingHandler - the handler displaying feedback to the useridFiles - the files to importspectrumProvider - the spectrum provideridentificationParameters - identification parametersprojectDetails - the project detailsprocessingPreferences - the initial processing preferencesexceptionHandler - the exception handlerpublic void createProject(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.parameters.tools.ProcessingParameters processingParameters,
com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters spectrumCountingParameters,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
ProjectDetails projectDetails,
com.compomics.util.parameters.peptide_shaker.ProjectType projectType,
com.compomics.util.waiting.WaitingHandler waitingHandler,
boolean setWaitingHandlerFinshedWhenDone,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
throws InterruptedException,
TimeoutException,
IOException
waitingHandler - the handler displaying feedback to the userexceptionHandler - handler for exceptionsidentificationParameters - the identification parametersprocessingParameters - the processing parametersprojectType - the project typespectrumCountingParameters - the spectrum counting parametersspectrumProvider - the spectrum providersetWaitingHandlerFinshedWhenDone - if true, the waiting handler is
set to finished when the project is createdprojectDetails - the project detailsInterruptedException - exception thrown if a thread gets
interruptedTimeoutException - exception thrown if a
process times outIOException - if an exception occurs when parsing filespublic void spectrumMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.tools.ProcessingParameters processingPreferences,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.peptide_shaker.ProjectType projectType)
identification - the identification object containing the
identification matcheswaitingHandler - the waiting handlerprocessingPreferences - the processing preferencesidentificationParameters - the identification parameterssequenceProvider - a protein sequence providerspectrumProvider - the spectrum providerprojectType - the project typepublic void peptideMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider)
identification - the identification object containing the
identification matcheswaitingHandler - the waiting handleridentificationParameters - the identification parameterssequenceProvider - a protein sequence providerspectrumProvider - the spectrum providerpublic void proteinMapChanged(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.waiting.WaitingHandler waitingHandler,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider)
identification - the identification object containing the
identification matcheswaitingHandler - the waiting handleridentificationParameters - the identification parameterssequenceProvider - a protein sequence providerpublic com.compomics.util.experiment.identification.peptide_shaker.Metrics getMetrics()
public com.compomics.util.experiment.biology.genes.GeneMaps getGeneMaps()
public com.compomics.util.experiment.identification.Identification getIdentification()
public com.compomics.util.experiment.io.biology.protein.SequenceProvider getSequenceProvider()
public com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider getProteinDetailsProvider()
public void setGeneMaps(com.compomics.util.experiment.biology.genes.GeneMaps geneMaps)
geneMaps - the new gene mapspublic com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator getIdentificationFeaturesGenerator()
public static String loadModifications(com.compomics.util.parameters.identification.search.SearchParameters searchParameters)
searchParameters - the search parameters to loadpublic static String getUserPreferencesFile()
public static String getUserPreferencesFolder()
public static void setUserPreferencesFolder(String userPreferencesFolder)
userPreferencesFolder - the folder used for user preferences storagepublic static String getMatchesDirectorySubPath()
public static String getMatchesDirectoryParent()
public static File getMatchesDirectoryParentFile()
public static void setMatchesDirectoryParent(String matchesDirectoryParent) throws IOException
matchesDirectoryParent - the matches directory parentIOException - thrown of an exception occurspublic static File getMatchesFolder()
public static void instantiateFacories(com.compomics.util.parameters.UtilitiesUserParameters utilitiesUserPreferences)
utilitiesUserPreferences - the user preferencespublic static String getVersion()
public static String getJarFilePath()
Copyright © 2021. All rights reserved.