vcf format to Mapmaker format
Hi everyone,
I am trying to convert my vcf file into mapmaker format to run in OneMap in R. Does anyone know of a script that is already available that can do this conversion.
Thank you
Bryan
• 3,634 views
•
link
1 answer
Old thread, but I've been learning OneMap recently and wanted to note that OneMap can now take a vcfR object as input. The steps to make this work would be
library(vcfR)
library(onemap)
# read in vcf file
myvcf <- read.vcfR("/path/to/myvcf")
# convert vcf to onemap object
mycross <- onemap_read_vcfR(myvcf ,
parent1 = "<parent1 sample ID>",
parent2 = "<parent2 sample ID>",
cross = "<cross type>")
See more here: http://augustogarcia.me/onemap/vignettes_highres/Inbred_Based_Populations.html#importing-data-from-vcf-file
Best, Dave
• 0 views
•
link
Log in to answer this question.
I'm also interested for this answer. FYI, I tried MapDisto which claims that it can do the conversion but I couldn't get it to work. Have you tried this yet?
I'll give that try arnstrm. There is also this perl script that I couldn't get to work earlier https://github.com/johnomics/scripts/blob/master/convert_vcf_to_joinmap.pl
@arnstrm I was able to get work for every type of cross but the outcross that I want to do. Which type of cross are you trying to do in onemap.
What does a mapmaker format look like?
If you are unable to find anything, maybe you can extract the genotype information in vcftools using
--extract-FORMAT-info GTthen use sed or awk to format the data files accordingly by clearing out whitespace, the / character, etc. Again, depends on what a mapmaker input file looks like.This is the make up of input file.