Add run_validate_PipeVal_with_metadata
method
#44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
run_validate_PipeVal_with_metadata
method. That method is functionally equivalent torun_validate_PipeVal
except that it takes atuple
as input, rather than a singlepath
, and emits the same thing asvalidated_file
:run_validate_PipeVal
:pipeline-Nextflow-module/modules/PipeVal/validate/main.nf
Lines 30 to 36 in 7498d12
run_validate_PipeVal_with_metadata
:pipeline-Nextflow-module/modules/PipeVal/validate/main.nf
Lines 73 to 79 in 7498d12
With that change, the
validated_file
output channel (with a little manipulation) can be fed to downstream processes directly. As an example, take this logic from pipeline-recalibrate-BAM (abbreviated):input_ch_samples_with_index.dump()
:That can be changed to this (tested but not reviewed/merged):
validated_samples_with_index.dump()
:I have read the code review guidelines and the code review best practice on GitHub check-list.
The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)-[brief_description_of_branch].
I have set up or verified the branch protection rule following the github standards before opening this pull request.
I have added my name to the contributors listings in the
metadata.yaml
and themanifest
block in thenextflow.config
as part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
I have added the changes included in this pull request to the
CHANGELOG.md
under the next release version or unreleased, and updated the date.I have updated the version number in the
metadata.yaml
andmanifest
block of thenextflow.config
file following semver, or the version number has already been updated. (Leave it unchecked if you are unsure about new version number and discuss it with the infrastructure team in this PR.)I have tested the pipeline on at least one A-mini sample.
Testing Results
Modified pipeline-recalibrate-BAM NFTest run:
/hot/software/pipeline/pipeline-recalibrate-BAM/Nextflow/development/unreleased/nwiltsie-refactor/log-nftest-20240613T202121Z.log