New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-unimod

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-unimod

A module to provide unimod modifications

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Support this project!

Support this project on Patreon!

Keywords

FAQs

Package last updated on 21 Jun 2018

Did you know?

Socket

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.

Install

Related posts

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