public class FileImporter extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
com.compomics.util.experiment.identification.protein_inference.FastaMapper |
getFastaMapper()
Returns the fasta mapper.
|
com.compomics.util.experiment.biology.genes.GeneMaps |
getGeneMaps()
Returns the gene maps.
|
InputMap |
getInputMap()
Returns the input map.
|
HashMap<String,Integer> |
getProteinCount()
Returns the occurrence of proteins.
|
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider |
getProteinDetailsProvider()
Returns the details provider.
|
com.compomics.util.experiment.io.biology.protein.SequenceProvider |
getSequenceProvider()
Returns the sequence provider.
|
int |
importFiles(ArrayList<File> idFiles)
Imports the identifications from the files.
|
void |
importGenes()
Imports the gene information for this project.
|
void |
importPsms(File idFile)
Imports the PSMs from an identification file.
|
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)
Imports sequences from a FASTA file and sets the sequence provider and
protein details provider fields.
|
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)
identification - The identification where to store the matches.processingParameters - The processing parameters.identificationParameters - The identification parameters.projectDetails - The project details.metrics - The metrics of the data set to be saved.spectrumProvider - The spectrum provider.waitingHandler - The handler displaying feedback to the user.exceptionHandler - The exception handler.public int importFiles(ArrayList<File> idFiles)
idFiles - the identification filespublic void importPsms(File idFile) throws IOException, InterruptedException, TimeoutException
idFile - the identification fileIOException - 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.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
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 exceptionsIOException - exception thrown if an error occurred while
reading the FASTA filepublic void importGenes()
public com.compomics.util.experiment.biology.genes.GeneMaps getGeneMaps()
public com.compomics.util.experiment.io.biology.protein.SequenceProvider getSequenceProvider()
public com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider getProteinDetailsProvider()
public com.compomics.util.experiment.identification.protein_inference.FastaMapper getFastaMapper()
public InputMap getInputMap()
Copyright © 2021. All rights reserved.