Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find function "CreateSinglerObject"

Tags:

r

singler

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"
like image 282
Nebelhom Avatar asked Dec 05 '19 20:12

Nebelhom


1 Answers

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.

like image 113
mhovd Avatar answered Oct 05 '22 23:10

mhovd