Skip to content

Commit

Permalink
modified output file name and directory of annotation_statistics subw…
Browse files Browse the repository at this point in the history
…orkflow to mirror that used by the ensemblgenedownload pipeline
  • Loading branch information
BethYates committed Nov 19, 2024
1 parent 748a325 commit 14614fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ process {

withName: EXTRACT_ANNOTATION_STATISTICS_INFO {
publishDir = [
path: { "${params.outdir}/annotation_stats" },
path: { "${params.outdir}/gene" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
Expand Down
2 changes: 1 addition & 1 deletion docs/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This pipeline can generate some statistics using AGAT and a BUSCO completeness s
<detail markdown="1">
<summary>Output files</summary>

- `annotation_stats/` -`<gca_accession>_annotation.csv`: collated annotation statistics file
- `gene/` -`<annotation_input_filename>_stats.csv`: collated annotation statistics file

</details>

Expand Down
4 changes: 2 additions & 2 deletions modules/local/extract_annotation_statistics_info.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ process EXTRACT_ANNOTATION_STATISTICS_INFO{
task.ext.when == null || task.ext.when

script:
def prefix = task.ext.prefix ?: meta.id
def output_file = "${prefix}.csv"
def prefix = task.ext.prefix ?: meta.filename
def output_file = "${prefix}.stats.csv"
"""
extract_annotation_statistics_info.py \\
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/annotation_statistics.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ workflow ANNOTATION_STATISTICS {
// Map the GFF channel to create a tuple with metadata and the file
gff
| map { file ->
[ [ 'id': params.assembly + '_annotation', 'ext': "gff" ], file ]
[ [ 'id': params.assembly + '_annotation', 'ext': "gff", 'filename': file.baseName ], file ]
}
| set { ch_gff_tupple }

Expand Down

0 comments on commit 14614fb

Please sign in to comment.