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

fixed error on no clustering

parent 3ce4c9b8
......@@ -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
......
......@@ -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);
......
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