Skip to content
GitLab
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
35d46aea
Commit
35d46aea
authored
Mar 30, 2017
by
Aflitos, Saulo Alves
Browse files
fixed error on no clustering
parent
3ce4c9b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
routes.py
View file @
35d46aea
...
...
@@ -1296,9 +1296,10 @@ def get_data_raw(man, ref, chrom, startPos, endPos, group_every, num_classes, ev
#DELETING IMAGES
if
'clusters'
in
table
:
clusters
=
table
[
'clusters'
]
#print "CLUSTERS", clusters
filterClusters
(
clusters
,
"DEL"
)
appendClusters
(
man
,
clusters
,
chrom
)
if
clusters
is
not
None
:
print
"CLUSTERS"
,
clusters
filterClusters
(
clusters
,
"DEL"
)
appendClusters
(
man
,
clusters
,
chrom
)
print
"RETURNING TABLE"
#print "TABLE", table
...
...
static/js/controller.js
View file @
35d46aea
...
...
@@ -392,13 +392,15 @@ var mainController = function ( $scope, $http, mySharedService ) {
$scope
.
vars
.
order
.
rows
[
dfn
]
=
Array
.
apply
(
null
,
Array
(
data
.
data_info
.
num_rows
)).
map
(
function
(
_
,
i
){
return
i
;});
console
.
log
(
'
cluster keys
'
,
Object
.
keys
(
$scope
.
cluster
));
for
(
var
c
in
$scope
.
cluster
)
{
console
.
log
(
'
adding cluster
'
,
c
);
$scope
.
clusterNames
.
push
(
c
);
$scope
.
vars
.
order
.
rows
[
c
]
=
$scope
.
cluster
[
c
].
rows
.
rowsOrder
;
$scope
.
vars
.
order
.
cols
[
c
]
=
$scope
.
cluster
[
c
].
cols
.
colsOrder
;
if
(
$scope
.
cluster
!==
null
)
{
console
.
log
(
'
cluster keys
'
,
Object
.
keys
(
$scope
.
cluster
));
for
(
var
c
in
$scope
.
cluster
)
{
console
.
log
(
'
adding cluster
'
,
c
);
$scope
.
clusterNames
.
push
(
c
);
$scope
.
vars
.
order
.
rows
[
c
]
=
$scope
.
cluster
[
c
].
rows
.
rowsOrder
;
$scope
.
vars
.
order
.
cols
[
c
]
=
$scope
.
cluster
[
c
].
cols
.
colsOrder
;
}
}
console
.
log
(
$scope
.
vars
.
order
.
cols
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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