Skip to content

Commit

Permalink
Fix publishing prokka outputs (#51)
Browse files Browse the repository at this point in the history
* Fix publishDir pattern for prokka outputs

* Run prokka in tests

* Fix artifacts name
  • Loading branch information
dfornika authored May 16, 2024
1 parent 4353a05 commit d014d32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/scripts/run_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ nextflow run main.nf \
--cache ${HOME}/.conda/envs \
--fastq_input .github/data/fastq \
--outdir .github/data/test_output \
--prokka \
-with-report .github/data/test_output/nextflow_report.html \
-with-trace .github/data/test_output/nextflow_trace.tsv
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts-BCCDC-PHL-tbprofiler-nf-nextflow-v${{ matrix.nextflow_version }}-${{ github.run_id }}.${{ github.run_attempt }}
name: artifacts-BCCDC-PHL-routine-assembly-nextflow-v${{ matrix.nextflow_version }}-${{ github.run_id }}.${{ github.run_attempt }}
path: artifacts
2 changes: 1 addition & 1 deletion modules/prokka.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ process prokka {

errorStrategy 'ignore'

publishDir params.versioned_outdir ? "${params.outdir}/${sample_id}/${params.pipeline_short_name}-v${params.pipeline_minor_version}-output" : "${params.outdir}/${sample_id}", pattern: "${sample_id}_${assembler}_prokka.{gbk,gff}", mode: 'copy'
publishDir params.versioned_outdir ? "${params.outdir}/${sample_id}/${params.pipeline_short_name}-v${params.pipeline_minor_version}-output" : "${params.outdir}/${sample_id}", pattern: "${sample_id}_${assembler}_${assembly_mode}_prokka.{gbk,gff}", mode: 'copy'

input:
tuple val(sample_id), path(assembly), val(assembler), val(assembly_mode)
Expand Down

0 comments on commit d014d32

Please sign in to comment.