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

feat: explicitly specify bwa index in bwa wrappers #232

Merged
merged 19 commits into from Jan 26, 2022

Conversation

tdayris
Copy link
Contributor

@tdayris tdayris commented Oct 19, 2020

Hi,

This is an implementation of enhancement request #228

Many thanks in advance for your reviews

PS: I'm still having this Template merge from PR #187 . I shall not have merged it to my master branch

Copy link
Contributor

@dlaehnemann dlaehnemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the new behaviour and the backwards compatibility. I have some suggestions to update the example rules in the Snakefiles accordingly. But I also just realised, that PR #186 also addresses this. Could you double check whether you can contribute anything to the review over there? And if that PR addresses everything you're looking for, maybe close this PR here?

The changes regarding wrapper code rendering should be fine, as they are already in master in exactly the same way. No clue, why they get highlighted again.

bio/bwa-mem2/index/wrapper.py Show resolved Hide resolved
Comment on lines 20 to 21
elif "index" in snakemake.input.keys():
index = path.splitext(snakemake.input["index"])[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is intended as the standard future use, right? I would then update the example rule in the Snakefile to contain an input: index="someindex.some_index_extension" accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the input should list all index files, by making use of the multiext helper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, miltiext is now displayed in the snakefiles.

Copy link
Contributor

@dlaehnemann dlaehnemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, now. I'll have a look why the tests are failing.

@johanneskoester johanneskoester changed the title Bwa genome prefix automatic fill #228 feat: explicitly specify bwa index in bwa wrappers Jan 17, 2022
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 this pull request may close these issues.

None yet

3 participants