Skip to content

Commit 2a6b17d

Browse files
WT: Saving RDS files with saveRDS instead of just save
1 parent f7911ec commit 2a6b17d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/wrapper.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ run_SPEEDI <- function(reference_tissue, data_type = "RNA", species = "human", d
123123
# Write Seurat object to output directory
124124
if(data_type != "ATAC") {
125125
print_SPEEDI("Saving Seurat object (RNA)", log_flag = SPEEDI_variables$log_flag)
126-
save(sc_obj, file = paste0(SPEEDI_variables$RNA_output_dir, SPEEDI_variables$analysis_name, ".RNA.rds"))
126+
saveRDS(sc_obj, file = paste0(SPEEDI_variables$RNA_output_dir, SPEEDI_variables$analysis_name, ".RNA.rds"))
127127
}
128128
# Save ArchR project
129129
if(data_type != "RNA") {
@@ -134,7 +134,7 @@ run_SPEEDI <- function(reference_tissue, data_type = "RNA", species = "human", d
134134
sc_obj <- FindMultiomeOverlap(sc_obj = sc_obj, proj = atac_proj, data_modality = "RNA", output_dir = SPEEDI_variables$RNA_output_dir,
135135
exit_with_code = SPEEDI_variables$exit_with_code, log_flag = SPEEDI_variables$log_flag)
136136
print_SPEEDI("Saving Seurat object (True Multiome)", log_flag = SPEEDI_variables$log_flag)
137-
save(sc_obj, file = paste0(SPEEDI_variables$RNA_output_dir, SPEEDI_variables$analysis_name, ".RNA.multiome.rds"))
137+
saveRDS(sc_obj, file = paste0(SPEEDI_variables$RNA_output_dir, SPEEDI_variables$analysis_name, ".RNA.multiome.rds"))
138138
atac_proj <- FindMultiomeOverlap(sc_obj = sc_obj, proj = atac_proj, data_modality = "ATAC", output_dir = SPEEDI_variables$ATAC_output_dir,
139139
exit_with_code = SPEEDI_variables$exit_with_code, log_flag = SPEEDI_variables$log_flag)
140140
ATAC_multiome_output_dir <- paste0(SPEEDI_variables$ATAC_output_dir, "ArchRMultiomeOutput", "/")

0 commit comments

Comments
 (0)