scBasset icon indicating copy to clipboard operation
scBasset copied to clipboard

How is the ad_rna_annotate.h5ad file generated?

Open gaoxiangcao opened this issue 1 year ago • 1 comments

Hi ,

I’m working with scBasset and wanted to ask how the ad_rna_annotate.h5ad file is generated. Could you briefly explain the main steps, including any preprocessing or annotations, and the tools/scripts involved?

gaoxiangcao avatar Oct 14 '24 10:10 gaoxiangcao

Hi,

The goal of ad_rna_annotate.h5ad is just to show embedding, cell type annotation, and gene expression. My processing is basically:

  1. run scvi to get cell embeddings;
  2. sc.tl.leiden(resolution=0.5) to get clusters;
  3. sc.tl.rank_genes_groups to get top marker genes per cluster;
  4. annotation cell type basic on marker genes;

You can also follow scanpy tutorial to process the scRNA data: https://scanpy.readthedocs.io/en/stable/tutorials/basics/clustering-2017.html

hy395 avatar Oct 14 '24 17:10 hy395