inst/scripts/make-ref-data/ref_pan_indrop.R

library(SingleCellExperiment)
library(clustifyr)
download.file("https://scrnaseq-public-datasets.s3.amazonaws.com/scater-objects/baron-human.rds", 
              destfile = "pan.rds")
pan_indrop <- readRDS("pan.rds")
ref_pan_indrop <- average_clusters(
  clustifyr:::object_data(pan_indrop, "data"),
  clustifyr:::object_data(pan_indrop, "meta.data"),
  "cell_type1"
)

usethis::use_data(ref_pan_indrop, compress = "xz", overwrite = TRUE)
rnabioco/clustifyrdatahub documentation built on Nov. 11, 2023, 4:21 a.m.