Skip to content

Commit

Permalink
Adding testing
Browse files Browse the repository at this point in the history
  • Loading branch information
DLBPointon committed Sep 19, 2023
1 parent d802476 commit 6ac3177
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
- name: Run MAPS_ONLY pipeline with test data
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} --input /home/runner/work/curationpretext/curationpretext/TreeValTinyData/assembly/draft/grTriPseu1.fa --pacbio /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/pacbio/ --cram /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/hic-arima/ --teloseq TTAGGG -profile test,docker --outdir ./results -entry MAPS_ONLY
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results -entry MAPS_ONLY
- name: Run ALL_FILES pipeline with test data
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} --input /home/runner/work/curationpretext/curationpretext/TreeValTinyData/assembly/draft/grTriPseu1.fa --pacbio /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/pacbio/ --cram /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/hic-arima/ --teloseq TTAGGG -profile test,docker --outdir ./results -entry ALL_FILES
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results -entry ALL_FILES
14 changes: 10 additions & 4 deletions conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@
*/

params {
config_profile_name = 'Test profile'
config_profile_name = 'GitHub Test profile'
config_profile_description = 'Minimal test dataset to check pipeline function'

// Limit resources so that this can run on GitHub Actions
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'
max_cpus = 2
max_memory = '6.GB'
max_time = '6.h'

input = /home/runner/work/curationpretext/curationpretext/TreeValTinyData/assembly/draft/grTriPseu1.fa
outdir = ./results
pacbio = /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/pacbio/
cram = /home/runner/work/curationpretext/curationpretext/TreeValTinyData/genomic_data/hic-arima/
sample = CurationPretextTest
teloseq = TTAGGG
}
25 changes: 18 additions & 7 deletions subworkflows/local/generate_maps.nf
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,24 @@ workflow GENERATE_MAPS {
ch_versions = ch_versions.mix(PRETEXTMAP_STANDRD.out.versions)

//
// MODULE: GENERATE PRETEXT MAP FROM MAPPED BAM FOR HIGH RES
//
PRETEXTMAP_HIGHRES (
pretext_input.input_bam,
pretext_input.reference
)
ch_versions = ch_versions.mix(PRETEXTMAP_HIGHRES.out.versions)
// LOGIC: HIRES IS TOO INTENSIVE FOR RUNNING IN GITHUB CI SO THIS STOPS IT RUNNING
//
if ( params.config_profile_name ) {
config_profile_name = params.config_profile_name
} else {
config_profile_name = 'Local'
}

if ( !config_profile_name.contains('GitHub') ) {
//
// MODULE: GENERATE PRETEXT MAP FROM MAPPED BAM FOR HIGH RES
//
PRETEXTMAP_HIGHRES (
pretext_input.input_bam,
pretext_input.reference
)
ch_versions = ch_versions.mix( PRETEXTMAP_HIGHRES.out.versions )
}

//
// MODULE: GENERATE PNG FROM STANDARD PRETEXT
Expand Down

0 comments on commit 6ac3177

Please sign in to comment.