Skip to content

Commit

Permalink
Print command line in QC pdf
Browse files Browse the repository at this point in the history
Print command line on new page in QC pdf, and remove fasta and gtf info from cover (info is in command)
  • Loading branch information
N-Hoffmann committed Nov 13, 2024
1 parent 0e4f952 commit c887300
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions bin/qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ theme_set(
args = commandArgs(trailingOnly=TRUE)
prefix = args[1]
ANNEXA_version = args[2]
genome_ref = basename(args[3])
gtf_ref = basename(args[4])
command = args[3]

#############################################################################
# GENE level
Expand Down Expand Up @@ -399,9 +398,6 @@ cover <- textGrob("ANNEXA report",
col = "black"))

sub_cover_text <- paste(
str_wrap(paste("Reference genome:", genome_ref), width = 40),
str_wrap(paste("Reference annotation:", gtf_ref), width = 40),
"\n",
print(Sys.Date()),
paste("ANNEXA version:", ANNEXA_version),
sep = "\n")
Expand All @@ -412,6 +408,11 @@ sub_cover <- textGrob(sub_cover_text,

grid.arrange(cover, sub_cover)

# Command line
grid.arrange(textGrob(
paste(command)
))

# Gene
grid.arrange(textGrob(
"Gene Characterization",
Expand Down
2 changes: 1 addition & 1 deletion modules/qc/report.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ process REPORT {
-ref ${ref} \
-prefix ${prefix} \
-tx_discovery ${params.tx_discovery}
qc.R ${prefix} ${workflow.manifest.version} ${params.fa} ${params.gtf}
qc.R ${prefix} ${workflow.manifest.version} ${workflow.getCommandLine}
"""
}

0 comments on commit c887300

Please sign in to comment.