3.2.0 • Published 22 days ago

emdb v3.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
22 days ago

emdb

NPM version npm download

Database manager for molecular formula with various query feature.

Installation

npm install --save emdb

Using the project

There are 2 parts:

  • adding databases in the database manager
  • checking the databases
  • searching the databases

Adding database in the database manager

const emdb = require('emdb');

emdb.loadTest(); // add a database named test containing all the molecular formula from C1 to C100

loadTest

A method that allows to create a database named 'test' and that contains all the molecular formula from C1 to C100

loadKnapSack

loadCommercials

loadContaminants

fromMonoisotopicMass(em, options)

fromArray

A method that creates a database (by default named generated) that contains all the posible combination based on an array of strings.

  emdb.fromArray( ['C1-10','N1-10']);

This method use the project 'mf-generator'

The following fields in the json are expected to be returned

  • id
  • url: optional external link
  • mf
  • em
  • mw
  • msem: calculated from em and charge
  • charge
  • ocl: either a string or an object with value / coordinates
  • comment: if in the molecular formula there is a '\$' this will end-up in this field
  • parts: array of mf if the mf is the result of a combination of mf
  • info: object of free information
  • filter: optional information about the kind of mass spectra that yields to this mass
    • ESI
    • MALDI
    • positive
    • negative

loadGoogleSheet

Static methods

EMDB.Util.MF

Example:

var mf = new EMDB.Util.MF('Et3N');

EMDB.Util.IsotopicDistribution

EMDB.Util.Peptide

EMDB.Util.Peptide.sequenceToMF

Generates a molecular formula from a peptidic sequence.

Example:

const Peptide = require('emdb').Util.Peptide;
let mf = Peptide.mfFromSequence('AAA');
// mf = HAlaAlaAlaOH

EMDB.Util.Nucleotide

EMDB.Util.Nucleotide.sequenceToMF

Generates a molecular formula from a nucleotide sequence. Will correctly deal with dna, rna and ds-dna.

By default if the sequence contains a 'U' it is rna otherwise it is ds-dna. You can force the type by using the option kind. A nucleotide sequence may also be either circular or non circular (default value).

Example:

const Nucleotide = require('emdb').Util.Nucleotide;
let mf = Nucleotide.mfFromSequence('AAA', {circular: false, kind: 'dna'});
// mf = HODampDampDampH

License

MIT

3.2.0

22 days ago

3.1.10

2 months ago

3.1.9

2 months ago

3.1.8

4 months ago

3.1.7

5 months ago

3.1.6

5 months ago

3.1.3

5 months ago

3.1.2

6 months ago

3.1.1

6 months ago

3.1.0

6 months ago

3.1.5

5 months ago

3.1.4

5 months ago

3.0.4

7 months ago

3.0.3

7 months ago

3.0.2

7 months ago

3.0.1

8 months ago

3.0.7

7 months ago

3.0.6

7 months ago

3.0.5

7 months ago

2.4.3

9 months ago

2.4.1

10 months ago

2.4.2

10 months ago

2.4.0

11 months ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.2.2

1 year ago

2.1.2

1 year ago

1.14.0

1 year ago

1.12.1

2 years ago

1.12.0

2 years ago

2.0.0

1 year ago

1.13.2

2 years ago

1.13.1

2 years ago

1.13.0

2 years ago

1.13.3

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

1.10.2

2 years ago

1.8.0

2 years ago

1.11.0

2 years ago

1.9.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.7.7

2 years ago

1.7.6

2 years ago

1.7.5

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.5.0

2 years ago

1.4.13

2 years ago

1.4.12

2 years ago

1.4.15

2 years ago

1.4.14

2 years ago

1.4.16

2 years ago

1.4.11

3 years ago

1.4.10

3 years ago

1.4.9

3 years ago

1.4.8

3 years ago

1.4.6

3 years ago

1.4.7

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.0

4 years ago

0.9.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.5.12

6 years ago

0.5.11

6 years ago

0.5.10

6 years ago

0.5.9

6 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago