Closed user-tq closed 1 year ago
I think, contrary to the [E::
at the start of the message, this is not actually an error, but only a warning, and bcftools filter
works without the index file. Or are you seeing this rule fail because of this error?
And should this really be a hard failure, we would need to fix this in the bcftools filter
wrapper, requiring the bcf index file as an input there. Here, in the workflow, this would then mean adjusting the input to rule filter_offtarget_variants
to also include the index file, which should then automatically be created by the rule bcftools_index
in workflow/rules/utils.smk
:
Do you have any follow-up info here, or can we close this? Namely, is this really just an irritating warning that sounds like an error, but does not actually stop/fail the workflow.
Do you have any follow-up info here, or can we close this? Namely, is this really just an irritating warning that sounds like an error, but does not actually stop/fail the workflow.
I conducted some simple tests. I found that if there is no index, when the bcftools filter uses the --regions-file
option, this error will be triggered and the program will be interrupted
One little meta-suggestion: You can paste in verbatim code and error messages as blocks here on GitHub, using a line with three backticks () to start a block and a line with three backticks (
) to close the block. That way the code / error message is nicely rendered (the screenshots have very small text) and can also be searched. For more detailed docs, see here:
https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code
As for the problem at hand, the quick fix is to also include the respective index file as a third input to the bcftools filter rule. I've created a pull request for this, as it involves modifying the input function of the respective rule, see PR #220
And the proper solution to this is to actually require an input: index=""
entry, if an input: regions=""
file is specified. This should go into the snakemake-wrapper-utils
function for the bcftools
wrappers, right here:
So I'll keep this issue here open, until we have addressed it over there.
Many thanks again for investigating and reporting!
One little meta-suggestion: You can paste in verbatim code and error messages as blocks here on GitHub, using a line with three backticks (
) to start a block and a line with three backticks (
) to close the block. That way the code / error message is nicely rendered (the screenshots have very small text) and can also be searched. For more detailed docs, see here: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code
Thanks for your suggestion!I learned a lot from talking with you!
Thanks. As the thorough fix over with the snakemake wrapper is now merged, I'll close this issue here, as well.
But please do report any other issues that come up for you. These workflows always have so many corner cases that are not necessarily covered by the CI, so this kind of feedback is really important for everybody using these workflows!
get erro
Maybe it can be changed to