Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/local/templates/anndatar_convert.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ library(SingleCellExperiment)
adata <- read_h5ad("${h5ad}")

# convert to Seurat
obj <- adata\$to_Seurat()
obj <- adata\$as_Seurat()

# save files
dir.create(file.path("$meta.id"), showWarnings = FALSE)
saveRDS(obj, file = "${meta.id}_${meta.input_type}_matrix.seurat.rds")

# convert to SingleCellExperiment
obj <- adata\$to_SingleCellExperiment()
obj <- adata\$as_SingleCellExperiment()

# save files
dir.create(file.path("$meta.id"), showWarnings = FALSE)
Expand Down
Loading