Skip to content
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

The gcnv contig_ploidy wrapper hardcodes config paths #500

Open
Nicolai-vKuegelgen opened this issue Apr 15, 2024 · 2 comments · May be fixed by #508
Open

The gcnv contig_ploidy wrapper hardcodes config paths #500

Nicolai-vKuegelgen opened this issue Apr 15, 2024 · 2 comments · May be fixed by #508
Assignees

Comments

@Nicolai-vKuegelgen
Copy link
Contributor

Describe the bug
The wrapper for gcnv contig_ploidy contains hard-coded config sections (see below) but is uactually sed by different steps (helper_gcnv_model_targeted and helper_gcnv_model_wgs)

From snappy_wrappers/wrappers/gcnv/contig_ploidy/wrapper.py

par_intervals = snakemake.config["step_config"]["helper_gcnv_model_targeted"]["gcnv"].get(
    "path_par_intervals"
)

To Reproduce
Steps to reproduce the behavior:

  1. Run the helper_gcnv_model_wgs step

Expected behavior
The wrapper script should automatically determine whether the targeted or wgs step is being run.

@tedil
Copy link
Contributor

tedil commented Apr 30, 2024

The wrapper should not determine anything but remain oblivious of its context. I'd rather factor the config access out and make the par_intervals a parameter, i.e. an entry in params.args. I.e. the steps calling this wrapper should be in charge of producing the correct par_intervals value to hand off to the wrapper.

@tedil tedil self-assigned this Apr 30, 2024
@Nicolai-vKuegelgen
Copy link
Contributor Author

Sounds like a better solution, I have so far only 'hotfixed' this by adding a "helper_gcnv_model_targeted" config section to my WGS projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants