Skip to content

Bug with function PercentageFeatureSet() #8009

Closed
@wjzwjz5

Description

@wjzwjz5

Hello! When I use the function PercentageFeatureSet() to remove the mitochondrial gene , I get some negative values in the results.Therefore,I reviewed the source code for PercentageFeatureSet().

layers <- Layers(object = object, pattern = "counts")

When I allowed this line of code , The layers I get are shown below.

layers
[1] "scale.data" "data"       "counts"

This results in subsequent calculations incorrectly using the 'data' matrix instead of the 'counts' matrix , resulting in a negative value.
When I change this line of code to look like this, it works.

layers <- Layers(object = object, search = "counts")

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions