2.1.1 • Published 5 months ago

peptide v2.1.1

Weekly downloads
36
License
MIT
Repository
github
Last release
5 months ago

peptide

NPM version build status David deps npm download

Peptide

Amino acids

getInfo()

Returns an array of information about amino acids

Amino acids sequence

sequenceToMF(sequence)

Previously convertAASequence(sequence) (deprecated)

Returns a peptidic sequence from a PDB or one letter code to the internal molecular formula format

Arguments

  • sequence - string with the amino acids sequence

chargePeptide(mf, options)

Charge the peptide at a specific pH. 'mf' is either a 3 letter peptide sequence or an array of peptide sequences.

Arguments

  • mf - string with a molecular formula to charge
  • options:
  • pH : you may specify the pH to calculate the protonation state. By default: 0, it has the consequence to add a positive charge on Arg, His and Lys.

allowNeutralLoss(mf, options)

Allow neutral loss :

  • H2O for S, T, E, D residues
  • NH3 for R, K, Q, N residues

The residues may not be modified.

Arguments

  • mf - string with a molecular formula to charge

generatePeptideFragments(mf, options)

Generate peptide fragmentation. Returns an array of molecular formulas with the different fragments.

Arguments

  • mf - string with the molecular formula
  • options - object with requested fragments. Default: {a:false, b:true, c:false, x:false, y:true, z:false, i:false}

You can also specify internal fragments using the options 'ya', 'yb', 'yc' and 'zc' as well as the minimal length of internal fragments 'minInternal' and the maximal length of internal fragments 'maxInternal'

Isoelectric Point

pKa of amino acids is based on https://en.wikipedia.org/wiki/Amino_acid.

calculateCharge(sequence, ph)

Calculate the charge for a specific amino acid sequence. The sequence should be entered in the form "HAlaGlyOH". Please take care about the N and C terminal end. You may use the methods "convertAASequence" to create such a sequence from other format.

Arguments

  • sequence - string with the amino acids sequence
  • ph - ph for which to calculate the charge. Default: 7.0

splitPeptide(sequence)

Split a 3 letter code sequence respecting uppercase, lowercase in an array of residu.

Arguments

  • sequence - string with the amino acids sequence

digestPeptide(sequence, options)

Allows to digest virtually a peptide

Arguments

  • sequence - string with the amino acids sequence
  • options
    • minMissed - minimal missed cleavage (default: 0)
    • maxMissed - maximal missed cleavage (default: 0)
    • minResidue - minimal number of residues (default: 0)
    • maxResidue - maximal number of residues (default: infinity)
    • enzyme - enzyme used for digestion
      • chymotrypsin : (Phe|Tyr|Trp)(?!Pro)
      • trypsin : (Lys|Arg)(?!Pro)
      • lysc : (Lys)(?!Pro)
      • glucph4 : (Glu)(?!Pro|Glu)
      • glucph8 : (Asp|Glu)(?!Pro|Glu)
      • thermolysin : (Leu|Ile|Met|Phe|Trp)
      • cyanogenbromide : (Met)

calculateIEP(sequence)

Calculate the isoelectric point for a specific amino acid sequence. The sequence should be entered in the form "HAlaGlyOH". Please take care about the N and C terminal end. You may use the methods "convertAASequence" to create such a sequence from other format.

Arguments

  • sequence - string with the amino acids sequence

calculateIEPChart(sequence)

Returns an object containing the y and yAbs array of the charge of the peptide for a pH that goes from 0 to 14.

Arguments

  • sequence - string with the amino acids sequence

getColorForIEP(iep)

Returns a color based on the isoelectric point :

  • 0 -> 7 means that at pH 7 it is charged negatively (blue)
  • 7 -> 14 means that at pH7 it is charged positively (red)

Arguments

  • iep - the value of the isoelectric point

License

MIT

2.1.1

5 months ago

2.1.0

7 months ago

1.12.0

1 year ago

1.11.5

1 year ago

2.0.0

1 year ago

1.11.4

2 years ago

1.11.3

2 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.1

4 years ago

1.10.0

5 years ago

1.9.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.2

5 years ago

1.6.1

6 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

9 years ago

0.0.0

9 years ago