Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aflitos, Saulo Alves
ibrowser
Commits
ccd41803
Commit
ccd41803
authored
Oct 10, 2015
by
Aflitos, Saulo Alves
Browse files
support to species names containing forward slash
parent
f8982959
Changes
2
Hide whitespace changes
Inline
Side-by-side
routes.py
View file @
ccd41803
...
...
@@ -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"
abort
(
404
)
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"
abort
(
404
)
ref
=
urllib
.
unquote
(
ref
)
data
=
check_get_data
(
man
,
ref
,
chrom
,
request
)
if
data
is
None
:
...
...
static/js/controller.js
View file @
ccd41803
...
...
@@ -283,7 +283,7 @@ var mainController = function ( $scope, $http, mySharedService ) {
console
.
log
(
'
REQUESTING DATA
'
);
$http
.
get
(
'
api/data/
'
+
$scope
.
databaseQry
+
'
/
'
+
$scope
.
specieQry
+
'
/
'
+
$scope
.
chromosomeQry
)
$http
.
get
(
'
api/data/
'
+
$scope
.
databaseQry
+
'
/
'
+
encodeURIComponent
(
encodeURIComponent
(
$scope
.
specieQry
))
+
'
/
'
+
$scope
.
chromosomeQry
)
.
success
(
$scope
.
receiveData
)
.
error
(
$scope
.
receiveDataError
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment