CSMSL.Proteomics.Protein.Digest C# (CSharp) Method

Digest() public method

Digests this protein into peptides.
public Digest ( IEnumerable proteases, int maxMissedCleavages = 3, int minLength = 1, int maxLength = int.MaxValue, bool initiatorMethonine = true, bool includeModifications = false, bool semiDigestion = false ) : IEnumerable
proteases IEnumerable The proteases to digest with
maxMissedCleavages int The max number of missed cleavages generated, 0 means no missed cleavages
minLength int The minimum length (in amino acids) of the peptide
maxLength int The maximum length (in amino acids) of the peptide
initiatorMethonine bool
includeModifications bool
semiDigestion bool
return IEnumerable
        public virtual IEnumerable<Peptide> Digest(IEnumerable<IProtease> proteases, int maxMissedCleavages = 3, int minLength = 1, int maxLength = int.MaxValue, bool initiatorMethonine = true, bool includeModifications = false, bool semiDigestion = false)
        {
            return GetDigestionPoints(Sequence, proteases, maxMissedCleavages, minLength, maxLength, initiatorMethonine, semiDigestion).Select(points => new Peptide(this, points.Item1, points.Item2, includeModifications));
        }

Same methods

Protein::Digest ( IProtease protease, int maxMissedCleavages = 3, int minLength = 1, int maxLength = int.MaxValue, bool initiatorMethonine = true, bool includeModifications = false, bool semiDigestion = false ) : IEnumerable

Usage Example

        public void DuplicatePeptidesAreEqualivant()
        {
            Protein prot = new Protein("DEREKDEREK");

            var peptides = prot.Digest(Protease.GetProtease("LysC"), 0).ToList();
            Assert.AreEqual(peptides[0], peptides[1]);
        }
All Usage Examples Of CSMSL.Proteomics.Protein::Digest