Commit 8b1e6d86 authored by Michael Baudis's avatar Michael Baudis
Browse files

beacon-info and associated build script update

parent 99362545
......@@ -7,7 +7,7 @@ var bodyParser = require('body-parser');
var mongo = require('mongodb');
var mongojs = require('mongojs')
var db = mongojs('devmaster.vital-it.ch:27017/arraymap', ['samples'])
var db = mongojs('localhost:27017/arraymap', ['samples'])
//var monk = require('monk');
//var db = monk('devmaster.vital-it.ch:27017/arraymap');
......
/**
* Created by sduvaud on 23/02/16.
*/
Created by sduvaud on 23/02/16.
modified by mbaudis on 2016-08-04
**/
var matches = [];
var groupByQuery = db.samples.aggregate(
......@@ -17,6 +18,7 @@ groupByQuery.forEach(function (match) {
matches.push('\n{"id": "' + match._id + '", "description": "' + description+ '", "reference": "' + genome + '", "size": { "variants": "-1", "samples": "' + samples.length + '"}}');
});
print ('{ "info": {\n "id": "arraymap-beacon",\n "name": "Beacon ArrayMap", \n "organization": "SIB Swiss Institute of Bioinformatics",\n "description": "First Prototype of a Beacon v0.2 implementation for ArrayMap.",\n "datasets": [');
print ('var object = {\n\tinfo: { "info": {\n\t\t"id": "arraymap-beacon",\n\t\t"name": "Beacon ArrayMap",\n\t\t"organization": "SIB Swiss Institute of Bioinformatics",\n\t\t"description": "First Prototype of a Beacon v0.4 implementation for arrayMap",\n\t\t"api": "v0.4",\n\t\t"homepage": "http://beacon.arraymap.org/",\n\t\t"email": "SIB-Technology@isb-sib.ch",\n\t\t"datasets": [');
print(matches);
print ('],\n "api": "v0.2",\n "homepage": "http://beacon-arraymap.vital-it.ch/",\n "email": "SIB-Technology@isb-sib.ch"\n }\n}');
\ No newline at end of file
print ('\t\t]\n\t}\n\t}\n};');
print ('module.exports.info = object;\n');
./runquery.sh get-datasets.js | grep -E '[\"\{\}\;]|\[|\]' > /Library/WebServer/Documents/ga4gh-arraymap/beacon-app/arraymap-beacon/v0.4/beacon-info.js
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment