Coder Social home page Coder Social logo

biomedical-id-resolver-sri.js's Introduction

biomedical-id-resolver-sri.js

js library for converting biological ids in batch using the SRI node normalizer.

Install

$ npm i biomedical-id-resolver-sri

Usage

const resolve = require('biomedical-id-resolver-sri');

// input can be an object, with semantic type as the key, and array of CURIEs as value
let input = {
    "Gene": ["NCBIGene:1017", "NCBIGene:1018", "HGNC:1177"],
    "SmallMolecule": ["CHEBI:15377"],
    "Disease": ["MONDO:0004976"],
    "Cell": ["CL:0002372"]
};

//input can also be an array of curies
input = ["NCBIGene:1017", "MONDO:0004976"];

(async () => {
  let res = await resolve(input);
  console.log(res);
})();

Example Output

{
    "NCBIGene:1017": [
        {
            "id": {
                "identifier": "NCBIGene:1017",
                "label": "CDK2"
            },
            "equivalent_identifiers": [
                {
                    "identifier": "NCBIGene:1017",
                    "label": "CDK2"
                },
                {
                    "identifier": "ENSEMBL:ENSG00000123374"
                },
                {
                    "identifier": "HGNC:1771",
                    "label": "CDK2"
                },
                {
                    "identifier": "OMIM:116953"
                },
                {
                    "identifier": "UMLS:C1332733",
                    "label": "CDK2 gene"
                }
            ],
            "type": [
                "biolink:Gene",
                "biolink:GeneOrGeneProduct",
                "biolink:BiologicalEntity",
                "biolink:NamedThing",
                "biolink:Entity",
                "biolink:MacromolecularMachineMixin"
            ],
            "primaryID": "NCBIGene:1017",
            "label": "CDK2",
            "attributes": {},
            "semanticType": "Gene",
            "semanticTypes": [
                "biolink:Gene",
                "biolink:GeneOrGeneProduct",
                "biolink:BiologicalEntity",
                "biolink:NamedThing",
                "biolink:Entity",
                "biolink:MacromolecularMachineMixin"
            ],
            "dbIDs": {
                "NCBIGene": [
                    "1017"
                ],
                "ENSEMBL": [
                    "ENSG00000123374"
                ],
                "HGNC": [
                    "1771"
                ],
                "OMIM": [
                    "116953"
                ],
                "UMLS": [
                    "C1332733"
                ],
                "name": [
                    "CDK2",
                    "CDK2 gene"
                ]
            },
            "curies": [
                "NCBIGene:1017",
                "ENSEMBL:ENSG00000123374",
                "HGNC:1771",
                "OMIM:116953",
                "UMLS:C1332733"
            ]
        }
    ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.