Toni Hermoso Pulido (@toniher)
Bioinformatics Core Facility
Centre for Genomic Regulation (BCN)
Aconitase
citrate to isocitrate vs RNA binding and more
Hexokinase
Fructose and glucose phosphorylating enzyme vs apoptosis
Plugged ETE phylogenetics package
Everything is WEB
EVERYTHING, for the good and for the bad…
Operation SQL HTTP
Create INSERT PUT / POST
Read (Retrieve) SELECT GET
Update (Modify) UPDATE PUT / PATCH
Delete (Destroy) DELETE DELETE
Adding document
curl -H 'Content-Type: application/json' \
-X POST http://127.0.0.1:5984/mydb \
-d '{"seq": "GATC"}'
{"ok":true,"id":"8843faaf0b831d364278331bc3001bd8",
"rev":"1-33b9fbce46930280dab37d672bbc8bb9"}
Reading document
curl -X GET http://127.0.0.1:5984/mydb/8843faaf0b831d364278331bc3001bd8
{"_id":"8843faaf0b831d364278331bc3001bd8",
"_rev":"1-33b9fbce46930280dab37d672bbc8bb9",
"seq":"GATC"}
with the same RESTful syntax.
// Create Browser DB
var db = new PouchDB('mydb');
// Create CouchDB DB
var db = new PouchDB('http://website:5984/mydb');
db.get('mydoc').then(function (doc) {
// handle doc
}).catch(function (err) {
console.log(err);
});
Create DB
Retrieve document - promise
Need to create Dockerfile. Kinda' Bash file
docker pull toniher/seqservice
or
git clone https://github.com/toniher/seqservice
docker build -t seqservice .
docker run -p 10030:10030 -d seqservice
http://localhost:10030/seqservice/