-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enabled mbcs meta-tool in the ngs_mapping step model #545
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1bd59b2
feat: enabled mbcs meta-tool in the ngs_mapping step model
ericblanc20 89a8e04
build: removed miniconda defaults channel
ericblanc20 c2d3201
fix: fixed minor probles introduced by configuration models
ericblanc20 230e65d
fix: Enforce default configuration for HLA typing tools
ericblanc20 5319155
Merge branch 'main' into 544-ngs_mapping-model-not-in-sync-with-code
tedil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,6 +168,8 @@ def _get_input_files_metrics(self, wildcards): | |
|
||
@dictify | ||
def get_output_files(self, action): | ||
if self.name not in self.config.tools: | ||
return {} | ||
Comment on lines
+171
to
+172
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also touches on the comment above |
||
if action == "prepare": | ||
yield "baits", "work/static_data/picard/out/baits.interval_list" | ||
yield "targets", "work/static_data/picard/out/targets.interval_list" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ def pair_fastq_files(input_left, input_right): | |
input_left = snakemake.params.args["input"]["reads_left"] | ||
input_right = snakemake.params.args["input"].get("reads_right", "") | ||
|
||
config = snakemake.config["step_config"]["ngs_mapping"]["somatic"] | ||
config = snakemake.config["step_config"]["ngs_mapping"]["mbcs"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for now, we can do it like this, and then later move those config accesses to the parameters |
||
mapper = config["mapping_tool"] | ||
mapper_config = snakemake.config["step_config"]["ngs_mapping"][mapper] | ||
if mapper == "bwa_mem2": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before I forget: This is a design decision we must make.
None
, in which case substeps must not be registered if the config doesn't provide the substeps and all functions in the workflow definitions (in the init.py files) must not access those non-existent config definitions (e.g. intget_output_files
etc).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am tempted to always provide defaults. It makes the
__init__.py
code easier, and I personally don't like to see:For me, the syntax
optitype: {}
suggests that the tool doesn't accept parameters, not that we use the defaults.Also, I wouldn't always set all defaults for more complex steps/tools. If there isn't an obvious choice for a default, then the user should make a decision.
But again, I am prepared to be convinced otherwise.