Package eu.isas.peptideshaker.fileimport
Class FileImporter
java.lang.Object
eu.isas.peptideshaker.fileimport.FileImporter
This class is responsible for the import of identifications.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
ConstructorsConstructorDescriptionFileImporter(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, ProjectDetails projectDetails, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor for the importer. -
Method Summary
Modifier and TypeMethodDescriptioncom.compomics.util.experiment.identification.protein_inference.FastaMapperReturns the fasta mapper.com.compomics.util.experiment.biology.genes.GeneMapsReturns the gene maps.Returns the input map.Returns the occurrence of proteins.com.compomics.util.experiment.io.biology.protein.ProteinDetailsProviderReturns the details provider.com.compomics.util.experiment.io.biology.protein.SequenceProviderReturns the sequence provider.intimportFiles(ArrayList<File> idFiles) Imports the identifications from the files.voidImports the gene information for this project.voidimportPsms(File idFile) Imports the PSMs from an identification file.voidimportSequences(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingParameters, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.parameters.identification.advanced.PeptideVariantsParameters peptideVariantsParameters, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Imports sequences from a FASTA file and sets the sequence provider and protein details provider fields.
-
Constructor Details
-
FileImporter
public FileImporter(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics, ProjectDetails projectDetails, com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor for the importer.- Parameters:
identification- The identification where to store the matches.identificationParameters- The identification parameters.processingParameters- The processing parameters.metrics- The metrics of the data set to be saved.projectDetails- The project details.spectrumProvider- The spectrum provider.waitingHandler- The handler displaying feedback to the user.exceptionHandler- The exception handler.
-
-
Method Details
-
importFiles
Imports the identifications from the files.- Parameters:
idFiles- the identification files- Returns:
- 0 if success, 1 if not
-
importPsms
Imports the PSMs from an identification file.- Parameters:
idFile- the identification file- Throws:
IOException- exception thrown if an error occurred when parsing the fileInterruptedException- Exception thrown if a thread is interrupted.TimeoutException- Exception thrown if the process timed out.
-
importSequences
public void importSequences(com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingParameters, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.parameters.identification.advanced.PeptideVariantsParameters peptideVariantsParameters, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) throws IOException Imports sequences from a FASTA file and sets the sequence provider and protein details provider fields.- Parameters:
sequenceMatchingParameters- the sequence matching parameterssearchParameters- the search parametersfastaParameters- the FASTA parameterspeptideVariantsParameters- the peptide variants parameters set by the userwaitingHandler- the handler displaying feedback to the user and allowing canceling the importexceptionHandler- handler for exceptions- Throws:
IOException- exception thrown if an error occurred while reading the FASTA file
-
importGenes
public void importGenes()Imports the gene information for this project. -
getGeneMaps
public com.compomics.util.experiment.biology.genes.GeneMaps getGeneMaps()Returns the gene maps.- Returns:
- the gene maps
-
getSequenceProvider
public com.compomics.util.experiment.io.biology.protein.SequenceProvider getSequenceProvider()Returns the sequence provider.- Returns:
- the sequence provider
-
getProteinDetailsProvider
public com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider getProteinDetailsProvider()Returns the details provider.- Returns:
- the details provider
-
getFastaMapper
public com.compomics.util.experiment.identification.protein_inference.FastaMapper getFastaMapper()Returns the fasta mapper.- Returns:
- the fasta mapper
-
getInputMap
Returns the input map.- Returns:
- the input map
-
getProteinCount
Returns the occurrence of proteins.- Returns:
- the occurrence of proteins
-