Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
peptide-cutter
Advanced tools
A library for digesting amino acid sequences using rules from Expasy
A library for in silico proteolytic digestion of proteins and peptides.
View on npm here.
npm install peptide-cutter --save
PLEASE NOTE
This module relies on positive lookbehind regex and thus can only be run with newer versions of JavaScript. You may need to use the
--harmony
argument with node in order to use this module.
Also note
v2.x.x introduces breaking changes from v1.x.x in the return format
var peptideCutter = require('peptide-cutter');
var options = {
'enzyme': 'trypsin',
'num_missed_cleavages': 2,
'min_length': 2,
'max_length': 30
};
var cutter = new peptideCutter(options);
var peptides = cutter.cleave("KARATE");
Return format:
[ { sequence: 'KAR', start: 0, end: 2, missed: 1 },
{ sequence: 'KARATE', start: 0, end: 5, missed: 2 },
{ sequence: 'AR', start: 1, end: 2, missed: 0 },
{ sequence: 'ARATE', start: 1, end: 5, missed: 1 },
{ sequence: 'ATE', start: 3, end: 5, missed: 0 } ]
sequence
is the digested fragmentstart
is the 0-based index of where in the original sequence the fragment can be foundend
is the 0-based index of where in the original sequence the fragment ends (this value is inclusive)missed
is the number of missed cleavages found in this particular fragment.The regex for the cleavage sites was stolen borrowed from the Pyteomics package which in turn comes from the Expasy PeptideCutter.
The available enzymes and their corresponding regex are also found in expasy_rules.json
You can run npm test
to run the tests after installing the development dependencies. There are basic tests to make sure all the enzymes will cleave proteins, but I cannot guarantee their completeness.
There are currently no planned improvements to this module. I am open to suggestions so let me know if you think something is missing.
This software is released under the MIT license
FAQs
A library for digesting amino acid sequences using rules from Expasy
We found that peptide-cutter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.