Comparing version 1.4.12 to 1.4.13
{ | ||
"name": "emdb", | ||
"version": "1.4.12", | ||
"version": "1.4.13", | ||
"description": "Database manager for exact mass query", | ||
@@ -27,4 +27,4 @@ "main": "src/index.js", | ||
"mf-finder": "^1.1.19", | ||
"mf-from-google-sheet": "^1.1.20", | ||
"mf-generator": "^1.3.8", | ||
"mf-from-google-sheet": "^1.1.21", | ||
"mf-generator": "^1.3.9", | ||
"mf-matcher": "^1.1.19", | ||
@@ -36,3 +36,3 @@ "mf-parser": "^1.4.0", | ||
"ml-regression-theil-sen": "^2.0.0", | ||
"ms-spectrum": "^1.4.1", | ||
"ms-spectrum": "^1.4.2", | ||
"nucleotide": "^1.2.14", | ||
@@ -42,3 +42,3 @@ "peaks-similarity": "^2.3.1", | ||
}, | ||
"gitHead": "8bb060a1741054f90e42ddbd1a3d411a91b63681" | ||
"gitHead": "095f36ed651b5cbc026f1169ebaf4f146d6bbc29" | ||
} |
@@ -32,2 +32,27 @@ 'use strict'; | ||
it('AAKK with callback', () => { | ||
let dbManager = new DBManager(); | ||
dbManager.fromPeptidicSequence('AAKK', { | ||
allowNeutralLoss: false, | ||
protonation: false, | ||
protonationPH: 7, | ||
ionizations: 'H+,Na+', | ||
fragmentation: { | ||
a: true, | ||
}, | ||
filter: { | ||
callback: (value) => { | ||
return value.parts[0].includes('AlaAlaLys'); | ||
}, | ||
}, | ||
}); | ||
const peptidic = dbManager.databases.peptidic.sort( | ||
(a, b) => a.ms.em - b.ms.em, | ||
); | ||
expect(peptidic).toHaveLength(4); | ||
expect(peptidic).toMatchSnapshot(); | ||
}); | ||
it('AAKKKKKKKKKKKKKKKKKK allowNeutralLoss', () => { | ||
@@ -34,0 +59,0 @@ let dbManager = new DBManager(); |
Sorry, the diff of this file is not supported yet
1244086
1967
Updatedmf-from-google-sheet@^1.1.21
Updatedmf-generator@^1.3.9
Updatedms-spectrum@^1.4.2