motif-broker-2
Front-end service to dispatch and aggregate motif requests on the list of couchDB databases, using [couchdb-dispatcher](https://www.npmjs.com/package/couchdb-dispatcher).
Last updated 10 months ago by alkihis .
ISC · Original npm · Tarball · package.json
$ cnpm install motif-broker-2 
SYNC missed versions from official npm registry.

motif-broker-2

Front-end service to dispatch and aggregate motif requests on the list of couchDB databases, using couchdb-dispatcher.

Running the service

Options

  • -f, --filename <endpointsJsonFile>
  • -d, --database <couchDBdatabaseURL>
  • -p, --port <couchDBdatabasePort>
  • -l, --listen <listenPortOfMotifBroker>
# For example
node build/index.json -f endpoints.json -d http://localhost -p 5984 -l 3282

Querying the service

curl --header "Content-Type: application/json" --request POST --data '{"keys": [ "AAAAAAAAAATTTCAATTATAGG", "AAAAAAAATTATGTTCTTGACGG","AAAAAAACGGACATCCTTTATGG", "AAAACTTCATGCAAGTTTTGCGG","AAAACGGGTTGAATAGTCTCTGG","AAAACGACAATTGCCGTTTTCGG", "AAAAAAAAAAAAAAAATCAATGG", "ATTAAAAAAAAAAGCAGGATGGG"] }' MOTIF-BROKER-2_ENDPOINT/bulk_request

will return data only for query keys found in databases

{
    "request": {
        "AAAAAAAAAAAAAAAATCAATGG": {
            "Buchnera aphidicola BCc GCF_000090965.1": {
                "NC_008513.1": [
                    "-(203304,203326)"
                ]
            }
        },
        "ATTAAAAAAAAAAGCAGGATGGG": {
            "Wigglesworthia glossinidia endosymbiont of Glossina morsitans morsitans (Yale colony) GCF_000247565.1": {
                "NC_016893.1": [
                    "-(252902,252924)"
                ]
            }
        }
    }
}

Current Tags

  • 1.0.1                                ...           latest (10 months ago)

2 Versions

  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |