-
Notifications
You must be signed in to change notification settings - Fork 186
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
Remove of sort pipe in bwa wrappers #216
Comments
I've just ran into this very same issue. It's a pain if the user wants to use alternative tools for sorting (i.e. |
Thanks for the input! I guess this is sth. worthy to discuss. At the moment, the Edit: Similar for the other wrappers you mentioned. |
Conversion to the optimal format (here BAM, in other cases VCF) should be part of the wrapper, because it comes almost for free, and makes workflows easier to read (hiding an unimportant technical detail). However, I agree that sorting does not need to be part of the BWA wrapper. It should be possible to deactivate the conversion though, simply by specifying |
@johanneskoester I agree that sometimes it is nice to hide unimportant technical detail, but isn't that why there are the meta wrappers? I might be missing something here but, as I understand it, the idea would be that main wrappers only do one thing (i.e. they are wrappers to a single tool/command). When it is nice to hide those technical details, then we'd have the meta-wrappers that are exactly that, a wrapper of wrappers. In this case, I think it would make more sense to have the But I'd be happy just with the possibility of getting a |
Meta-Wrappers still show as more than one rule in a workflow. However, format conversion is so trivial that I think it in general rather just hampers clarity of a workflow. We do not even need an option for it. Just by specifying a In a way, those format conversion functionality just fixes usability issues of the respective tools. |
@fgvieira do you want to clean up the bwa wrapper family accordingly in a PR? |
Sure, I can change the bwa wrapper family to output Unless @jafors prefers to do it himself... |
I've recently made a PR (#186) with a new combined As an example, I've changed this wrapper so that the output file format is inferred from the output file extension, including when the output is sorted (both by If everybody agrees, I can do the same for the rest of the PS - that PR has a bunch of other wrappers, since I kinda got carried away.. 😄 |
Issue has been fixed on PR #186 |
Is your feature request related to a problem? Please describe.
Several
bwa
wrappers include a pipe to convert tobam
or to sort:bwa/mem
bwa/mem-samblaster
bwa/samse
bwa/sampe
bwa-mem2/mem
bwa-mem2/mem-samblaster
I believe this is not needed, does not make sense and is, sometimes, inconvenient.
Not needed since the pipe can be easily implemented in snakemake with other rules/wrappers. Since these are actually wrappers of two wrappers, shouldn't they actually be meta wrappers? And inconvenient when you actually want a
sam
file (and not abam
).Describe the solution you'd like
Remove the optional sorting from all
bwa
wrappers and have them output asam
file. Optionally, they could be re-implemented as meta-wrappers.The same would apply to
bwa/mem-samblaster
andbwa-mem2/mem-samblaster
.The text was updated successfully, but these errors were encountered: