Error from scater package
1
0
Entering edit mode
huiyunwu • 0
@huiyunwu-14193
Last seen 6.5 years ago

Hi there,

While playing with the example provided online, I got a question and need your help. Below is the workflow:

Source:

https://www.bioconductor.org/help/workflows/simpleSingleCell/

Code:

all.counts <- as.data.frame(read_excel("D:\\HDexamples\\GSE61533_HTSEQ_count_results.xls", sheet=1))
rownames(all.counts) <- all.counts$ID
all.counts <- as.matrix(all.counts[,-1])

library(SingleCellExperiment) # installed from local file download
sce <- SingleCellExperiment(assays=list(counts=all.counts))
is.spike <- grepl("^ERCC", rownames(sce))
isSpike(sce, "ERCC") <- is.spike
is.mito <- grepl("^mt-", rownames(sce))

library(scater)
sce <- calculateQCMetrics(sce, feature_controls=list(ERCC=is.spike, Mt=is.mito))

Error in calculateQCMetrics(sce, feature_controls = list(ERCC = is.spike,  :

  object must be an SCESet object.

 

Package "scater" was installed a few days ago.

 

Thanks,

William Wu

software error • 1.1k views
ADD COMMENT
0
Entering edit mode

Please include the output of sessionInfo() in your question (http://www.bioconductor.org/help/support/posting-guide/)

ADD REPLY
0
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 3 hours ago
The city by the bay

The workflows have been updated to Bioconductor 3.6 in preparation for the upcoming release. If you want to use the code on the workflow page, you need to upgrade to BioC-devel for the time being.

library(BiocInstaller)
useDevel()
biocLite()
ADD COMMENT

Login before adding your answer.

Traffic: 909 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6