Skip to content

Error normalizing Anndata #103

@Mari123i

Description

@Mari123i

Dear MarioniLab-Team,

I want to normalize some anndata single-cell object. I filter genes with less than 10 cells before using scanpy and the call the
"normalize" function of the folloeing code:

https://github.com/theislab/scib/blob/main/scib/preprocessing.py

For some of the matricies it works completely fine but for others I get the following error:

RRuntimeError: Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'object' in selecting a method for function 'sizeFactors': error in evaluating the argument 'x' in selecting a method for function 'assay': cannot coerce class "integer" to a DataFrame

The matricies are sparse and of dtype float32.

Maybe you could help me with this issue.

Greeting

Mariam

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