Closed
Description
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!