Skip to content
Snippets Groups Projects
Commit 2199c143 authored by Valentyna Zinchenko's avatar Valentyna Zinchenko
Browse files

cleaned up

parent b75430bc
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,7 @@ def get_cell_expression(segm_data, all_genes):
genes_in_cell = all_genes[tuple([slice(0,None),] + list(bb))]
for gene in range(num_genes):
gene_expr = genes_in_cell[gene]
try:
gene_expr_sum = np.sum(gene_expr[cell_masked]>0)
except:
print(gene_expr.shape, cell_masked.shape)
gene_expr_sum = np.sum(gene_expr[cell_masked]>0)
cells_expression[cell_idx, gene] = gene_expr_sum / cell_size
return labels, cells_expression
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment