This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bionode-seq | |
// docs: https://rawgit.com/bionode/bionode-seq/master/docs/bionode-seq.html | |
var seq = require('bionode-seq') | |
document.write([ | |
' 1 ' + seq.checkType("ATGACCCTGAGAA") | |
, ' 2 ' + seq.checkType("ATGACCCTGAGAAGAGCACCG") | |
, ' 3 ' + seq.checkType("AUGACCCUGAAGGUGAAUGAA") | |
, ' 4 ' + seq.checkType("MAYKSGKRPTFFEVFKAHCSDS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ncbi = require('bionode-ncbi') | |
ncbi.search('assembly', 'Solenopsis invicta').on('data', function(data) { | |
document.write(JSON.stringify(data, null, 2)) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ncbi = require('bionode-ncbi') | |
ncbi.search('assembly', 'Solenopsis invicta').on('data', function(data) { | |
document.write(JSON.stringify(data, null, 2)) | |
}) |
- Go to https://github.com/bmpvieira/heroku-dat-template and click Deploy;
- Choose a name (like test-dat);
- Wait for deploy to finish and click "View it" (http://test-dat.herokuapp.com);
- Click import -> paste JSON -> Copy/Paste example;
- Do
dat clone http://test-dat.herokuapp.com
and cd into folder; - Do
dat serve
and go tolocalhost:6461
; - PROBLEM 1: No data;
- Kill, do
echo '{"hello":"world"}'|dat import --json
and serve again; - Now there's some data, kill and do
dat push http://test-dat.herokuapp.com
- PROBLEM 2: Nothing changed on Heroku
I hereby claim:
- I am bmpvieira on github.
- I am bmpvieira (https://keybase.io/bmpvieira) on keybase.
- I have a public key whose fingerprint is E8A8 539B 1294 B725 51D4 FCAB ECE9 9D4A B8EB 006E
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coverage" : "0", | |
"wgs" : "AEIE01", | |
"seqreleasedate" : "2012/12/05 00:00", | |
"speciesname" : "Guillardia theta", | |
"meta" : { | |
"assembly-status" : "Scaffold", | |
"FtpSites" : { | |
"FtpPath" : [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coverage" : "0", | |
"wgs" : "AEIE01", | |
"seqreleasedate" : "2012/12/05 00:00", | |
"speciesname" : "Guillardia theta", | |
"meta" : { | |
"assembly-status" : "Scaffold", | |
"FtpSites" : { | |
"FtpPath" : { | |
"type" : "GenBank", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request') | |
var async = require('async') | |
var xml2js = require('xml2js') | |
var xml2js_parseString = xml2js.parseString | |
var API = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/' | |
var DEFAULTS = 'retmode=json&usehistory=y&version=2.0' | |
var requestInterval = 500 //ms between biosamples requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<title>DNAdigest</title> | |
<!-- Bootstrap --> |