js-unimod
v1.1.1
Published
A module to provide unimod modifications
Downloads
15
Maintainers
Readme
js-unimod
This module provides access to Unimod modifications.
The modifications were retrieved from the Unimod website on May 17th, 2018. The file "unimod.obo" (format-version 1.2, date 2018:04:17) is used by this module to provide the data.
Installation
npm install peptide-modifier --save
Usage
var unimod = require('js-unimod');
var oxidation = unimod.getByName('oxidation');
/*
{
"id": "35",
"name": "Oxidation",
"mono_mass": 15.994915,
"avge_mass": 15.9994,
"composition": "O"
}
*/
var biotin = unimod.getById(3);
/*
{
"id": "3",
"name": "Biotin",
"mono_mass": 226.077598,
"avge_mass": 226.2954,
"composition": "H(14) C(10) N(2) O(2) S"
}
*/
var modifications = unimod.listMods();
/*
Returns an array of all the modification names
[ 'acetyl',
'amidated',
'biotin',
'carbamidomethyl',
'carbamyl',
'carboxymethyl',
'deamidated',
'icat-g',
'icat-g:2h(8)',
'met->hse',
'met->hsl',
'icat-d:2h(8)',
'icat-d',
'nipcam',
... ]
*/
Data are returned as JavaScript objects with the following fields:
- id
- name
- mono_mass
- avge_mass
- composition
Tests
You can run npm test
to run the tests after installing the development dependencies.
Future functionality
No future functionality is planned.
License
This software is released under the MIT license.