Class ProjectDetails
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
eu.isas.peptideshaker.preferences.ProjectDetails
- All Implemented Interfaces:
Serializable
public class ProjectDetails
extends com.compomics.util.experiment.personalization.ExperimentObject
This class contains the details about a project.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdentificationFiles(File identificationFile) Adds an identification file to the list of loaded identification files.voidaddSpectrumFilePath(String spectrumFilePath) Attaches a spectrum file to the project.Returns the different identification algorithm versions used in a map: algorithm name > versions.Returns the address of the contact for the mzIdentML dataset.Returns the e-mail of the contact for the mzIdentML dataset.Returns the first name of the contact for the mzIdentML dataset.Returns the last name of the contact for the mzIdentML dataset.Returns the URL of the contact for the mzIdentML dataset.Getter for the creation date of the project.Returns the path to the FASTA file.Returns a list of identification algorithms used based on the identification files of the project.getIdentificationAlgorithmsForFile(String idFileName) Returns the identification algorithms used to create the id file in map: algorithm name > algorithm version.Getter for all identification files loaded.Returns true if the protein sequences are to be included in the mzid export.Returns the mzIdentML output file.Returns the address of the organization for the mzIdentML dataset.Returns the e-mail of the organization for the mzIdentML dataset.Returns the name of the organization for the mzIdentML dataset.Returns the URL of the organization for the mzIdentML dataset.Returns the PeptideShaker version used to create the project.com.compomics.util.pride.prideobjects.ContactGroupReturns the PRIDE contact group.Returns the PRIDE experiment project description.Returns the PRIDE experiment label.Returns the PRIDE experiment project title.Returns the PRIDE experiment title.com.compomics.util.pride.prideobjects.InstrumentReturns the PRIDE instrument.Returns the PRIDE output folder.com.compomics.util.pride.prideobjects.ProtocolReturns the PRIDE protocol.com.compomics.util.pride.prideobjects.ReferenceGroupReturns the PRIDE reference group.com.compomics.util.pride.prideobjects.SampleReturns the PRIDE sample.Returns the report created during the loading of the project.Returns the name of the input spectrum files as a set.getSpectrumFilePath(String fileName) Returns the path to the file corresponding to the given name.Returns the user advocates used in this project.booleanReturns true if the identification algorithms are stored.voidsetContactAddress(String contactAddress) SEt the address of the contact for the mzIdentML dataset.voidsetContactEmail(String contactEmail) Set the e-mail of the contact for the mzIdentML dataset.voidsetContactFirstName(String contactFirstName) Set the first name of the contact for the mzIdentML dataset.voidsetContactLastName(String contactLastName) Set the last name of the contact for the mzIdentML dataset.voidsetContactUrl(String contactUrl) Set the first URL of the contact for the mzIdentML dataset.voidsetCreationDate(Date creationDate) Setter the creation date of the project.voidsetFastaFile(File fastaFile) Set the path to the FASTA file.voidsetIdentificationAlgorithmsForFile(String idFileName, HashMap<String, ArrayList<String>> fileIdentificationAlgorithms) Sets the identification algorithms used to create an identification file.voidsetIncludeProteinSequences(Boolean includeProteinSequences) Set if the protein sequences are to be included in the mzid export.voidsetMzIdentOutputFile(String mzIdentMLOutputFile) Set the mzIdentML output file.voidsetOrganizationAddress(String organizationAddress) Set the address of the organization for the mzIdentML dataset.voidsetOrganizationEmail(String organizationEmail) Set the name of the organization for the mzIdentML dataset.voidsetOrganizationName(String organizationName) Set the name of the organization for the mzIdentML dataset.voidsetOrganizationUrl(String organizationUrl) Set the URL of the organization for the mzIdentML dataset.voidsetPeptideShakerVersion(String peptideShakerVersion) Sets the PeptideShaker version used to create the project.voidsetPrideContactGroup(com.compomics.util.pride.prideobjects.ContactGroup prideContactGroup) Set the PRIDE contact group.voidsetPrideExperimentDescription(String prideExperimentDescription) Set the PRIDE experiment project description.voidsetPrideExperimentLabel(String prideExperimentLabel) Sets the PRIDE experiment label.voidsetPrideExperimentProjectTitle(String prideExperimentProjectTitle) Set the PRIDE experiment project title.voidsetPrideExperimentTitle(String prideExperimentTitle) Sets the PRIDE experiment title.voidsetPrideInstrument(com.compomics.util.pride.prideobjects.Instrument prideInstrument) Set the the PRIDE instrument.voidsetPrideOutputFolder(String prideOutputFolder) Set the PRIDE output folder.voidsetPrideProtocol(com.compomics.util.pride.prideobjects.Protocol prideProtocol) Set the PRIDE protocol.voidsetPrideReferenceGroup(com.compomics.util.pride.prideobjects.ReferenceGroup prideReferenceGroup) Set the PRIDE reference group.voidsetPrideSample(com.compomics.util.pride.prideobjects.Sample prideSample) Set the PRIDE sample.voidSet the report created during the loading of the project.voidsetUserAdvocateMapping(HashMap<Integer, com.compomics.util.experiment.identification.Advocate> userAdvocateMapping) Sets the user advocates used in this project.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
ProjectDetails
public ProjectDetails()Constructor.
-
-
Method Details
-
getIdentificationFiles
Getter for all identification files loaded.- Returns:
- all identification files loaded
-
addIdentificationFiles
Adds an identification file to the list of loaded identification files.- Parameters:
identificationFile- the identification file loaded
-
addSpectrumFilePath
Attaches a spectrum file to the project.- Parameters:
spectrumFilePath- the spectrum file to add
-
getSpectrumFileNames
Returns the name of the input spectrum files as a set.- Returns:
- the spectrum file names
-
getSpectrumFilePath
Returns the path to the file corresponding to the given name. Null if not found.- Parameters:
fileName- the name without extension of the desired file- Returns:
- the corresponding file, null if not found.
-
setFastaFile
Set the path to the FASTA file.- Parameters:
fastaFile- the FASTA file
-
getFastaFile
Returns the path to the FASTA file.- Returns:
- the path to the FASTA file
-
getCreationDate
Getter for the creation date of the project.- Returns:
- the creation date of the project
-
setCreationDate
Setter the creation date of the project.- Parameters:
creationDate- the creation date of the project
-
getPeptideShakerVersion
Returns the PeptideShaker version used to create the project.- Returns:
- the PeptideShaker version used to create the project
-
setPeptideShakerVersion
Sets the PeptideShaker version used to create the project.- Parameters:
peptideShakerVersion- the PeptideShaker version used to create the project
-
getReport
Returns the report created during the loading of the project.- Returns:
- the report created during the loading of the project
-
setReport
Set the report created during the loading of the project.- Parameters:
report- the report to set
-
getPrideExperimentTitle
Returns the PRIDE experiment title.- Returns:
- the prideExperimenttitle
-
setPrideExperimentTitle
Sets the PRIDE experiment title.- Parameters:
prideExperimentTitle- the prideExperimentTitle to set
-
getPrideExperimentLabel
Returns the PRIDE experiment label.- Returns:
- the prideExperimentLabel
-
setPrideExperimentLabel
Sets the PRIDE experiment label.- Parameters:
prideExperimentLabel- the prideExperimentLabel to set
-
getPrideExperimentProjectTitle
Returns the PRIDE experiment project title.- Returns:
- the prideExperimentProjectTitle
-
setPrideExperimentProjectTitle
Set the PRIDE experiment project title.- Parameters:
prideExperimentProjectTitle- the prideExperimentProjectTitle to set
-
getPrideExperimentDescription
Returns the PRIDE experiment project description.- Returns:
- the prideExperimentDescription
-
setPrideExperimentDescription
Set the PRIDE experiment project description.- Parameters:
prideExperimentDescription- the prideExperimentDescription to set
-
getPrideReferenceGroup
public com.compomics.util.pride.prideobjects.ReferenceGroup getPrideReferenceGroup()Returns the PRIDE reference group.- Returns:
- the prideReferenceGroup
-
setPrideReferenceGroup
public void setPrideReferenceGroup(com.compomics.util.pride.prideobjects.ReferenceGroup prideReferenceGroup) Set the PRIDE reference group.- Parameters:
prideReferenceGroup- the prideReferenceGroup to set
-
getPrideContactGroup
public com.compomics.util.pride.prideobjects.ContactGroup getPrideContactGroup()Returns the PRIDE contact group.- Returns:
- the prideContactGroup
-
setPrideContactGroup
public void setPrideContactGroup(com.compomics.util.pride.prideobjects.ContactGroup prideContactGroup) Set the PRIDE contact group.- Parameters:
prideContactGroup- the prideContactGroup to set
-
getPrideSample
public com.compomics.util.pride.prideobjects.Sample getPrideSample()Returns the PRIDE sample.- Returns:
- the prideSample
-
setPrideSample
public void setPrideSample(com.compomics.util.pride.prideobjects.Sample prideSample) Set the PRIDE sample.- Parameters:
prideSample- the prideSample to set
-
getPrideProtocol
public com.compomics.util.pride.prideobjects.Protocol getPrideProtocol()Returns the PRIDE protocol.- Returns:
- the prideProtocol
-
setPrideProtocol
public void setPrideProtocol(com.compomics.util.pride.prideobjects.Protocol prideProtocol) Set the PRIDE protocol.- Parameters:
prideProtocol- the prideProtocol to set
-
getPrideInstrument
public com.compomics.util.pride.prideobjects.Instrument getPrideInstrument()Returns the PRIDE instrument.- Returns:
- the prideInstrument
-
setPrideInstrument
public void setPrideInstrument(com.compomics.util.pride.prideobjects.Instrument prideInstrument) Set the the PRIDE instrument.- Parameters:
prideInstrument- the prideInstrument to set
-
getPrideOutputFolder
Returns the PRIDE output folder.- Returns:
- the prideOutputFolder
-
setPrideOutputFolder
Set the PRIDE output folder.- Parameters:
prideOutputFolder- the prideOutputFolder to set
-
getMzIdentMLOutputFile
Returns the mzIdentML output file.- Returns:
- the mzIdentML output file
-
setMzIdentOutputFile
Set the mzIdentML output file.- Parameters:
mzIdentMLOutputFile- the mzIdentMLOutputFile to set
-
hasIdentificationAlgorithms
public boolean hasIdentificationAlgorithms()Returns true if the identification algorithms are stored.- Returns:
- true if the identification algorithms are stored
-
getIdentificationAlgorithms
Returns a list of identification algorithms used based on the identification files of the project.- Returns:
- a list of identification algorithms indexed by the static field of the Advocate class
-
getAlgorithmNameToVersionsMap
Returns the different identification algorithm versions used in a map: algorithm name > versions.- Returns:
- the different identification algorithm versions used
-
getIdentificationAlgorithmsForFile
Returns the identification algorithms used to create the id file in map: algorithm name > algorithm version.- Parameters:
idFileName- the identification file name- Returns:
- the identification algorithms used
-
setIdentificationAlgorithmsForFile
public void setIdentificationAlgorithmsForFile(String idFileName, HashMap<String, ArrayList<String>> fileIdentificationAlgorithms) Sets the identification algorithms used to create an identification file.- Parameters:
idFileName- the name of the identification filefileIdentificationAlgorithms- the identification algorithms used to create this file in a map: algorithm name > versions
-
getContactFirstName
Returns the first name of the contact for the mzIdentML dataset.- Returns:
- the contactFirstName
-
setContactFirstName
Set the first name of the contact for the mzIdentML dataset.- Parameters:
contactFirstName- the contactFirstName to set
-
getContactLastName
Returns the last name of the contact for the mzIdentML dataset.- Returns:
- the contactLastName
-
setContactLastName
Set the last name of the contact for the mzIdentML dataset.- Parameters:
contactLastName- the contactLastName to set
-
getContactEmail
Returns the e-mail of the contact for the mzIdentML dataset.- Returns:
- the contactEmailName
-
setContactEmail
Set the e-mail of the contact for the mzIdentML dataset.- Parameters:
contactEmail- the contactEmailName to set
-
getContactUrl
Returns the URL of the contact for the mzIdentML dataset.- Returns:
- the contactUrl
-
setContactUrl
Set the first URL of the contact for the mzIdentML dataset.- Parameters:
contactUrl- the contactUrl to set
-
getContactAddress
Returns the address of the contact for the mzIdentML dataset.- Returns:
- the contactAddress
-
setContactAddress
SEt the address of the contact for the mzIdentML dataset.- Parameters:
contactAddress- the contactAddress to set
-
getOrganizationName
Returns the name of the organization for the mzIdentML dataset.- Returns:
- the organizationName
-
setOrganizationName
Set the name of the organization for the mzIdentML dataset.- Parameters:
organizationName- the organizationName to set
-
getOrganizationEmail
Returns the e-mail of the organization for the mzIdentML dataset.- Returns:
- the organizationEmail
-
setOrganizationEmail
Set the name of the organization for the mzIdentML dataset.- Parameters:
organizationEmail- the organizationEmail to set
-
getOrganizationUrl
Returns the URL of the organization for the mzIdentML dataset.- Returns:
- the organizationUrl
-
setOrganizationUrl
Set the URL of the organization for the mzIdentML dataset.- Parameters:
organizationUrl- the organizationUrl to set
-
getOrganizationAddress
Returns the address of the organization for the mzIdentML dataset.- Returns:
- the organizationAddress
-
setOrganizationAddress
Set the address of the organization for the mzIdentML dataset.- Parameters:
organizationAddress- the organizationAddress to set
-
getUserAdvocateMapping
public HashMap<Integer,com.compomics.util.experiment.identification.Advocate> getUserAdvocateMapping()Returns the user advocates used in this project.- Returns:
- the user advocates used in this project
-
setUserAdvocateMapping
public void setUserAdvocateMapping(HashMap<Integer, com.compomics.util.experiment.identification.Advocate> userAdvocateMapping) Sets the user advocates used in this project.- Parameters:
userAdvocateMapping- the user advocates used in this project
-
getIncludeProteinSequences
Returns true if the protein sequences are to be included in the mzid export.- Returns:
- true if the protein sequences are to be included in the mzid export
-
setIncludeProteinSequences
Set if the protein sequences are to be included in the mzid export.- Parameters:
includeProteinSequences- the includeProteinSequences to set
-