Skip to content

Commit

Permalink
Merge branch 'carpentries-incubator:gh-pages' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrimes authored Nov 24, 2021
2 parents 13cec58 + d1bf818 commit bc3c7ed
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions files/scripts/process/process_tuple_io_fastp.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//process_tuple_io_fastp.nf
nextflow.enable.dsl=2

process FASTP {
input:
tuple val(sample_id), path(reads)

output:
tuple val(sample_id), path("*FP*.fq.gz")

script:
"""
fastp \
-i ${reads[0]} \
-I ${reads[1]} \
-o ${sample_id}_FP_R1.fq.gz \
-O ${sample_id}_FP_R2.fq.gz
"""
}

reads_ch = Channel.fromFilePairs('data/yeast/reads/ref1_{1,2}.fq.gz')

workflow {
FASTP(reads_ch)
FASTP.out.view()
}

0 comments on commit bc3c7ed

Please sign in to comment.