Skip to content

KeyError: 'umap_cell_embeddings' #16

Description

@kenneditodd

I am trying to do singlecellVR starting from a seurat object. I have tried with my own data and the pbmc example dataset shown. I can convert to .loom just fine. I get a KeyError: 'umap_cell_embeddings' when i run scvr from my conda environment.

command:
scvr -f seurat3d_10xpbmc.loom -t seurat -a annotations.txt -g genes.txt -o seurat_report

Standard output is shown below. How do i fix this problem?

- Single cell VR preprocessing -
Version 1.1

Converting 'seurat' analysis result ...
reading in loom file ...
OMP: Info #271: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
Traceback (most recent call last):
  File "/Users/m214960/miniconda3/envs/scvr/bin/scvr", line 8, in <module>
    sys.exit(main())
  File "/Users/m214960/miniconda3/envs/scvr/lib/python3.9/site-packages/scvr/command_line.py", line 93, in main
    scvr.output_seurat_cells(adata,ann_list,gene_list=gene_list,reportdir=output)
  File "/Users/m214960/miniconda3/envs/scvr/lib/python3.9/site-packages/scvr/converters.py", line 194, in output_seurat_cells
    assert (adata.obsm['umap_cell_embeddings'].shape[1]>=3),\
  File "/Users/m214960/miniconda3/envs/scvr/lib/python3.9/site-packages/anndata/_core/aligned_mapping.py", line 148, in __getitem__
    return self._data[key]
KeyError: 'umap_cell_embeddings'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions