# Compare two variant datasets

**URL:** <https://discuss.hail.is/t/compare-two-variant-datasets/1795>\
**Category:** Hail Query & hailctl\
**Created:** [November 19, 2020, 10:36am UTC](https://discuss.hail.is/t/compare-two-variant-datasets/1795 "2020-11-19T10:36:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krithika\_s](https://avatars.discourse-cdn.com/v4/letter/k/d6d6ee/32.png) [@krithika\_s](https://discuss.hail.is/u/krithika_s)\
**Post date:** [November 19, 2020, 10:36am UTC](https://discuss.hail.is/t/compare-two-variant-datasets/1795/1 "2020-11-19T10:36:48Z")

</div>

Hi all,

I am new to hail. I couldn’t find a function where I can compare two different vcf files in hail. I am interesting to compare two datasets of biallelic variants only and find which are common & novel variants using hail

Kindly help me regarding this.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![kumarveerapen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/kumarveerapen/32/355_2.png) [@kumarveerapen](https://discuss.hail.is/u/kumarveerapen)\
**Post date:** [November 23, 2020, 6:11pm UTC](https://discuss.hail.is/t/compare-two-variant-datasets/1795/2 "2020-11-23T18:11:15Z")

</div>

Hi Krithika

Thank you for your interest in using Hail! We love having our new users be interested in using the tool that we work on to enable easier genetics analyses.

As to get started on your scientific question, I’d highly suggest heading to [hail.is](https://hail.is/) and subsequently, going through our documentation page [https://hail.is/docs/0.2/](https://hail.is/docs/0.2/)

This will teach you how to first install Hail on your computing environment of choice, then importing your vcf files as matrix tables, annotate the variants with allele frequencies and functional annotations, and finally answer your question on common and novel variants in your files.

To check for variants between your files, you can use outer join ([https://hail.is/docs/0.2/tutorials/06-joins.html](https://hail.is/docs/0.2/tutorials/06-joins.html))
