Skip to content

Instantly share code, notes, and snippets.

@vjcitn
Created March 8, 2025 23:22
Show Gist options
  • Save vjcitn/7580b425341eab756fd62b59d10faae7 to your computer and use it in GitHub Desktop.
Save vjcitn/7580b425341eab756fd62b59d10faae7 to your computer and use it in GitHub Desktop.
pull lung samples from atlas
library(cellNexus)
library(dplyr)
md = get_metadata()
dd = md |> filter(disease=="normal", tissue %in% c("lung", "lung_parenchyma", "lung_epithelium"))
lungsce1M = get_single_cell_experiment(dd)
HDF5Array::setAutoBlockSize(size = 1e+09)
lungsce1M |>
HDF5Array::saveHDF5SummarizedExperiment(
"lungSCEnorm",
replace = TRUE,
as.sparse = TRUE,
verbose = TRUE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment