Skip to content

Commit

Permalink
parameterize eager var
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jul 21, 2020
1 parent 6f2fc88 commit a37465b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 9 additions & 6 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -766,21 +766,24 @@ process eager{
conda activate nf-core-eager-2.2.0dev
# Run the eager command
nextflow \
-C ~/.nextflow/assets/nf-core/eager/nextflow.config \
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} \
--clip_readlength 35 \
--clip_readlength ${params.clip_readlength} \
--preserve5p \
--mergedonly \
--mapper bwaaln \
--bwaalnn 0.01 \
--bwaalnl 16 \
--bwaalnn ${params.eager_bwaalnn} \
--bwaalnl ${params.eager_bwaalnl} \
--run_bam_filtering \
--bam_mapping_quality_threshold 30
--bam_mapping_quality_threshold ${params.snippy_mappy_qual} \
--bam_discard_unmapped \
--bam_unmapped_type discard \
--max_memory ${params.max_memory} \
--max_cpus ${params.max_cpus}
# Rename deduplication bam for snippy pairwise RG simplificity
dedupBam=`ls deduplication/*/*_rmdup.bam`
Expand Down
4 changes: 4 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ params{

// EAGER parameters
eager_organism = "\"Yersinia pestis\""

eager_tsv = "metadata_sra_eager.tsv"
eager_rev = "7b51863957"
sra_tsv = "metadata_sra_acc.tsv"
eager_clip_readlength = 35
eager_bwaalnn = 0.01
eager_bwaalnl = 16

// Genbank and assembly
genbank_assembly_gz_suffix = "_genomic.fna.gz"
Expand Down

0 comments on commit a37465b

Please sign in to comment.