-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error with filter_by_abundance() #157
Comments
Hi, there is a message Maybe you can try smaller kmers or different assemblers, or provide more input data (if you have one). Or you can set a lower value of Cheers |
Thanks for the reply - that makes sense. I wonder if, as a feature request, it might be possible to change the error handling in these circumstances? A TypeError from Python isn't entirely intuitive for figuring out what went wrong in the analysis. Some suggestions might be to not print the traceback, but instead print a message like "Mitochondrial sequence selection cannot be run: all sequences are low abundance (<10X). Quitting." Also, just an additional idea: in these situations of failure, could the expected output files be generated regardless, but just be empty? The reason I ask is that I've put together a pretty basic snakemake workflow that incorporates MitoZ, and when the analysis quits with a non-zero exit code in these situations, it causes the workflow to quit. The necessary workarounds in snakemake to handle bash exceptions are currently a bit ugly:
Finally, would it be possible to 'clean' the output directory names a little by default? Currently when specifying a working directory (mitoz) and an outprefix (78_484_S11), the results directories have the outprefix in their names twice and are quite complex, for example the All good if these can't be implemented now/at all - just some ideas! Thanks for the great tool regardless. Charles |
Hi Charles, Thanks for your suggestion!
Indeed, we need a better error-handing method. Your suggestion is great. This can be implemented.
Maybe we can generate an empty resulting directory in this case? To me, it would seem a bit complicated to generate (empty) individual resulting files, because the findmitoscaf module is used in different situations.
Yes, I also don't like this naming format, will try to fix it later. These can be fixed in the next release. Thanks a lot for your feedback! Cheers |
I used version 3.6 installed with docker and encountered the same problem. I also tried different solutions, but the problem was not solved. Thank you for your help. |
Hi,
I'm running MitoZ through singularity after converting the docker container into an image (.sif). The pipeline runs well on some samples, but on 'weaker' samples with low abundance of mitochondrial DNA, the pipeline crashes with an error:
Command used:
Thanks
The text was updated successfully, but these errors were encountered: