Giter VIP home page Giter VIP logo

annotator.js's Introduction

Build Status Coverage Status Documentation

Welcome to @biothings-explorer/annotator ๐Ÿ‘‹

A nodejs module to annotate biomedical entities in batch for BioThings Explorer

๐Ÿ  Homepage

Install

npm i @biothings-explorer/annotator

Usage

  • Import and Initialize

    const annotate = require("@biothings-explorer/annotator")
  • Annotate Gene IDs

    const gene_ids = {
      "NCBIGene:4888": {
          "db_ids": {
              "NCBIGene": [
                  "4888"
              ],
              "HGNC": [
                  "7959"
              ],
              "SYMBOL": [
                  "NPY6R"
              ],
              "UMLS": [
                  "C1417819"
              ]
          }
      },
      "NCBIGene:4597": {
          "db_ids": {
              "NCBIGene": [
                  "4597"
              ],
              "ENSEMBL": [
                  "ENSG00000167508"
              ],
              "HGNC": [
                  "7529"
              ],
              "SYMBOL": [
                  "MVD"
              ],
              "UMLS": [
                  "C1417507"
              ]
            }
        }
    }
    let res = await annotate("Gene", gene_ids);
    console.log(res);
    // {"NCBIGene:4888": {"genomic_position": ..., "generif": ..., "biological_process": ...},"NCBIGene:4597": {"genomic_position": ..., "reactome": ..., "wikipathways": ...}}
  • Annotate ChemicalSubstance IDs

    const chemical_ids = {
        "CHEBI:8863": {
            "id": {
                "label": "RILUZOLE",
                "identifier": "CHEBI:8863"
            },
            "db_ids": {
                "CHEBI": [
                    "CHEBI:8863"
                ],
                "CHEMBL.COMPOUND": [
                    "CHEMBL744"
                ]
            }
        },
        "CHEBI:133809": {
            "id": {
                "label": "ANISINDIONE",
                "identifier": "CHEBI:133809"
            },
            "db_ids": {
                "CHEBI": [
                    "CHEBI:133809"
                ],
                "CHEMBL.COMPOUND": [
                    "CHEMBL712"
                ]
            }
        }
    };
    let res = await annotate("ChemicalSubstance", chemical_ids);
    console.log(res);
    // {"CHEBI:133809": {"max_phase": ..., "molecular_weight": ..., "molecular_type": ...}, "CHEBI:8863": {"max_phase": ..., "enzymes": ..., "targets": ...}}

Run tests

npm run test

Author

๐Ÿ‘ค Jiwen Xin

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a โญ๏ธ if this project helped you!

๐Ÿ“ License

Copyright ยฉ 2020 Jiwen Xin.
This project is ISC licensed.

annotator.js's People

Contributors

kevinxin90 avatar

Watchers

James Cloos avatar  avatar  avatar

annotator.js's Issues

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.