Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "peptide", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Peptide", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "peptide", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Peptide", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -27,6 +27,10 @@ # peptide | ||
#### chargePeptide(mf) | ||
#### chargePeptide(mf, options) | ||
Add a positive charge on Arg, His and Lys | ||
Charge the peptide at a specific pH | ||
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. | ||
__Arguments__ | ||
@@ -33,0 +37,0 @@ |
'use strict'; | ||
var aa = require('./amino_acid'); | ||
var aa = require('./aminoAcids'); | ||
var IEP = require('./isoElectricPoint'); | ||
var chargePeptide = require('./chargePeptide'); | ||
exports.getInfo = function () { | ||
@@ -85,6 +85,5 @@ return aa; | ||
exports.chargePeptide = function chargePeptide(mf) { | ||
return mf.replace(/^H([^+])/, 'H+H$1').replace(/(Arg|His|Lys)(?!\()/g, '$1(H+)'); | ||
}; | ||
exports.chargePeptide = chargePeptide; | ||
function aa1To3(code) { | ||
@@ -91,0 +90,0 @@ for (var i = 0; i < aa.length; i++) { |
'use strict'; | ||
var aa = require('./amino_acid'); | ||
var aa = require('./aminoAcids'); | ||
@@ -6,0 +6,0 @@ // we will convert the data to an object to be much faster |
Sorry, the diff of this file is not supported yet
20321
14
591
107