找不到函数“CreateSinglerObject”

Neb*_*hom 6 r singler

我试图从 SingleR 包中获取函数 CreateSinglerObject 以根据本指南工作:http ://comphealth.ucsf.edu/SingleR/SingleR_create.html

不幸的是,我收到错误“找不到”。下面是我的输入和输出。版本是 R-3.6.1。

我很感激你能给我的任何帮助。谢谢!

输入/输出

> 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"
Run Code Online (Sandbox Code Playgroud)

mho*_*ovd 5

CreateSinglerObject是在不再SingleR-package。它可能已被删除或重命名。显然参考文献中甚至没有提到它。

就像评论中建议的那样,我会检查更新的小插图以获取说明。它似乎已被替换为classifySingleR(),但我对包不够熟悉,无法肯定地说。