js-unimode 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "js-unimode",
3
+ "version": "1.1.1",
4
+ "description": "A module to provide unimod modifications",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node ./test/test-index.js | tap-spec"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/emptyport/unimod.git"
12
+ },
13
+ "keywords": [
14
+ "peptide",
15
+ "protein",
16
+ "chemistry",
17
+ "modification",
18
+ "unimod",
19
+ "proteomics"
20
+ ],
21
+ "author": "Michael Porter <michaelporter.chemistry@gmail.com>",
22
+ "license": "MIT",
23
+ "bugs": {
24
+ "url": "https://github.com/emptyport/unimod/issues"
25
+ },
26
+ "homepage": "https://github.com/emptyport/unimod#readme",
27
+ "devDependencies": {
28
+ "tap-spec": "^4.1.1",
29
+ "tape": "^4.9.0"
30
+ },
31
+ "dependencies": {},
32
+ "directories": {
33
+ "test": "test"
34
+ }
35
+ }
@@ -0,0 +1,15 @@
1
+ var unimod = require('../index');
2
+ var test = require('tape');
3
+
4
+ test('Default Settings', function(t) {
5
+ var oxidation = unimod.getByName('oxidation');
6
+ var uppercaseOxidation = unimod.getByName('Oxidation');
7
+ var biotin = unimod.getById(3);
8
+
9
+ t.equal(15.994915, oxidation['mono_mass'], 'Correctly retrieved oxidation by name');
10
+ t.equal(oxidation['avge_mass'], uppercaseOxidation['avge_mass'], 'Case insensitive');
11
+ t.equal('Biotin', biotin['name'], 'Correctly retrieved biotin by ID');
12
+ t.equal(1476, unimod.listMods().length, 'Returns list of modification names');
13
+ t.end();
14
+ });
15
+