Skip to content

Commit

Permalink
Adding and fixeing stdout for check_barcode module
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Sep 28, 2023
1 parent 84b8732 commit 333bc8e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/local/check_barcode.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ process CHECK_BARCODE {
tuple val(meta) , path(barcodes)
tuple val(meta2) , path(pacbio_dir)
tuple val(meta3) , path(multiplex_csv)

output:
stdout , emit: debarcoded
path "versions.yml" , emit: versions

script:
def prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ''
//barcode_fasta = file path
//pacbio_dir = /lustre/scratch123/tol/resources/treeval/treeval-testdata/asccTinyTest/pacbio/
//multiplex_name = "bca101,bcc202"
"""
pacbio_barcode_check.py \\
${barcode_fasta} \\
Expand All @@ -34,10 +32,8 @@ process CHECK_BARCODE {
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ''
"""
touch ${prefix}.txt
echo "BARCODES FOUND!"
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down

0 comments on commit 333bc8e

Please sign in to comment.