@@ -2061,9 +2061,9 @@ if(groups_surviving_at_depth(rarefaction_depth) < 2) {
2061
2061
paste(" This should preserve" , groups_surviving_at_depth(adjusted_depth ), " groups for analysis." )
2062
2062
)
2063
2063
2064
- writeLines(warning_msg , " rarefaction_depth_warning.txt" )
2064
+ writeLines(warning_msg , glue( " {beta_diversity_out_dir}/{output_prefix} rarefaction_depth_warning.txt" ) )
2065
2065
message(" WARNING: Rarefaction depth adjusted from " , rarefaction_depth , " to " , adjusted_depth ,
2066
- " to preserve at least 2 groups - see rarefaction_depth_warning.txt" )
2066
+ " to preserve at least 2 groups - see " , output_prefix , " rarefaction_depth_warning.txt" )
2067
2067
2068
2068
# Update the rarefaction depth
2069
2069
rarefaction_depth <- adjusted_depth
@@ -2556,7 +2556,7 @@ final_results_bc1 <- map(pairwise_comp_df, function(col){
2556
2556
# Write to log file
2557
2557
writeLines(log_msg ,
2558
2558
file.path(diff_abund_out_dir ,
2559
- glue(" ancombc1_failure.txt" )))
2559
+ glue(" {output_prefix} ancombc1_failure.txt" )))
2560
2560
2561
2561
# Print to console and quit
2562
2562
message(log_msg )
@@ -2965,7 +2965,7 @@ tryCatch({
2965
2965
paste(" - Sample sizes per group:" ),
2966
2966
paste(" " , paste(names(table(tse [[group ]])), " =" , table(tse [[group ]]), collapse = " \n " )),
2967
2967
" \n Possibly insufficient data for ANCOMBC2 analysis. Consider adjusting filtering parameters or group assignments." ),
2968
- file.path(diff_abund_out_dir , glue(" ancombc2_failure.txt" )))
2968
+ file.path(diff_abund_out_dir , glue(" {output_prefix} ancombc2_failure.txt" )))
2969
2969
quit(status = 0 )
2970
2970
})
2971
2971
@@ -3317,7 +3317,7 @@ deseq_modeled <- tryCatch({
3317
3317
3318
3318
writeLines(c(" Error:" , e2 $ message ,
3319
3319
" \n Using gene-wise estimates as final estimates instead of standard curve fitting." ),
3320
- file.path(diff_abund_out_dir , glue(" deseq2_warning.txt" )))
3320
+ file.path(diff_abund_out_dir , glue(" {output_prefix} deseq2_warning.txt" )))
3321
3321
3322
3322
# Use gene-wise estimates as final estimates
3323
3323
deseq_obj <- estimateDispersionsGeneEst(deseq_obj )
0 commit comments