Skip to content

Commit

Permalink
fixed resume option for eager process
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jun 18, 2020
1 parent ee3b344 commit e281284
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ if (!params.skip_sra_download && (params.sqlite || ( params.ncbimeta_update) ) &
input:
file sra_acc_file from ch_sra_acc_file
output:
file "fastq/*/*.fastq.gz" into ch_sra_fastq_eager
file "fastq/*/*.fastq.gz" into ch_sra_fastq_collect

// Shell script to execute
script:
Expand Down Expand Up @@ -402,6 +402,12 @@ if (!params.skip_sra_download && (params.sqlite || ( params.ncbimeta_update) ) &
"""
}

// Collect the sra download output fastq files
ch_sra_fastq_collect
.collect()
.set { ch_sra_fastq_eager }


}
// -------------------------------------------------------------------------- //
// Reference Genome Processing //
Expand Down Expand Up @@ -654,7 +660,6 @@ if (!params.skip_eager &&
// Other variables and config
tag "$eager_tsv"
publishDir "${outdir}/eager", mode: 'copy'
echo true

// IO and conditional behavior
input:
Expand All @@ -669,8 +674,8 @@ if (!params.skip_eager &&
file "preseq/*"
file "qualimap/*"
file "MultiQC/*"
file "SoftwareVersions/*"

file ".nextflow.log"
file ".command.out"

// Shell script to execute
script:
Expand All @@ -680,12 +685,15 @@ if (!params.skip_eager &&
# Enable conda activate support in this bash subshell
CONDA_BASE=\$(conda info --base) ;
source \$CONDA_BASE/etc/profile.d/conda.sh
# Activate the eager environment
conda activate nf-core-eager-2.2.0dev
# Run the eager command
nextflow run nf-core/eager -r dev \
-work-dir $baseDir/${params.outdir}/eager/work \
nextflow \
-C ~/.nextflow/assets/nf-core/eager/nextflow.config \
run nf-core/eager \
-r ${params.eager_rev} \
--input ${eager_tsv} \
--outdir . \
--fasta ${reference_genome_fna} \
Expand All @@ -699,7 +707,7 @@ if (!params.skip_eager &&
--run_bam_filtering \
--bam_mapping_quality_threshold 30 \
--bam_discard_unmapped \
--bam_unmapped_type discard;
--bam_unmapped_type discard
# Deactivate the eager env
conda deactivate
Expand Down

0 comments on commit e281284

Please sign in to comment.