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

library(clustifyr)
library(tidyverse)

mat <- read_tsv("https://cells.ucsc.edu/cortex-dev/exprMatrix.tsv.gz") %>% tibble::column_to_rownames("gene")
meta <- read_tsv("https://cells.ucsc.edu/cortex-dev/meta.tsv")

ref_cortex_dev <- average_clusters(
  mat,
  meta,
  cluster_col = "WGCNAcluster",
  if_log = FALSE
)

saveRDS(ref_cortex_dev, "ref_cortex_dev")
rnabioco/clustifyrdatahub documentation built on Nov. 11, 2023, 4:21 a.m.