chansigit / hitl-single-cell

Human-in-the-loop Single-cell Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Human-in-the-loop Single-cell Analysis

Manual cell selection


Manual selection of data is actually very important for single-cell analysis.

Here we show how cells can be selected with interactive widgets in Jupyter.

import jscatter
lst = interactive_scatter_list(adata, 
                         var_list=['Cd3d','ann220413' ], 
                         embedding_list=['X_umap-t4.0-L1.0','X_umap-t4.0-L1.0'])

jscatter.link(lst, rows=1)

image

# get selected cells
cell_number_1  = lst[0].selection()
cell_indices_1 = adata.obs_names[cell_number_1]
print("# of selected cells", len(cell_indices_1))

image

integration pipeline

TODO

About

Human-in-the-loop Single-cell Analysis


Languages

Language:Python 100.0%