Code Monkey home page Code Monkey logo

seqservice's Introduction

seqservice

NodeJS express API for handling biological sequences analyses

DOI

INSTALLATION

Server configuration

  • Dependencies

    • NCBI-BLAST
    • Samtools (optional)
    • HMMER (optional)
  • Assuming we define /seqservice as basepath, and we keep 10030 port in config.json

Apache

# Reverse proxy seqservice
RewriteEngine On
RewriteRule ^/seqservice/(.*)$ http://localhost:10030/seqservice/$1 [P]

ProxyPass        /seqservice/socket.io http://localhost:10030/seqservice/socket.io
ProxyPassReverse /seqservice/socket.io http://localhost:10030/seqservice/socket.io

NGINX

Check example nginx.conf file

Info about WebSocket and NGINX: https://www.nginx.com/blog/websocket-nginx/

Application start

From the directory of the application

npm install
npm run build
NODE_ENV=production node index.js config.json

FUN!

Docker installation

From this repository:

docker build -t seqservice .
docker run -p 10030:10030 -v /path/to/db:/data/db/seqservice -v /path/to/config.json:/data/soft/config.json -d seqservice

Open your browser at http://localhost:10030/seqservice/

In any case, adapt database and config.json path and contents to fit your needs

TODO

  • Webpack: Consider putting manifest for hashed version
  • Webpack and npm run: enable proper PRODUCTION and DEVELOPMENT behaviour
  • Allow single-hit accompanying analyses (e.g. ProtLoc or GO)
  • Generate alignment from results at user's choice
  • Start PSIBLAST from user choice of sequences
  • Include more HMMER options
  • Download results in different formats (CSV, etc.)
  • Allow syncing/saving with a DB (e. g. CouchDB)
  • Plug a task queue. By using https://github.com/paulmillr/chokidar and maybe Nextflow
  • Download input databases if needed (through CLI or web interface)
  • Plug an embeddable Genome Browser (e. g. igv.js)
  • More coherent system of keeping params in configuration for more different analyses
  • Avoid calling name API if no names

seqservice's People

Contributors

toniher avatar

Watchers

 avatar James Cloos 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.