Skip to content

Commit

Permalink
fixed persistent adapter_fasta issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaw9910 committed Jul 18, 2024
1 parent b7a2609 commit 8b60491
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nextflow/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,19 @@ include { BAM_QC } from './subworkflows/bam_qc.nf' addParams(OUTPUT: "${params.o

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOAD FASTQ FILES AS CHANNEL
LOAD FILES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

Channel
.fromFilePairs ( params.fastq, checkIfExists: true )
.set { fastq_ch }

if ( params.adapterFASTA ){
adapter_fasta = file(params.adapterFASTA)
if( !adapter_fasta.exists() ) exit 1, "Genome chrom sizes file not found: ${params.adapterFASTA}"
}

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WORKFLOWS
Expand All @@ -90,11 +95,6 @@ workflow FASTQC_FASTQ {
}

workflow FASTP_FASTQ {
if ( params.adapterFASTA ){
adapter_fasta = file(params.adapterFASTA)
if( !adapter_fasta.exists() ) exit 1, "Genome chrom sizes file not found: ${params.adapterFASTA}"
}

RUN_FASTP ( fastq_ch, adapter_fasta )
RUN_FASTQC_FASTP ( RUN_FASTP.out.reads )
RUN_MULTIQC_FASTP (
Expand Down

0 comments on commit 8b60491

Please sign in to comment.