Skip to content

Commit

Permalink
add eager to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jun 17, 2020
1 parent c8dea94 commit ba09041
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/sra.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: SRA
#This is a workflow for speciality pipeline feature, SRA Download
#This is a workflow for speciality pipeline feature, SRA Download and EAGER
on:
# Triggered on Push for any branch
push:
Expand Down Expand Up @@ -40,15 +40,18 @@ jobs:
- name: pipeline
shell: bash -l {0}
run: |
cp ~/.nextflow/assets/nf-core/eager/assets/multiqc_config.yaml \
./multiqc_config_custom.yaml
cp ~/.nextflow/assets/nf-core/eager/environment.yml \
./eager-env.yaml;
nextflow run pipeline.nf \
--sqlite results/ncbimeta_db/update/latest/output/database/yersinia_pestis_db.sqlite \
--outdir test \
--sqlite_select_command_sra "\"SELECT BioSampleAccession,SRARunAccession,SRALibraryLayout,SRAFileURL FROM Master WHERE (SRARunAccession = 'SRR1048902' OR SRARunAccession = 'SRR1048905')\"" \
--max_datasets_sra 10 \
--max_datasets_sra 2 \
--skip_assembly_download \
--skip_eager \
--skip_reference_download \
-resume
--skip_snippy_pairwise
- name: artifact SQLite import
uses: actions/upload-artifact@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test*/*
src/*
.nextflow*
ncbimeta.yaml*
eager-env.yaml
pipeline.pdf*
report.html*
timeline.html*
Expand Down
29 changes: 19 additions & 10 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,8 @@ if (!params.skip_sra_download && (params.sqlite || ( params.ncbimeta_update) ) &
Publish:
*/
// Other variables and config
tag "SRATest"
tag "$sra_acc_file"
publishDir "${outdir}/sra_download", mode: 'copy'
echo true

ch_tsv_for_download_sra
.splitText()
Expand Down Expand Up @@ -625,6 +623,7 @@ if (!params.skip_reference_detect_low_complexity && !params.skip_reference_downl
if (!params.skip_eager && (!params.skip_sra_download) && (params.sqlite || ( params.ncbimeta_update) ) && (!params.skip_reference_download) && !params.skip_sqlite_import){

process eager{
conda 'eager-env.yaml'
/*
Input:
Expand All @@ -650,15 +649,25 @@ if (!params.skip_eager && (!params.skip_sra_download) && (params.sqlite || ( par
// Shell script to execute
script:
"""
echo "eventually run eager here"
echo ${reference_genome}
echo ${sra_fastq}
echo ${eager_tsv}
# cp config file for multiqc (avoid bug error)
cp ~/.nextflow/assets/nf-core/eager/assets/multiqc_config.yaml multiqc_config_custom.yaml
# In Development Eager Test Command
echo "nextflow run nf-core/eager -r b2b411b64b \
--tsv_input ${eager_tsv} \
--fasta ${reference_genome} \
--multiqc_config ~/.nextflow/assets/nf-core/eager/assets/multiqc_config.yaml"
nextflow run nf-core/eager -r dev \
--input ${eager_tsv} \
--outdir . \
--fasta ${reference_genome_fna} \
--multiqc_config multiqc_config_custom.yaml \
--clip_readlength 35 \
--preserve5p \
--mergedonly \
--mapper bwaaln \
--bwaalnn 0.01 \
--bwaalnl 16 \
--run_bam_filtering \
--bam_mapping_quality_threshold 30 \
--bam_discard_unmapped \
--bam_unmapped_type discard;
"""
}
}
Expand Down

0 comments on commit ba09041

Please sign in to comment.