Open fitz-meyer opened 1 year ago
Hi @fitz-meyer, thanks for pointing this out. I was able to reproduce the error. We will work on fixing this in the next release. In the meantime, I believe you can run the following code to use your genes as a custom gene set:
sce <- runCellQC(sce, algorithms = "QCMetrics", mitoGeneLocation = NULL, mitoPrefix="$$", geneSetList = list(mito = mito_genes), geneSetListLocation = "rownames")
Note that by default it will still try to match with genes that start with "MT-". That is why I set mitoPrefix to something random like "$$" so it won't match anything.
Just let us know if you run into other issues.
Hi @joshua-d-campbell, Thanks for the reply, the suggested work around did the trick! Cheers, Fitz
I am trying to provide custom mitochondrial geneIDs for QCMetrics in runCellQC like so:
But it produces this error:
The documentation for mitoID states that it can accept a character vector of mito genes to be quantified. I have also tried reading the geneIDs in from a .txt file but this didn't change anything. Running mitoID = "nbis-gene-5" works as expected, but I need a way to identify all of those geneIDs as mitochondrial genes. I would prefer not to edit the .gtf file at this stage.
I am running SCTK version 2.8.0 on R version 4.3.1.
Cheers, Fitz