Skip to content

Dimension error when filtering anndata object which refers to a muon modality data object #7

@SamueleSoraggi

Description

@SamueleSoraggi

I am trying out the tutorial pbmc-10k at the very first notebook. When filtering out some of the clusters following differential gene expression, there is an error for mismatching shapes in the annotated data object and in the muon data object. Note that the cluster numbers are not the same as the original tutorials because I am using the pbmc10k dataset version 2.0.0 instead of 1.0.0 - but otherwise I have not changed any of the code provided.

I post a screenshot below with the error. It seems to me that the annotated object rna goes through subsetting the cells when filtering, but this does not influence the shape of the original muon data object - so one should remember to filter it as well while doing filtering on rna.

Versions

muon 0.1.6
scanpy 1.11.4
anndata 0.12.2
python 3.12.11
Image

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