Class SpecificSingleEnzymeIterator
java.lang.Object
com.compomics.util.experiment.identification.protein_sequences.digestion.iterators.SpecificSingleEnzymeIterator
- All Implemented Interfaces:
SequenceIterator
public class SpecificSingleEnzymeIterator extends Object implements SequenceIterator
Iterator for enzymatic digestion.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors Constructor Description SpecificSingleEnzymeIterator()
Empty default constructorSpecificSingleEnzymeIterator(ProteinIteratorUtils proteinIteratorUtils, String proteinSequence, Enzyme enzyme, int nMissedCleavages, double massMin, double massMax)
Constructor. -
Method Summary
Modifier and Type Method Description ExtendedPeptide
getNextPeptide()
Returns the next peptide that can be generated from the iterator.
-
Constructor Details
-
SpecificSingleEnzymeIterator
public SpecificSingleEnzymeIterator()Empty default constructor -
SpecificSingleEnzymeIterator
public SpecificSingleEnzymeIterator(ProteinIteratorUtils proteinIteratorUtils, String proteinSequence, Enzyme enzyme, int nMissedCleavages, double massMin, double massMax)Constructor.- Parameters:
proteinIteratorUtils
- utils for the creation of the peptidesproteinSequence
- the sequence to iterateenzyme
- the enzyme to use for digestionnMissedCleavages
- the maximal number of missed cleavages allowedmassMin
- the minimal mass of a peptidemassMax
- the maximal mass of a peptide
-
-
Method Details
-
getNextPeptide
Description copied from interface:SequenceIterator
Returns the next peptide that can be generated from the iterator. Null if none left.- Specified by:
getNextPeptide
in interfaceSequenceIterator
- Returns:
- the next peptide that can be generated from the iterator
- Throws:
InterruptedException
- exception thrown if a thread is interrupted
-