@@ -216,21 +216,21 @@ workflow_QC <- function(data_path,
216216
217217 group <- prepared_data $ group
218218
219- utils :: write.csv(x = prepared_data $ ID , file = paste0( file.path(output_path , " ID" , suffix ) , " .csv" ), row.names = FALSE )
220- utils :: write.csv(x = prepared_data $ D , file = paste0( file.path(output_path , " D_norm_wide" , suffix ) , " .csv" ), row.names = FALSE )
221- utils :: write.csv(x = prepared_data $ D_long , file = paste0( file.path(output_path , " D_norm_long" , suffix ) , " .csv" ), row.names = FALSE )
219+ utils :: write.csv(x = prepared_data $ ID , file = file.path(output_path , paste0( " ID" , suffix , " .csv" ) ), row.names = FALSE )
220+ utils :: write.csv(x = prepared_data $ D , file = file.path(output_path , paste0( " D_norm_wide" , suffix , " .csv" ) ), row.names = FALSE )
221+ utils :: write.csv(x = prepared_data $ D_long , file = file.path(output_path , paste0( " D_norm_long" , suffix , " .csv" ) ), row.names = FALSE )
222222
223223
224224 if (output_type == " xlsx" ) {
225- openxlsx :: write.xlsx(x = cbind(prepared_data $ ID , prepared_data $ D ), file = paste0( file.path(output_path , " D_norm_ID" , suffix ) , " .xlsx" ),
225+ openxlsx :: write.xlsx(x = cbind(prepared_data $ ID , prepared_data $ D ), file = file.path(output_path , paste0( " D_norm_ID" , suffix , " .xlsx" ) ),
226226 rowNames = FALSE , overwrite = TRUE , keepNA = TRUE , na.string = na_out )
227227 }
228228 if (output_type == " csv" ) {
229- utils :: write.csv(x = cbind(prepared_data $ ID , prepared_data $ D ), file = paste0( file.path(output_path , " D_norm_ID" , suffix ) , " .csv" ),
229+ utils :: write.csv(x = cbind(prepared_data $ ID , prepared_data $ D ), file = file.path(output_path , paste0( " D_norm_ID" , suffix , " .csv" ) ),
230230 row.names = FALSE , na = na_out )
231231 }
232232 if (output_type == " tsv" ) {
233- utils :: write.table(x = cbind(prepared_data $ ID , prepared_data $ D ), file = paste0( file.path(output_path , " D_norm_ID" , suffix ) , " .tsv" ),
233+ utils :: write.table(x = cbind(prepared_data $ ID , prepared_data $ D ), file = file.path(output_path , paste0( " D_norm_ID" , suffix , " .tsv" ) ),
234234 row.names = FALSE , sep = " \t " , na = na_out )
235235 }
236236
@@ -250,9 +250,9 @@ workflow_QC <- function(data_path,
250250 mess <- paste0(mess , vv_plot_data [[" message" ]])
251251
252252
253- ggplot2 :: ggsave(paste0( file.path(output_path , " valid_value_plot" , suffix ) , " ." , plot_device ), plot = vv_plot_data [[" plot" ]],
253+ ggplot2 :: ggsave(file.path(output_path , paste0( " valid_value_plot" , suffix , " ." , plot_device ) ), plot = vv_plot_data [[" plot" ]],
254254 device = plot_device , height = plot_height , width = plot_width , dpi = plot_dpi , units = " cm" )
255- utils :: write.csv(x = vv_plot_data $ table , file = paste0( file.path(output_path , " D_validvalues" , suffix ) , " .csv" ), row.names = FALSE )
255+ utils :: write.csv(x = vv_plot_data $ table , file = file.path(output_path , paste0( " D_validvalues" , suffix , " .csv" ) ), row.names = FALSE )
256256
257257
258258
@@ -265,7 +265,7 @@ workflow_QC <- function(data_path,
265265
266266 mess <- paste0(mess , boxplot_data [[" message" ]])
267267
268- ggplot2 :: ggsave(paste0( file.path(output_path , " boxplot" , suffix ) , " ." , plot_device ), plot = boxplot_data [[" plot" ]],
268+ ggplot2 :: ggsave(file.path(output_path , paste0( " boxplot" , suffix , " ." , plot_device ) ), plot = boxplot_data [[" plot" ]],
269269 device = plot_device , height = plot_height , width = plot_width , dpi = plot_dpi , units = " cm" )
270270
271271
@@ -310,10 +310,10 @@ workflow_QC <- function(data_path,
310310 mess <- paste0(mess , pca_data [[" message" ]])
311311
312312
313- ggplot2 :: ggsave(paste0( file.path(output_path , " PCA_plot" , suffix ) , " ." , plot_device ), plot = pca_data [[" plot" ]],
313+ ggplot2 :: ggsave(file.path(output_path , paste0( " PCA_plot" , suffix , " ." , plot_device ) ), plot = pca_data [[" plot" ]],
314314 device = plot_device , height = plot_height , width = plot_width , dpi = plot_dpi , units = " cm" )
315- utils :: write.csv(x = pca_data $ D_PCA_plot , file = paste0( file.path(output_path , " D_PCA" , suffix ) , " .csv" ), row.names = FALSE )
316- utils :: write.csv(x = pca_data $ filtered_D , file = paste0( file.path(output_path , " PCA_data_after_imputation" , suffix ) , " .csv" ), row.names = FALSE )
315+ utils :: write.csv(x = pca_data $ D_PCA_plot , file = file.path(output_path , paste0( " D_PCA" , suffix , " .csv" ) ), row.names = FALSE )
316+ utils :: write.csv(x = pca_data $ filtered_D , file = file.path(output_path , paste0( " PCA_data_after_imputation" , suffix , " .csv" ) ), row.names = FALSE )
317317
318318
319319 }
0 commit comments