Open jayhesselberth opened 1 year ago
I'll downsample the current vignette data so we can include it in the package
this seems to work:
# sample 1,000 cells from the splen_so object
library(Seurat)
download.file(
"https://djvdj-data.s3.us-west-2.amazonaws.com/splenocytes.zip",
"splenocytes.zip",
quiet = TRUE
)
unzip("splenocytes.zip", overwrite = FALSE)
# Load Seurat object
load("splenocytes/splen_so.rda")
set.seed(42)
# https://github.com/satijalab/seurat/issues/3108#issuecomment-685975338
splen_so_tiny <- splen_so[, sample(colnames(splen_so), size = 1000, replace=FALSE)]
# xz provides better compression than bzip2 default
usethis::use_data(splen_so_tiny, compress = 'xz')
Would then need to take these cell barcodes and filter the 10x files
You should shoot for 5 MB or less of packaged data. splen_so_tiny
above is ~1.8 MB.
CRAN / Bioconductor won't allow downloading of external data; it won't pass their checks. We can't use
download.file
anywhere.Need to: