You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or using SeuratDisk
add as a separate rule that does this for the last step?
or separate config that indicates step and assay(and data slot?) (breaking change)
# https://mojaveazure.github.io/seurat-disk/articles/convert-anndata.html
library("Seurat")
library("SeuratDisk")
# configsobject_path<- file.path("scrnaseq_processing_seurat/merged/NORMALIZED/object.rds")
results_path<- file.path("result/path")
dir.create(results_path, recursive=TRUE)
# load seurat objectdata<- readRDS(file= file.path(object_path))
# save as h5Seurat
SaveH5Seurat(data, filename= file.path(results_path,"object.h5Seurat"), overwrite=TRUE)
# convert to anndata for scanpy (https://mojaveazure.github.io/seurat-disk/reference/Convert.html)
Convert(file.path(results_path,"object.h5Seurat"), assay="SCT", dest="h5ad", overwrite=TRUE)
provide info in the docs e.g., resources but do not implement as the use cases are highly custom (which assays to put where etc.)
example code:
The text was updated successfully, but these errors were encountered: