koenvandenberge/traviz

Error message using plotSmoothers: invalid 'times' argument

Opened this issue · 0 comments

Hi,

Thanks for the amazing package and vignette.

I converted a seurat object (seu) to a singlecellexperiment (sce) object, and then passed the sce through slingshot. When I ran plotSmoothers to produce a plot showing gene expression along pseudotime as demonstrated here, an error message appeared.

sce <- as.SingleCellExperiment(seu)
sce <- slingshot(sce, clusterLabels = seu$seurat_clusters, reducedDim = 'UMAP', start.clus = "10", stretch = 0)
counts <- sce@assays@data@listData$counts

plotSmoothers(models = sce, counts = counts, gene = "Pax6")

Error in rep(0, nrow(dm)) : invalid 'times' argument

What seems to be the problem to do with 'times' argument here?
Shall I include a pseudotime data frame somewhere?
Is it a problem resulted from seu-to-sce conversion?

Thank you in advance

─ Session info ────────────────────────────────────────────────────────────────────
setting value
version R version 4.1.0 (2021-05-18)
os macOS Big Sur 11.5.2
system x86_64, darwin17.0
ui RStudio
language (EN)
collate en_GB.UTF-8
ctype en_GB.UTF-8
tz Europe/London
date 2021-09-16

─ Packages ────────────────────────────────────────────────────────────────────────
package * version date lib source
abind 1.4-5 2016-07-21 [1] CRAN (R 4.1.0)
AnnotationDbi 1.55.1 2021-06-07 [1] Bioconductor
AnnotationFilter 1.17.1 2021-07-28 [1] Bioconductor
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.1.0)
backports 1.2.1 2020-12-09 [1] CRAN (R 4.1.0)
beeswarm 0.4.0 2021-06-01 [1] CRAN (R 4.1.0)
Biobase * 2.53.0 2021-05-19 [1] Bioconductor
BiocFileCache 2.1.1 2021-06-23 [1] Bioconductor
BiocGenerics * 0.39.2 2021-08-18 [1] Bioconductor
BiocIO 1.3.0 2021-05-19 [1] Bioconductor
BiocManager 1.30.16 2021-06-15 [1] CRAN (R 4.1.0)
BiocParallel 1.27.7 2021-09-09 [1] Bioconductor
biomaRt 2.49.4 2021-08-12 [1] Bioconductor
Biostrings 2.61.2 2021-08-04 [1] Bioconductor
bit 4.0.4 2020-08-04 [1] CRAN (R 4.1.0)
bit64 4.0.5 2020-08-30 [1] CRAN (R 4.1.0)
bitops 1.0-7 2021-04-24 [1] CRAN (R 4.1.0)
blob 1.2.2 2021-07-23 [1] CRAN (R 4.1.0)
broom * 0.7.9 2021-07-27 [1] CRAN (R 4.1.0)
BSgenome 1.61.0 2021-05-19 [1] Bioconductor
BUSpaRse * 1.7.1 2021-06-08 [1] Bioconductor
cachem 1.0.6 2021-08-19 [1] CRAN (R 4.1.0)
callr 3.7.0 2021-04-20 [1] CRAN (R 4.1.0)
cellranger 1.1.0 2016-07-27 [1] CRAN (R 4.1.0)
class 7.3-19 2021-05-03 [1] CRAN (R 4.1.0)
cli 3.0.1 2021-07-17 [1] CRAN (R 4.1.0)
cluster 2.1.2 2021-04-17 [1] CRAN (R 4.1.0)
codetools 0.2-18 2020-11-04 [1] CRAN (R 4.1.0)
colorspace 2.0-2 2021-06-24 [1] CRAN (R 4.1.0)
cowplot 1.1.1 2020-12-30 [1] CRAN (R 4.1.0)
crayon 1.4.1 2021-02-08 [1] CRAN (R 4.1.0)
curl 4.3.2 2021-06-23 [1] CRAN (R 4.1.0)
data.table 1.14.0 2021-02-21 [1] CRAN (R 4.1.0)
DBI 1.1.1 2021-01-15 [1] CRAN (R 4.1.0)
dbplyr 2.1.1 2021-04-06 [1] CRAN (R 4.1.0)
DelayedArray 0.19.3 2021-09-12 [1] Bioconductor
DelayedMatrixStats 1.15.4 2021-08-27 [1] Bioconductor
deldir 0.2-10 2021-02-16 [1] CRAN (R 4.1.0)
desc 1.3.0 2021-03-05 [1] CRAN (R 4.1.0)
devtools 2.4.2 2021-06-07 [1] CRAN (R 4.1.0)
dials * 0.0.10 2021-09-10 [1] CRAN (R 4.1.0)
DiceDesign 1.9 2021-02-13 [1] CRAN (R 4.1.0)
dichromat 2.0-0 2013-01-24 [1] CRAN (R 4.1.0)
digest 0.6.27 2020-10-24 [1] CRAN (R 4.1.0)
dplyr * 1.0.7 2021-06-18 [1] CRAN (R 4.1.0)
ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0)
ensembldb 2.17.4 2021-08-04 [1] Bioconductor
fansi 0.5.0 2021-05-25 [1] CRAN (R 4.1.0)
farver 2.1.0 2021-02-28 [1] CRAN (R 4.1.0)
fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0)
filelock 1.0.2 2018-10-05 [1] CRAN (R 4.1.0)
fitdistrplus 1.1-5 2021-05-28 [1] CRAN (R 4.1.0)
forcats * 0.5.1 2021-01-27 [1] CRAN (R 4.1.0)
foreach 1.5.1 2020-10-15 [1] CRAN (R 4.1.0)
fs 1.5.0 2020-07-31 [1] CRAN (R 4.1.0)
furrr 0.2.3 2021-06-25 [1] CRAN (R 4.1.0)
future 1.22.1 2021-08-25 [1] CRAN (R 4.1.0)
future.apply 1.8.1 2021-08-10 [1] CRAN (R 4.1.0)
generics 0.1.0 2020-10-31 [1] CRAN (R 4.1.0)
GenomeInfoDb * 1.29.8 2021-09-05 [1] Bioconductor
GenomeInfoDbData 1.2.6 2021-08-09 [1] Bioconductor
GenomicAlignments 1.29.0 2021-05-19 [1] Bioconductor
GenomicFeatures 1.45.2 2021-08-29 [1] Bioconductor
GenomicRanges * 1.45.0 2021-05-19 [1] Bioconductor
ggbeeswarm * 0.6.0 2017-08-07 [1] CRAN (R 4.1.0)
ggplot2 * 3.3.5 2021-06-25 [1] CRAN (R 4.1.0)
ggrepel 0.9.1 2021-01-15 [1] CRAN (R 4.1.0)
ggridges 0.5.3 2021-01-08 [1] CRAN (R 4.1.0)
globals 0.14.0 2020-11-22 [1] CRAN (R 4.1.0)
glue 1.4.2 2020-08-27 [1] CRAN (R 4.1.0)
goftest 1.2-2 2019-12-02 [1] CRAN (R 4.1.0)
gower 0.2.2 2020-06-23 [1] CRAN (R 4.1.0)
GPfit 1.0-8 2019-02-08 [1] CRAN (R 4.1.0)
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.1.0)
gtable 0.3.0 2019-03-25 [1] CRAN (R 4.1.0)
hardhat 0.1.6 2021-07-14 [1] CRAN (R 4.1.0)
haven 2.4.3 2021-08-04 [1] CRAN (R 4.1.0)
here 1.0.1 2020-12-13 [1] CRAN (R 4.1.0)
hms 1.1.0 2021-05-17 [1] CRAN (R 4.1.0)
htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.0)
htmlwidgets 1.5.4 2021-09-08 [1] CRAN (R 4.1.0)
httpuv 1.6.3 2021-09-09 [1] CRAN (R 4.1.0)
httr 1.4.2 2020-07-20 [1] CRAN (R 4.1.0)
ica 1.0-2 2018-05-24 [1] CRAN (R 4.1.0)
igraph 1.2.6 2020-10-06 [1] CRAN (R 4.1.0)
infer * 1.0.0 2021-08-13 [1] CRAN (R 4.1.0)
ipred 0.9-12 2021-09-15 [1] CRAN (R 4.1.0)
IRanges * 2.27.2 2021-08-18 [1] Bioconductor
irlba 2.3.3 2019-02-05 [1] CRAN (R 4.1.0)
iterators 1.0.13 2020-10-15 [1] CRAN (R 4.1.0)
jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.1.0)
KEGGREST 1.33.0 2021-05-19 [1] Bioconductor
KernSmooth 2.23-20 2021-05-03 [1] CRAN (R 4.1.0)
knitr 1.34 2021-09-09 [1] CRAN (R 4.1.0)
labeling 0.4.2 2020-10-20 [1] CRAN (R 4.1.0)
later 1.3.0 2021-08-18 [1] CRAN (R 4.1.0)
lattice 0.20-44 2021-05-02 [1] CRAN (R 4.1.0)
lava 1.6.10 2021-09-02 [1] CRAN (R 4.1.0)
lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.1.0)
leiden * 0.3.9 2021-07-27 [1] CRAN (R 4.1.0)
lhs 1.1.3 2021-09-08 [1] CRAN (R 4.1.0)
lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.1.0)
listenv 0.8.0 2019-12-05 [1] CRAN (R 4.1.0)
lmtest 0.9-38 2020-09-09 [1] CRAN (R 4.1.0)
lubridate 1.7.10 2021-02-26 [1] CRAN (R 4.1.0)
magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.1.0)
mapproj 1.2.7 2020-02-03 [1] CRAN (R 4.1.0)
maps 3.3.0 2018-04-03 [1] CRAN (R 4.1.0)
MASS 7.3-54 2021-05-03 [1] CRAN (R 4.1.0)
MAST * 1.19.0 2021-05-19 [1] Bioconductor
Matrix * 1.3-4 2021-06-01 [1] CRAN (R 4.1.0)
MatrixGenerics * 1.5.4 2021-08-27 [1] Bioconductor
matrixStats * 0.60.1 2021-08-23 [1] CRAN (R 4.1.0)
memoise 2.0.0 2021-01-26 [1] CRAN (R 4.1.0)
mgcv 1.8-36 2021-06-01 [1] CRAN (R 4.1.0)
mime 0.11 2021-06-23 [1] CRAN (R 4.1.0)
miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.1.0)
modeldata * 0.1.1 2021-07-14 [1] CRAN (R 4.1.0)
modelr 0.1.8 2020-05-19 [1] CRAN (R 4.1.0)
munsell 0.5.0 2018-06-12 [1] CRAN (R 4.1.0)
nlme 3.1-153 2021-09-07 [1] CRAN (R 4.1.0)
nnet 7.3-16 2021-05-03 [1] CRAN (R 4.1.0)
pals * 1.7 2021-04-17 [1] CRAN (R 4.1.0)
parallelly 1.28.1 2021-09-09 [1] CRAN (R 4.1.0)
parsnip * 0.1.7 2021-07-21 [1] CRAN (R 4.1.0)
patchwork * 1.1.1 2020-12-17 [1] CRAN (R 4.1.0)
pbapply 1.5-0 2021-09-16 [1] CRAN (R 4.1.0)
pillar 1.6.2 2021-07-29 [1] CRAN (R 4.1.0)
pkgbuild 1.2.0 2020-12-15 [1] CRAN (R 4.1.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0)
pkgdown 1.6.1 2020-09-12 [1] CRAN (R 4.1.0)
pkgload 1.2.2 2021-09-11 [1] CRAN (R 4.1.0)
plotly 4.9.4.1 2021-06-18 [1] CRAN (R 4.1.0)
plyr 1.8.6 2020-03-03 [1] CRAN (R 4.1.0)
plyranges 1.13.1 2021-06-28 [1] Bioconductor
png 0.1-7 2013-12-03 [1] CRAN (R 4.1.0)
Polychrome * 1.3.1 2021-07-16 [1] CRAN (R 4.1.0)
polyclip 1.10-0 2019-03-14 [1] CRAN (R 4.1.0)
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.1.0)
princurve * 2.1.6 2021-01-18 [1] CRAN (R 4.1.0)
pROC 1.18.0 2021-09-03 [1] CRAN (R 4.1.0)
processx 3.5.2 2021-04-30 [1] CRAN (R 4.1.0)
prodlim 2019.11.13 2019-11-17 [1] CRAN (R 4.1.0)
progress 1.2.2 2019-05-16 [1] CRAN (R 4.1.0)
promises 1.2.0.1 2021-02-11 [1] CRAN (R 4.1.0)
ProtGenerics 1.25.1 2021-07-02 [1] Bioconductor
ps 1.6.0 2021-02-28 [1] CRAN (R 4.1.0)
purrr * 0.3.4 2020-04-17 [1] CRAN (R 4.1.0)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.1.0)
ranger * 0.13.1 2021-07-14 [1] CRAN (R 4.1.0)
RANN 2.6.1 2019-01-08 [1] CRAN (R 4.1.0)
rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.1.0)
RColorBrewer 1.1-2 2014-12-07 [1] CRAN (R 4.1.0)
Rcpp 1.0.7 2021-07-07 [1] CRAN (R 4.1.0)
RcppAnnoy 0.0.19 2021-07-30 [1] CRAN (R 4.1.0)
RCurl 1.98-1.4 2021-08-17 [1] CRAN (R 4.1.0)
readr * 2.0.1 2021-08-10 [1] CRAN (R 4.1.0)
readxl 1.3.1 2019-03-13 [1] CRAN (R 4.1.0)
recipes * 0.1.16 2021-04-16 [1] CRAN (R 4.1.0)
remotes 2.4.0 2021-06-02 [1] CRAN (R 4.1.0)
reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0)
reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.1.0)
restfulr 0.0.13 2017-08-06 [1] CRAN (R 4.1.0)
reticulate 1.21 2021-09-14 [1] CRAN (R 4.1.0)
rgl 0.107.14 2021-08-21 [1] CRAN (R 4.1.0)
rjson 0.2.20 2018-06-08 [1] CRAN (R 4.1.0)
rlang 0.4.11 2021-04-30 [1] CRAN (R 4.1.0)
ROCR 1.0-11 2020-05-02 [1] CRAN (R 4.1.0)
rpart 4.1-15 2019-04-12 [1] CRAN (R 4.1.0)
rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.1.0)
rsample * 0.1.0 2021-05-08 [1] CRAN (R 4.1.0)
Rsamtools 2.9.1 2021-06-17 [1] Bioconductor
RSQLite 2.2.8 2021-08-21 [1] CRAN (R 4.1.0)
rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0)
rtracklayer 1.53.1 2021-08-13 [1] Bioconductor
Rtsne 0.15 2018-11-10 [1] CRAN (R 4.1.0)
rvest 1.0.1 2021-07-26 [1] CRAN (R 4.1.0)
S4Vectors * 0.31.3 2021-08-27 [1] Bioconductor
scales * 1.1.1 2020-05-11 [1] CRAN (R 4.1.0)
scattermore 0.7 2020-11-24 [1] CRAN (R 4.1.0)
scatterplot3d 0.3-41 2018-03-14 [1] CRAN (R 4.1.0)
sctransform 0.3.2 2020-12-16 [1] CRAN (R 4.1.0)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.1.0)
Seurat * 4.0.4 2021-08-20 [1] CRAN (R 4.1.0)
SeuratObject * 4.0.2 2021-06-09 [1] CRAN (R 4.1.0)
shiny 1.6.0 2021-01-25 [1] CRAN (R 4.1.0)
SingleCellExperiment * 1.15.2 2021-08-22 [1] Bioconductor
slingshot * 2.1.1 2021-08-31 [1] Bioconductor
SoupX * 1.5.2 2021-05-17 [1] CRAN (R 4.1.0)
sparseMatrixStats 1.5.3 2021-08-27 [1] Bioconductor
spatstat.core 2.3-0 2021-07-16 [1] CRAN (R 4.1.0)
spatstat.data 2.1-0 2021-03-21 [1] CRAN (R 4.1.0)
spatstat.geom 2.2-2 2021-07-12 [1] CRAN (R 4.1.0)
spatstat.sparse 2.0-0 2021-03-16 [1] CRAN (R 4.1.0)
spatstat.utils 2.2-0 2021-06-14 [1] CRAN (R 4.1.0)
stringi 1.7.4 2021-08-25 [1] CRAN (R 4.1.0)
stringr * 1.4.0 2019-02-10 [1] CRAN (R 4.1.0)
SummarizedExperiment * 1.23.4 2021-08-25 [1] Bioconductor
survival 3.2-13 2021-08-24 [1] CRAN (R 4.1.0)
tensor 1.5 2012-05-05 [1] CRAN (R 4.1.0)
testthat 3.0.4 2021-07-01 [1] CRAN (R 4.1.0)
tibble * 3.1.4 2021-08-25 [1] CRAN (R 4.1.0)
tidymodels * 0.1.3 2021-04-19 [1] CRAN (R 4.1.0)
tidyr * 1.1.3 2021-03-03 [1] CRAN (R 4.1.0)
tidyselect 1.1.1 2021-04-30 [1] CRAN (R 4.1.0)
tidyverse * 1.3.1 2021-04-15 [1] CRAN (R 4.1.0)
timeDate 3043.102 2018-02-21 [1] CRAN (R 4.1.0)
TrajectoryUtils * 1.1.2 2021-07-30 [1] Bioconductor
traviz * 0.99.07 2021-08-27 [1] Bioconductor
tune * 0.1.6 2021-07-21 [1] CRAN (R 4.1.0)
tzdb 0.1.2 2021-07-20 [1] CRAN (R 4.1.0)
usethis 2.0.1 2021-02-10 [1] CRAN (R 4.1.0)
utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0)
uwot 0.1.10 2020-12-15 [1] CRAN (R 4.1.0)
vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0)
vipor 0.4.5 2017-03-22 [1] CRAN (R 4.1.0)
viridis * 0.6.1 2021-05-11 [1] CRAN (R 4.1.0)
viridisLite * 0.4.0 2021-04-13 [1] CRAN (R 4.1.0)
withr 2.4.2 2021-04-18 [1] CRAN (R 4.1.0)
workflows * 0.2.3 2021-07-16 [1] CRAN (R 4.1.0)
workflowsets * 0.1.0 2021-07-22 [1] CRAN (R 4.1.0)
xfun 0.26 2021-09-14 [1] CRAN (R 4.1.0)
XML 3.99-0.7 2021-08-17 [1] CRAN (R 4.1.0)
xml2 1.3.2 2020-04-23 [1] CRAN (R 4.1.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.1.0)
XVector 0.33.0 2021-05-19 [1] Bioconductor
yaml 2.2.1 2020-02-01 [1] CRAN (R 4.1.0)
yardstick * 0.0.8 2021-03-28 [1] CRAN (R 4.1.0)
zeallot 0.1.0 2018-01-28 [1] CRAN (R 4.1.0)
zlibbioc 1.39.0 2021-05-19 [1] Bioconductor
zoo 1.8-9 2021-03-09 [1] CRAN (R 4.1.0)

[1] /Library/Frameworks/R.framework/Versions/4.1/Resources/library