Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion single_cell_analysis_complete_class.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3130,7 +3130,7 @@
" \n",
" sc.pp.filter_cells(adata, min_genes=200) #get rid of cells with fewer than 200 genes\n",
" #sc.pp.filter_genes(adata, min_cells=3) #get rid of genes that are found in fewer than 3 cells\n",
" adata.var['mt'] = adata.var_names.str.startswith('mt-') # annotate the group of mitochondrial genes as 'mt'\n",
" adata.var['mt'] = adata.var_names.str.startswith('MT-') # annotate the group of mitochondrial genes as 'mt'\n",
" adata.var['ribo'] = adata.var_names.isin(ribo_genes[0].values)\n",
" sc.pp.calculate_qc_metrics(adata, qc_vars=['mt', 'ribo'], percent_top=None, log1p=False, inplace=True)\n",
" upper_lim = np.quantile(adata.obs.n_genes_by_counts.values, .98)\n",
Expand Down