Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

peptide

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peptide - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

src/aminoAcids.js

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc