Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

A great set of tools for manipulating and analyzing VCF files

This exercise should be run on your personal computer

Installing vcftools:

Instructions for installing VCFtools are here:

https://vcftools.github.io/downloads.html

Exercise:

Download this file to your desktop, unzip it, then follow instructions below

Exercise Files

 

vcftools --weir-fst-pop
#Navigate to the exercise directory 
cd ~/Desktop/vcftools
 
#Look at the input files
less chrI.vcf
less male_pun.txt
 
 
#Use VCF tools to get Fst between males and females for the two VCF files
vcftools --vcf chrI.vcf --weir-fst-pop male_pun.txt --weir-fst-pop female_pun.txt --out chr1_Fst_results
vcftools --vcf chrXII.vcf --weir-fst-pop male_pun.txt --weir-fst-pop female_pun.txt --out chr12_Fst_results

#look at the results
ls -l *.fst
less chr1_Fst_results.weir.fst
less chr12_Fst_results.weir.fst

#Use plot_Fst.R to plot the results
./plot_Fst.R

#look at the resulting plots
ls *Fst_plot.pdf
open *.pdf

#What is biological explanation for these results?



  • No labels