how to convert hapmap genotype files (hmp.txt) to VCF?

5,714 views
Skip to first unread message

Paul Tanger

unread,
Aug 22, 2013, 8:26:58 PM8/22/13
to tas...@googlegroups.com
How do I convert the hapmap files that TASSEL creates into VCF files?
I tried using this plugin from GATK but it doesn't work:

Any ideas?

Thanks!

Terry Casstevens

unread,
Aug 22, 2013, 11:29:45 PM8/22/13
to Tassel User Group
./run_pipeline.pl -Xmx5g -fork1 -h mdp_genotype.hmp.txt -export
-exportType VCF -runfork1

Or using GUI, import Hapmap and export as VCF.

Cheers,

Terry
> --
> You received this message because you are subscribed to the Google Groups
> "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tassel+un...@googlegroups.com.
> To post to this group, send email to tas...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tassel/74c74ce1-f56f-44b8-9cd9-45bec8101a34%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Paul Tanger

unread,
Aug 23, 2013, 12:08:51 AM8/23/13
to tassel
Thanks.. but this doesn't work with tassel3.  Maybe it was added to tassel 4?


You received this message because you are subscribed to a topic in the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tassel/7Oy8Jtj3h8s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tassel+un...@googlegroups.com.

To post to this group, send email to tas...@googlegroups.com.

Paul Tanger

unread,
Aug 23, 2013, 12:11:29 AM8/23/13
to tassel
Oh Nevermind, I got it to work.. but I never saw this in the tassel 3 documentation.
Thanks!

Paul Tanger

unread,
Aug 23, 2013, 1:39:52 PM8/23/13
to tassel
Ok, so the command runs in tassel 3, but the file that it produces is just a duplicate of the hapmap file - it is not in VCF format.
So just to clarify, the export plugin works in tassel 4 but NOT tassel 3.

Carlos Hernando Galeano mendoza

unread,
Aug 23, 2013, 1:58:33 PM8/23/13
to tas...@googlegroups.com
Hi all,

talking about .vcf files, do you have a script to convert vcf files to genotyping matrix?

Thanks,
Carlos



For more options, visit https://groups.google.com/groups/opt_out.



--
Carlos H. Galeano M.
Postdoctoral researcher
Genome Center, University of California, Davis
451 East Health Science Drive
Davis, CA 95616-8816
Phone (530) 752-8889
Fax (530) 754-9658

Terry Casstevens

unread,
Aug 23, 2013, 3:03:27 PM8/23/13
to Tassel User Group
I'm not sure what you mean by "genotyping matrix". Here is the
command to convert to Hapmap.

./run_pipeline.pl -Xmx5g -fork1 -vcf mdp_genotype.vcf -export
-exportType Hapmap -runfork1

Additional information...

http://www.maizegenetics.net/tassel/docs/TasselPipelineCLI.pdf

Cheers,

Terry
> https://groups.google.com/d/msgid/tassel/CAFUG%3D_TE1DxG6PK70DYA7wDW%2B%3DqebLkq67gWP1vdCSetknKk8w%40mail.gmail.com.

Dina

unread,
Nov 20, 2013, 8:02:04 AM11/20/13
to tas...@googlegroups.com
Hi everyone,

I have tried this command line, and it works. But the vcf generated does not have any quality scores and depth. Is anyone have an idea how to figure it out?

Thanks a lot,

Amandine

Nick Bell

unread,
Jan 19, 2014, 10:36:09 PM1/19/14
to tas...@googlegroups.com
Hi Amandine,

I am working on a similar issue- the depth is recorded in a separate file (at least from the UNEAK pipeline that my data came from). There should be a HapMapCount.hmc file which records this data.

There must be a way to use the scores in the count file to build the .vcf file, but I haven't figured it out yet.

However it is worth noting that the count file is capped at 127 hits per allele. So is not informative for loci with very high depth.

Amandine Cornille

unread,
Jan 20, 2014, 8:03:24 AM1/20/14
to tas...@googlegroups.com
Hi Nick,

Thanks for your help and mail!

Actually, using the Tassel pipeline, I still did not figure out to do it. But I will check the UNEAK pipeline.

ok, if you find, do not hesitate to let me know, thanks!

best,

Amandine



For more options, visit https://groups.google.com/groups/opt_out.



--
Post-doc
Department of Ecology and Genetics
EBC, Uppsala University
Norbyvägen 18D
75236 Uppsala
Sweden



Edward S. Buckler

unread,
Jan 20, 2014, 5:07:53 PM1/20/14
to tas...@googlegroups.com
Just as a heads up, the TASSEL GBS pipeline is being migrated to TASSEL 5. The UNEAK pipeline will be made as a 1 step detour out of the reference pipeline. Depth is also been better handled, where exact depth is recorded of <=127, and log estimates with 3% error are being recorded for values up to 20,000 in-depth.

-- 
Ed Buckler
From: Amandine Cornille <amandine...@gmail.com>
Reply-To: "tas...@googlegroups.com" <tas...@googlegroups.com>
Date: Monday, January 20, 2014 at 8:03 AM
To: "tas...@googlegroups.com" <tas...@googlegroups.com>
Subject: Re: [TASSEL-Group] how to convert hapmap genotype files (hmp.txt) to VCF?

Amandine Cornille

unread,
Jan 21, 2014, 5:40:24 AM1/21/14
to tas...@googlegroups.com
Hi Edward,

ok, thanks for the update!

best,

Amandine



For more options, visit https://groups.google.com/groups/opt_out.

Christine Lucas

unread,
May 16, 2018, 9:21:21 AM5/16/18
to TASSEL - Trait Analysis by Association, Evolution and Linkage
Terry---

I have no idea if you will get this, as this thread is over 4 years old, but.....using the GUI (TASSEL 5), I cannot figure out how to export my marker data set.hmp.txt as a vcf.  Any suggestions?

Thanks,
Christine  

Terry Casstevens

unread,
May 16, 2018, 9:25:17 AM5/16/18
to Tassel User Group
Select the dataset and use File -> Save As...

Then select VCF from drop down
> https://groups.google.com/d/msgid/tassel/626fd1f8-b8a4-44a7-b566-3e417bf758f7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Christine Lucas

unread,
May 16, 2018, 9:34:41 AM5/16/18
to tas...@googlegroups.com
Terry--

I tried that already, to no avail.  Unless I am doing something incorrectly.  I selected my dataset (shown below), and tried saving as a vcf, but the only option in the drop down is "Table".  





> To post to this group, send email to tas...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tassel/626fd1f8-b8a4-44a7-b566-3e417bf758f7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tassel+unsubscribe@googlegroups.com.

To post to this group, send email to tas...@googlegroups.com.

Terry Casstevens

unread,
May 16, 2018, 10:31:07 AM5/16/18
to Tassel User Group
Your data didn't get imported as genotype data.  Maybe the file doesn't have .hmp.txt extension and didn't guess correctly

You can try File -> Open As...  to explicitly say it's Hapmap

Christine Lucas

unread,
May 16, 2018, 11:26:00 AM5/16/18
to tas...@googlegroups.com
You are right.  It was one of the following: one incorrect header, no NAs where there were blank cells, and/or not having the .hmp.txt extension.  I was able to successfully import as sequence data.   

Thank you!!!!!

Wardah Mustahsan

unread,
Jul 24, 2019, 11:21:59 PM7/24/19
to TASSEL - Trait Analysis by Association, Evolution and Linkage
Hi Terry

Is the "export/import" feature no longer available in Tassel GUI ( ver. 5.2.53)? I don't really see it in the top taskbar options.

On Thursday, August 22, 2013 at 10:29:45 PM UTC-5, Terry wrote:
./run_pipeline.pl -Xmx5g -fork1 -h mdp_genotype.hmp.txt -export
-exportType VCF -runfork1

Or using GUI, import Hapmap and export as VCF.

Cheers,

Terry


On Thu, Aug 22, 2013 at 8:26 PM, Paul Tanger <pault...@gmail.com> wrote:
> How do I convert the hapmap files that TASSEL creates into VCF files?
> I tried using this plugin from GATK but it doesn't work:
> http://www.broadinstitute.org/gatk/gatkdocs/org_broadinstitute_sting_gatk_walkers_variantutils_VariantsToVCF.html
>
> Any ideas?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Terry Casstevens

unread,
Jul 25, 2019, 7:34:09 AM7/25/19
to Tassel User Group
It is now File -> Open, File -> Save
> To unsubscribe from this group and stop receiving emails from it, send an email to tassel+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tassel/a8c1864b-84c4-402f-87ac-a2d9309a99e7%40googlegroups.com.

wardah

unread,
Jul 25, 2019, 11:09:54 AM7/25/19
to tas...@googlegroups.com
Hi Terry

I need to more clarification, how does this help in the conversion of hapmap to vcf or vcf to hapmap


Have a pleasant day!
Wardah Mustahsan


Girija Hari

unread,
Aug 24, 2020, 10:23:37 AM8/24/20
to TASSEL - Trait Analysis by Association, Evolution and Linkage
Hi Chrisin/Terry
I am not sure if I will be able to get an answer to this. I am trying to export merged vcf files into vcf format file. But i am unable to do so with TASSEL UI. Is there any ways I can get this done. I successfully merged 5 vcf files and a merged Genotype Table is created. But how do I import this into a vcf format to my machine for further analysis in R

Best regards
Gimeno

> https://groups.google.com/d/msgid/tassel/626fd1f8-b8a4-44a7-b566-3e417bf758f7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tassel+un...@googlegroups.com.

To post to this group, send email to tas...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tassel+un...@googlegroups.com.

To post to this group, send email to tas...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tassel+un...@googlegroups.com.

To post to this group, send email to tas...@googlegroups.com.

Terry Casstevens

unread,
Aug 24, 2020, 10:26:58 AM8/24/20
to Tassel User Group
File -> Save As...

Girija Hari

unread,
Aug 24, 2020, 9:05:52 PM8/24/20
to TASSEL - Trait Analysis by Association, Evolution and Linkage
Thanks a lot, yeah I was doing issue with assigning a filename while exporting the vcf file.
Thank you

Best regards
gimeno

Reply all
Reply to author
Forward
0 new messages