Skip to content

Commit

Permalink
Merge pull request #27 from N-Hoffmann/stringtie
Browse files Browse the repository at this point in the history
Add reference genome and gtf info on cover page of QC PDF
  • Loading branch information
N-Hoffmann authored Sep 27, 2024
2 parents 0ae3bec + 7ff9461 commit e98b513
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion bin/qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ theme_set(
args = commandArgs(trailingOnly=TRUE)
prefix = args[1]
ANNEXA_version = args[2]
genome_ref = basename(args[3])
gtf_ref = basename(args[4])

#############################################################################
# GENE
Expand Down Expand Up @@ -395,7 +397,14 @@ cover <- textGrob("ANNEXA report",
gp = gpar(fontsize = 40,
col = "black"))

sub_cover_text <- paste(print(Sys.Date()), paste("ANNEXA version:", ANNEXA_version), sep = "\n")
sub_cover_text <- paste(
paste("Reference genome:", genome_ref),
paste("Reference annotation:", gtf_ref),
"\n",
print(Sys.Date()),
paste("ANNEXA version:", ANNEXA_version),
sep = "\n")

sub_cover <- textGrob(sub_cover_text,
gp = gpar(fontsize = 20,
col = "black"))
Expand Down
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ include { paramsHelp } from 'plugin/nf-schema'
include { helpHeader } from './modules/header.nf'
if (params.help) {
log.info helpHeader()
log.info paramsHelp("nextflow run IGDRion/ANNEXA -profile {test,docker,singularity,conda,slurm} --input samples.txt --gtf /path/to/ref.gtf --fa /path/to/ref.fa")
exit 0
log.info paramsHelp("nextflow run IGDRion/ANNEXA -profile {test,docker,singularity,conda,slurm} --input samples.txt --gtf /path/to/ref.gtf --fa /path/to/ref.fa")
exit 0
}

if (params.input) { input = file(params.input, checkIfExists: true) }
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}
qc.R ${prefix} ${workflow.manifest.version} ${params.fa} ${params.gtf}
"""
}

0 comments on commit e98b513

Please sign in to comment.