vcf format to Mapmaker format
1
2
Entering edit mode
8.0 years ago
Bmusungu ▴ 20

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

SNP mapmaker • 2.8k views
ADD COMMENT
0
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

@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.

ADD REPLY
0
Entering edit mode

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 GT then 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.

ADD REPLY
0
Entering edit mode
10 5
*M1 B3.7 ab,ab,-,ab,b,ab,ab,-,ab,b
*M2 D2.18 o,-,a,a,-,o,a,-,o,o
*M3 D1.13 o,a,a,o,o,-,a,o,a,o
*M4 A.4 ab,b,-,ab,a,b,ab,b,-,a
*M5 D2.18 a,a,o,-,o,o,a,o,o,o

This is the make up of input file.

ADD REPLY
0
Entering edit mode
4.1 years ago
Dave Carlson ★ 2.0k

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

ADD COMMENT

Login before adding your answer.

Traffic: 2119 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6