Skip to content

Commit

Permalink
Generate the subsetted immune dataset as RDS as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lun committed Sep 29, 2022
1 parent 738edba commit 282b04d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 10x-immune/generate.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ se <- read10xCounts("immune_3.0.0-tenx.h5")

source("../_scripts/compact10x.R")

sub <- se[,1:3000]
keep <- 1:3000
sub <- se[,keep]
path <- "immune_3.0.0_sub-tenx.h5"
unlink(path)
compact10x(path, assay(sub), rownames(sub), rowData(sub)$Symbol)
Expand All @@ -33,4 +34,5 @@ rownames(altExp(sce)) <- rownames(rd)
assay(altExp(sce)) <- as.matrix(assay(altExp(sce)))

saveRDS(sce, "immune_3.0.0-tenx.rds")
saveRDS(sce[,keep], "immune_3.0.0_sub-tenx.rds")

0 comments on commit 282b04d

Please sign in to comment.