6

I am trying to get the function CreateSinglerObject from the SingleR package to work according to this guide here: http://comphealth.ucsf.edu/SingleR/SingleR_create.html

Unfortunately I receive the error 'Could not find'. Below is my input and output. Version is R-3.6.1.

I appreciate any help you can give me. Thank you!

I/O

> library(Seurat)
Warning message:
In readRDS(path) : error reading from connection
> library(SingleR)
Loading required package: SummarizedExperiment
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:parallel’:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, clusterExport, clusterMap, parApply, parCapply,
    parLapply, parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from ‘package:stats’:

    IQR, mad, sd, var, xtabs

The following objects are masked from ‘package:base’:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames, dirname, do.call, duplicated, eval,
    evalq, Filter, Find, get, grep, grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget, order,
    paste, pmax, pmax.int, pmin, pmin.int, Position, rank, rbind, Reduce, rownames, sapply, setdiff, sort,
    table, tapply, union, unique, unsplit, which, which.max, which.min

Loading required package: S4Vectors

Attaching package: ‘S4Vectors’

The following object is masked from ‘package:base’:

    expand.grid

Loading required package: IRanges

Attaching package: ‘IRanges’

The following object is masked from ‘package:grDevices’:

    windows

Loading required package: GenomeInfoDb
Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with 'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: DelayedArray
Loading required package: matrixStats

Attaching package: ‘matrixStats’

The following objects are masked from ‘package:Biobase’:

    anyMissing, rowMedians

Loading required package: BiocParallel

Attaching package: ‘DelayedArray’

The following objects are masked from ‘package:matrixStats’:

    colMaxs, colMins, colRanges, rowMaxs, rowMins, rowRanges

The following objects are masked from ‘package:base’:

    aperm, apply, rowsum


Attaching package: ‘SummarizedExperiment’

The following object is masked from ‘package:Seurat’:

    Assays

> singler = CreateSinglerObject(ln, annot = NULL, min.genes = 0, technology = "10X", species = "Mouse", normalize.gene.length = F, variable.genes = "de", fine.tune = F, do.signatures = F, clusters = NULL, do.main.types = T, reduce.file.size = T, numCores = SingleR.numCores)
Error in CreateSinglerObject(ln, annot = NULL, min.genes = 0, technology = "10X",  : 
  could not find function "CreateSinglerObject"
1
  • 2
    That guide seems to be based on legacy code. The vignette for the current version on bioconductor may have the updated code
    – user20650
    Dec 8, 2019 at 12:45

1 Answer 1

5
+50

The CreateSinglerObject is no longer in the SingleR-package. It might have been removed, or renamed. Apparently it's not even mentioned in the reference.

Like suggested in the comments, I would check the updated vignette for instructions. It might seem to have been replaced with classifySingleR(), but I am not familiar enough with the package to say that for certain.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.