Hi all,
UPDATE:
the tool is now available as part of a growing set of tools that I called all2vcf. You can clone the repository from here:
https://github.com/MatteoSchiavinato/all2vcf
ORIGINAL:
For my own necessity I have recently made this tool that, contrary to the original mummer-2-vcf.pl
script, converts the snps output of the show-snps
MUMmer tool to a real VCF file (with header and the like).
https://github.com/MatteoSchiavinato/Utilities/blob/master/my-mummer-2-vcf.py
EDIT: please use the --input-header
option if your input *.snps
file has a header. Otherwise you will have an IndexError
somewhere in the code.
It worked with my data, and it should work with yours. Anyone interested in giving it a test run?
I'll try it right now! thank you so much for your contribution! I was looking exactly for some way to convert the output of my mummer snps to vcf :D
This would be very useful but it's not quite working for me.
I'm trying to compare 2 viral (30k) genomes.
I used MUMmer's nucmer and show-snps commands:
The snps file looks like this:
When I fed this to
mummer-2-vcf.pl
viaI get this error message:
Any suggestions?
Yes, please read through this github issue that I closed some weeks ago, I believe it's the same issue :)
https://github.com/MatteoSchiavinato/Utilities/issues/1
(to improve readability, could you wrap the code parts of your answer inside a code block?)
Hi, I seem to be getting the same error even though I used -T with my show-snps. Was this error ever resolved/confirmed?
Thank you for your practical code!
I converted my .snp file to .vcf without problems, later I tried to filter with the .vcf as an input but the Qual column appears empty. Do I have to do anything before filtering?. Many thanks for your code.
Hi, I am not sure you can carry on any type of quality from mummer snps to a VCF file. Do you have any quality indication in your snps file?
Hi Matteo
This my .snps file.