Commit ccd41803 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

support to species names containing forward slash

parent f8982959
......@@ -2,6 +2,7 @@ import glob
import sys
import os
import base64
import urllib
from operator import itemgetter
......@@ -736,6 +737,8 @@ def get_cluster(db_name, ref, chrom):
print "no such manager"
ref = urllib.unquote(ref)
cluster = get_cluster_raw(man, ref, chrom)
#print cluster
#if cluster is None:
......@@ -844,12 +847,15 @@ def get_cluster(db_name, ref, chrom):
@app.route("/api/data/<db_name>/<ref>/<chrom>", methods=['GET'])
def get_data(db_name, ref, chrom):
print "get data"
man = getManager( db_name )
if man is None:
print "no such manager"
ref = urllib.unquote(ref)
data = check_get_data(man, ref, chrom, request)
if data is None:
......@@ -283,7 +283,7 @@ var mainController = function ( $scope, $http, mySharedService ) {
console.log('REQUESTING DATA');
.success( $scope.receiveData )
.error( $scope.receiveDataError );
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