Hello, I am trying to follow a tutorial from Sanger institute (from May 2019) on analysis of single cell RNA Seq data. They use calculateQCMetric function to calculate the quality metrics, but when I tried the same command, I am getting an error message that calculateQCMetric is a deprecated:
sce <- calculateQCMetrics(sce, feature_controls=list(Mito=which(location=="MT")))
Error:
Error: 'calculateQCMetrics' is defunct.
Use 'perCellQCMetrics' instead.
See help("Defunct")
I tried the perCellQCMetrics instead of calculateQCMetrics, I also ended up with an error.
sce <- perCellQCMetrics(sce, feature_controls=list(Mito=which(location=="MT")))
Error in .per_cell_qc_metrics(assay(x, assay.type), subsets = subsets, :
unused argument (feature_controls = list(33653:33665))
Any help on how to resolve this error, please.
Erick
sessionInfo( )
Replace
feature_controls
withsubsets
. As said below, type?calculateQCMetrics
to see the help with avaialble arguments and example code at the bottom.