Replies: 1 comment 2 replies
-
how many genes are in your |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am quite new to scvelo package and just trying to combine my processed adata object from a single sample to a loom file. Here is the code and the output.
Code:
adata = scv.read(folder + "UMAP regressed.h5ad", cache=True)
ldata = scv.read(folder + "loomDWSoloRNA.loom", cache=True)
adata = scv.utils.merge(adata, ldata)
Output for adata before merging with loom file:
AnnData object with n_obs × n_vars = 4404 × 21445
obs: 'identifier', 'name', 'cells', 'grouping', 'n_counts', 'n_genes', 'percent.mito', 'S_score', 'G2M_score', 'phase', 'louvain'
var: 'n_cells', 'means', 'dispersions', 'dispersions_norm', 'highly_variable', 'mean', 'std'
uns: 'grouping_colors', 'louvain', 'louvain_colors', 'name_colors', 'neighbors', 'pca', 'umap'
obsm: 'X_pca', 'X_umap'
varm: 'PCs'
layers: 'counts'
obsp: 'connectivities', 'distances'
Output after merging with loom file:
AnnData object with n_obs × n_vars = 4404 × 156
obs: 'identifier', 'name', 'cells', 'grouping', 'n_counts', 'n_genes', 'percent.mito', 'S_score', 'G2M_score', 'phase', 'louvain', 'nCount_RNA', 'nFeature_RNA', 'orig.ident'
var: 'n_cells', 'means', 'dispersions', 'dispersions_norm', 'highly_variable', 'mean', 'std'
uns: 'grouping_colors', 'louvain', 'louvain_colors', 'name_colors', 'neighbors', 'pca', 'umap'
obsm: 'X_pca', 'X_umap'
varm: 'PCs'
layers: 'counts'
obsp: 'connectivities', 'distances'
As you can see the number of cells remains the same but the number of genes reduced from 21445 to 156. I don't really understand the problem here and I am using scvelo tutorial for the setup of the pipeline for my datasets.
Thank you very much for the help and I wish you a good day.
Pawandeep
Beta Was this translation helpful? Give feedback.
All reactions