Package eu.isas.peptideshaker.fileimport
Class PsmImportRunnable
java.lang.Object
eu.isas.peptideshaker.fileimport.PsmImportRunnable
- All Implemented Interfaces:
Runnable
Runnable for the import of PSMs.
- Author:
- Marc Vaudel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSize of the batches to use when adding objects to the database. -
Constructor Summary
ConstructorsConstructorDescriptionPsmImportRunnable(ConcurrentLinkedQueue<com.compomics.util.experiment.identification.matches.SpectrumMatch> spectrumMatchQueue, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.io.identification.IdfileReader fileReader, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.identification.protein_inference.FastaMapper fastaMapper, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of PSMs which did not pass the import filters due to a modification parsing issue.longReturns the total number of peptide assumptions parsed.longgetnPSMs()Returns the number of PSMs processed.intReturns the number of PSMs which did not pass the import filters due to a peptide issue.Returns the occurrence of each protein.voidrun()
-
Field Details
-
BATCH_SIZE
public static final int BATCH_SIZESize of the batches to use when adding objects to the database.- See Also:
-
-
Constructor Details
-
PsmImportRunnable
public PsmImportRunnable(ConcurrentLinkedQueue<com.compomics.util.experiment.identification.matches.SpectrumMatch> spectrumMatchQueue, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.io.identification.IdfileReader fileReader, com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider, com.compomics.util.experiment.identification.protein_inference.FastaMapper fastaMapper, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor.- Parameters:
spectrumMatchQueue- the spectrum matches iterator to useidentificationParameters- the identification parametersprocessingParameters- the processing parametersfileReader- the reader of the file which the matches are imported fromidentification- the identification object where to store the matchessequenceProvider- the protein sequence providerfastaMapper- the FASTA mapper used to map peptides to proteinswaitingHandler- The waiting handler to display feedback to the user.exceptionHandler- The handler of exceptions.
-
-
Method Details
-
run
public void run() -
getnPSMs
public long getnPSMs()Returns the number of PSMs processed.- Returns:
- the number of PSMs processed
-
getnPeptideAssumptionsTotal
public long getnPeptideAssumptionsTotal()Returns the total number of peptide assumptions parsed.- Returns:
- the total number of peptide assumptions parsed
-
getPeptideIssue
public int getPeptideIssue()Returns the number of PSMs which did not pass the import filters due to a peptide issue.- Returns:
- the number of PSMs which did not pass the import filters due to a peptide issue
-
getModificationIssue
public int getModificationIssue()Returns the number of PSMs which did not pass the import filters due to a modification parsing issue.- Returns:
- the number of PSMs which did not pass the import filters due to a modification parsing issue
-
getProteinCount
Returns the occurrence of each protein.- Returns:
- the occurrence of each protein
-