Giter Site home page Giter Site logo

togoid's Introduction

TogoID

Prerequsites

Installation

$ bundle exec rails g docker_compose --env=production
$ docker-compose up -d

$ docker-compose exec app bundle exec thor resource:fetch --dir /data/import hgnc
$ docker-compose exec app bundle exec thor resource:load --dir /data/import hgnc

### resource:fetch affymetrix is not yet implemented
$ docker-compose exec app bundle exec thor resource:load --dir /data/import affymetrix

Web API

Note: All your request URLs must be percent-encoded

ID conversion

Parameters

Key Value
id required Identifiers (comma or whitespace separated)
from Input data source
Detect automatically if no value specified
to Output data source

Available data sources

Data source Value Pattern
HGNC Gene Symbol hgnc
NCBI Gene ID ncbi ^\d+$
RefSeq ID refseq ^(NC|NG|NM|NR|NT|XM|XR|YP)_\d+$
Affymetrix ID affymetrix \d{4,}((_[asx])?_at)?
Ensembl ID ensg ^ENSG\d{11}$

Example

Convert single identifier
Request

GET /convert?id=ALDH1A1

Response
[
  {
    "source": {
      "id": "ALDH1A1",
      "type": "hgnc",
      "label": "HGNC"
    },
    "destination": [
      {
        "id": "216",
        "type": "ncbi",
        "label": "NCBI Gene"
      }
    ]
  }
]
Convert multiple identifier
Request

GET /convert?id=216%2C8854

Note: %2C is URL encoded string for comma

Response
[
  {
    "source": {
      "id": "216",
      "type": "ncbi",
      "label": "NCBI Gene"
    },
    "destination": [
      {
        "id": "ALDH1A1",
        "type": "hgnc",
        "label": "HGNC"
      }
    ]
  },
  {
    "source": {
      "id": "8854",
      "type": "ncbi",
      "label": "NCBI Gene"
    },
    "destination": [
      {
        "id": "ALDH1A2",
        "type": "hgnc",
        "label": "HGNC"
      }
    ]
  }
]

Development

togoid's People

Contributors

dsatoh avatar

Stargazers

Kozo Nishida avatar rafael buono avatar

Watchers

Toshiaki Katayama avatar Tazro Inutano Ohta avatar James Cloos avatar Hiromasa Ono avatar Takeru Nakazato avatar  avatar  avatar

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.