#!/usr/bin/env nextflow
params.fastq_files = '/home/tain/Documents/RNA_seq/Data/*.fastq'
params.outdir = '/home/tain/Documents/RNA_seq/QC/'
Channel
.fromPath( params.fastq_files )
.ifEmpty { error "Cannot find any reads matching: ${params.fastq_files}" }
.into { files_QC_ch }
process fastp {
publishDir params.outdir, mode: 'copy', pattern: '*.html'
input:
file(fastq_file) from files_QC_ch
output:
set file('fastp_*'), file('*.html') into fastp_results_ch
"""
fastp -w 17 -i ${fastq_file} -o fastp_${fastq_file} -h ${fastq_file}_fastp.html
"""
}
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
#!/usr/bin/env nextflow
process foo {
publishDir '/home/tain/Documents/RNA_seq/QC/'
output:
file 'chunk_*' into letters
'''
printf 'Hola' | split -b 1 - chunk_
'''
}
'/home/tain/Documents/RNA_seq/QC/'
work/14/8be1c980a52d25a0564de0239eda95$ ls
chunk_aa chunk_ab chunk_ac chunk_ad
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
#!/usr/bin/env nextflow
params.fastq_files = '/home/tain/Documents/RNA_seq/Data/*.fastq'
params.outdir = '/home/tain/Documents/RNA_seq/QC/'
Channel
.fromPath( params.fastq_files )
.ifEmpty { error "Cannot find any reads matching: ${params.fastq_files}" }
.into { files_QC_ch }
process fastp {
publishDir pattern: "*.html",
path: { params.outdir + "fastp/" }, mode: 'copy'
input:
file(fastq_file) from files_QC_ch
output:
set file('fastp_*'), file('*.html') into fastp_results_ch
"""
fastp -w 15 -i ${fastq_file} -o fastp_${fastq_file} -h ${fastq_file}_fastp.html
"""
}
nextflow run fastq_test.nf
nextflow -trace nextflow run fastq_test.nf