Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "emdb", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Database manager for exact mass query", | ||
@@ -23,20 +23,20 @@ "main": "src/index.js", | ||
"chemical-groups": "^1.2.1", | ||
"cross-fetch": "^3.1.4", | ||
"isotopic-distribution": "^1.4.2", | ||
"cross-fetch": "^3.1.5", | ||
"isotopic-distribution": "^1.4.3", | ||
"jszip": "^3.7.1", | ||
"mf-finder": "^1.2.1", | ||
"mf-from-google-sheet": "^1.1.25", | ||
"mf-generator": "^1.3.13", | ||
"mf-matcher": "^1.1.19", | ||
"mf-parser": "^1.4.0", | ||
"mf-utilities": "^1.2.13", | ||
"ml-array-max": "^1.2.3", | ||
"ml-array-min": "^1.2.2", | ||
"mf-finder": "^1.2.2", | ||
"mf-from-google-sheet": "^1.1.26", | ||
"mf-generator": "^1.3.14", | ||
"mf-matcher": "^1.1.20", | ||
"mf-parser": "^1.4.1", | ||
"mf-utilities": "^1.2.14", | ||
"ml-array-max": "^1.2.4", | ||
"ml-array-min": "^1.2.3", | ||
"ml-regression-theil-sen": "^2.0.0", | ||
"ms-spectrum": "^1.4.7", | ||
"nucleotide": "^1.2.14", | ||
"ms-spectrum": "^1.5.0", | ||
"nucleotide": "^1.2.15", | ||
"peaks-similarity": "^2.3.1", | ||
"peptide": "^1.11.3" | ||
}, | ||
"gitHead": "0b932f49c82fd9fb2ef0804c1430b1499426ef95" | ||
"gitHead": "3b0b2e28aa8079acba9cbd23ffb2886767badca7" | ||
} |
@@ -25,3 +25,3 @@ 'use strict'; | ||
}, | ||
precision: 1000, | ||
precision: 20, | ||
allowNeutral: false, | ||
@@ -33,10 +33,9 @@ }); | ||
const results = await dbManager.appendFragmentsInfo('monoisotopic', { | ||
precision: 10, | ||
ionizations: 'H+', | ||
precision: 5, | ||
ionizations: '+', | ||
}); | ||
expect(results).toHaveLength(42); | ||
// console.log(results); | ||
expect(results).toHaveLength(2); | ||
expect(results[0].fragments.nbFound).toBe(5); | ||
expect(results[0].fragments.intensityFound).toBeCloseTo( | ||
0.14515571864420396, | ||
); | ||
expect(results[0].fragments.intensityFound).toBeCloseTo(0.9708522002544118); | ||
expect(results[0].fragments.assignments).toHaveLength(5); | ||
@@ -43,0 +42,0 @@ }); |
@@ -27,3 +27,3 @@ 'use strict'; | ||
const peaks = experimentalSpectrum.getPeaks(); | ||
const peaks = experimentalSpectrum.getPeaks({ sumValue: 1 }); | ||
for (let entry of database) { | ||
@@ -39,3 +39,2 @@ const ranges = Object.keys(entry.atoms) | ||
}; | ||
for (let i = 0; i < peaks.length; i++) { | ||
@@ -42,0 +41,0 @@ if (onStep) await onStep(i); |
1252098
2156
Updatedcross-fetch@^3.1.5
Updatedisotopic-distribution@^1.4.3
Updatedmf-finder@^1.2.2
Updatedmf-from-google-sheet@^1.1.26
Updatedmf-generator@^1.3.14
Updatedmf-matcher@^1.1.20
Updatedmf-parser@^1.4.1
Updatedmf-utilities@^1.2.14
Updatedml-array-max@^1.2.4
Updatedml-array-min@^1.2.3
Updatedms-spectrum@^1.5.0
Updatednucleotide@^1.2.15