Skip to content

Commit ef00761

Browse files
committed
re-add output prefix to warning text files
1 parent c711f43 commit ef00761

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Amplicon/Illumina/Pipeline_GL-DPPD-7104_Versions/GL-DPPD-7104-C.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,9 +2061,9 @@ if(groups_surviving_at_depth(rarefaction_depth) < 2) {
20612061
paste("This should preserve", groups_surviving_at_depth(adjusted_depth), "groups for analysis.")
20622062
)
20632063

2064-
writeLines(warning_msg, "rarefaction_depth_warning.txt")
2064+
writeLines(warning_msg, glue("{beta_diversity_out_dir}/{output_prefix}rarefaction_depth_warning.txt"))
20652065
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")
20672067

20682068
# Update the rarefaction depth
20692069
rarefaction_depth <- adjusted_depth
@@ -2556,7 +2556,7 @@ final_results_bc1 <- map(pairwise_comp_df, function(col){
25562556
# Write to log file
25572557
writeLines(log_msg,
25582558
file.path(diff_abund_out_dir,
2559-
glue("ancombc1_failure.txt")))
2559+
glue("{output_prefix}ancombc1_failure.txt")))
25602560

25612561
# Print to console and quit
25622562
message(log_msg)
@@ -2965,7 +2965,7 @@ tryCatch({
29652965
paste("- Sample sizes per group:"),
29662966
paste(" ", paste(names(table(tse[[group]])), "=", table(tse[[group]]), collapse="\n ")),
29672967
"\nPossibly 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")))
29692969
quit(status = 0)
29702970
})
29712971

@@ -3317,7 +3317,7 @@ deseq_modeled <- tryCatch({
33173317

33183318
writeLines(c("Error:", e2$message,
33193319
"\nUsing 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")))
33213321

33223322
# Use gene-wise estimates as final estimates
33233323
deseq_obj <- estimateDispersionsGeneEst(deseq_obj)

0 commit comments

Comments
 (0)