Skip to content

Commit

Permalink
Merge pull request #189 from uclahs-cds/nwiltsie-save-params
Browse files Browse the repository at this point in the history
Fix NFTest cases, re-enable config test workflows
  • Loading branch information
nwiltsie authored Dec 9, 2024
2 parents e6af4a9 + 1812a2b commit ed31849
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/nextflow-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
---
name: Nextflow Tests
name: Nextflow config tests

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_run:
workflows: [Trigger Tests]
types:
- completed

permissions:
actions: read
contents: write
packages: read
pull-requests: write
statuses: write

jobs:
tests:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: uclahs-cds/tool-Nextflow-action/.github/workflows/nextflow-tests.yml@main
secrets: inherit
20 changes: 20 additions & 0 deletions .github/workflows/trigger-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Trigger tests

on:
issue_comment:
types: [created]
pull_request_target:
branches:
- main
push:
branches:
- main

permissions:
pull-requests: write
statuses: write

jobs:
check-user:
uses: uclahs-cds/tool-Nextflow-action/.github/workflows/test-setup.yml@main
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Add GRIDSS2 preprocessing
- Add supported Nextflow version to `README.md`
- Add PlantUML diagram
- Add call to `store_object_as_json` to store parameters

### Changed
- Update PlantUML action to `v1.0.1`
- Update memory allocations in `M64.config`
- Re-enable configuration testing workflows

### Fixed
- Fix NFTest cases after GRIDSS2 additions
- Fix configuration tests after GRIDSS2 additions

---

Expand Down
6 changes: 6 additions & 0 deletions config/methods.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ includeConfig "../external/pipeline-Nextflow-config/config/bam/bam_parser.config
includeConfig "../external/pipeline-Nextflow-config/config/methods/common_methods.config"
includeConfig "../external/pipeline-Nextflow-config/config/schema/schema.config"
includeConfig "../external/pipeline-Nextflow-config/config/retry/retry.config"
includeConfig "${projectDir}/external/pipeline-Nextflow-config/config/store_object_as_json/store_object_as_json.config"

methods {
set_ids_from_bams = {
Expand Down Expand Up @@ -87,5 +88,10 @@ methods {
methods.set_process()
retry.setup_retry()
methods.setup_docker_cpus()

json_extractor.store_object_as_json(
params,
new File("${params.log_output_dir}/params.json")
)
}
}
2 changes: 2 additions & 0 deletions test/config/ssv-all-tools.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ params {
blcds_registered_dataset = false

reference_fasta = "/hot/resource/reference-genome/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_reference_fasta = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_blacklist = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/ENCFF356LFX.bed"

exclusion_file = "/hot/resource/tool-specific-input/Delly/hg38/human.hg38.excl.tsv"

Expand Down
2 changes: 2 additions & 0 deletions test/config/ssv-delly.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ params {
blcds_registered_dataset = false

reference_fasta = "/hot/resource/reference-genome/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_reference_fasta = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_blacklist = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/ENCFF356LFX.bed"

exclusion_file = "/hot/resource/tool-specific-input/Delly/hg38/human.hg38.excl.tsv"

Expand Down
2 changes: 2 additions & 0 deletions test/config/ssv-manta.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ params {
blcds_registered_dataset = false

reference_fasta = "/hot/resource/reference-genome/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_reference_fasta = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta"
gridss_blacklist = "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/ENCFF356LFX.bed"

exclusion_file = "/hot/resource/tool-specific-input/Delly/hg38/human.hg38.excl.tsv"

Expand Down
62 changes: 62 additions & 0 deletions test/configtest-F16.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@
"docker_container_registry": "ghcr.io/uclahs-cds",
"docker_image_bcftools": "ghcr.io/uclahs-cds/bcftools:1.15.1",
"docker_image_delly": "ghcr.io/uclahs-cds/delly:1.2.6",
"docker_image_gridss": "ghcr.io/uclahs-cds/gridss:2.13.2",
"docker_image_manta": "ghcr.io/uclahs-cds/manta:1.6.0",
"docker_image_validate": "ghcr.io/uclahs-cds/pipeval:4.0.0-rc.2",
"exclusion_file": "/hot/resource/tool-specific-input/Delly/hg38/human.hg38.excl.tsv",
"filter_condition": "FILTER=\\='PASS'",
"gridss_blacklist": "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/ENCFF356LFX.bed",
"gridss_reference_fasta": "/hot/resource/tool-specific-input/GRIDSS-2.13.2/GRCh38-BI-20160721/Homo_sapiens_assembly38.fasta",
"gridss_version": "2.13.2",
"input": {
"BAM": {
"normal": [
Expand All @@ -89,6 +93,7 @@
"min_clique_size": "5",
"min_cpus": "1",
"min_memory": "1 MB",
"other_jvm_heap": "4 GB",
"output_dir": "/tmp/outputs",
"output_dir_base": "/tmp/outputs/call-sSV-VER.SI.ON/610093",
"pipeval_version": "4.0.0-rc.2",
Expand All @@ -103,6 +108,16 @@
}
}
},
"call_sSV_GRIDSS": {
"cpus": "8",
"memory": "15 GB",
"retry_strategy": {
"memory": {
"operand": "2",
"strategy": "exponential"
}
}
},
"call_sSV_Manta": {
"cpus": "1",
"memory": "16 GB",
Expand All @@ -123,6 +138,16 @@
}
}
},
"preprocess_BAM_GRIDSS": {
"cpus": "4",
"memory": "10 GB",
"retry_strategy": {
"memory": {
"operand": "2",
"strategy": "exponential"
}
}
},
"query_SampleName_BCFtools": {
"cpus": "1",
"memory": "3 GB",
Expand All @@ -133,6 +158,16 @@
}
}
},
"run_assembly_GRIDSS": {
"cpus": "8",
"memory": "15 GB",
"retry_strategy": {
"memory": {
"operand": "2",
"strategy": "exponential"
}
}
},
"run_validate_PipeVal": {
"cpus": "1",
"memory": "1 GB"
Expand Down Expand Up @@ -242,6 +277,15 @@
"closure": "retry_updater(16 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:call_sSV_GRIDSS": {
"cpus": "8",
"memory": {
"1": "15 GB",
"2": "30 GB",
"3": "31 GB",
"closure": "retry_updater(15 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:call_sSV_Manta": {
"cpus": "1",
"memory": {
Expand All @@ -260,6 +304,15 @@
"closure": "retry_updater(3 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:preprocess_BAM_GRIDSS": {
"cpus": "4",
"memory": {
"1": "10 GB",
"2": "20 GB",
"3": "31 GB",
"closure": "retry_updater(10 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:query_SampleName_BCFtools": {
"cpus": "1",
"memory": {
Expand All @@ -269,6 +322,15 @@
"closure": "retry_updater(3 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:run_assembly_GRIDSS": {
"cpus": "8",
"memory": {
"1": "15 GB",
"2": "30 GB",
"3": "31 GB",
"closure": "retry_updater(15 GB, exponential, 2, $task.attempt, memory)"
}
},
"withName:run_validate_PipeVal": {
"cpus": "1",
"memory": "1 GB"
Expand Down

0 comments on commit ed31849

Please sign in to comment.