Build a phylogenetic tree (NJ tree) for and provided ped format file.
Usage:
perl plink2fasta.pl test21.ped > test21.output.fa
MEGA7/megacc -a MEGA7/template.mao -d test21.output.fa
test21.ped, template.mao
M7CC_Out/test21.output-*.nwk
Perform a PCA analysis for provided ped+map files.
Usage:
plink --file test22 --make-bed
flashpca --bfile plink
test22.ped, test22.map
pcs.txt, pve.txt
To perform a structure analysis for provided ped+map files
Usage:
plink --file test23 --make-bed
python fastStructure-master/structure.py -K 3 --input plink --output K
test23.ped, test23.map
K.3.meanQ
k=[2/3/4/5/6/7/8]
Calculate pairwise IBS values for provided ped+map files.
Usage:
plink --file test24 --distance ibs flat-missing square
test24.ped, test24.map
plink.mibs
Detect ROH for a provided ped+map files.
Usage:
plink --file test25 --homozyg --homozyg-kb 200 --homozyg-snp 1000 --homozyg-het 0.001
test25.ped, test25.map
plink.hom
--homozyg-kb=200, --homozyg-snp=1000, --homozyg-het=0.001
Calculate LD values for pairwise SNPs for provided ped+map file.
Usage:
plink --file test26 --r2 --ld-window 10000 --ld-window-kb 1000 --ld-window-r2 0 --maf 0.05
test26.ped, test26.map
plink.ld
--ld-window=10000, --ld-window-kb=1000, --ld-window-r2=0, --maf=0.05
Calculate sites or windowed pi values for a provided vcf file.
Usage:
#site
vcftools --vcf test27.vcf --out test27.output --site-pi #window
vcftools --vcf test27.vcf --out test27.output --window-pi 1000
test27.vcf
test27.output.sites.pi OR test27.output.windowed.pi
--window-pi=[window size] (for window mode)
Calculate windowed tajima’D values for a provided vcf file.
Usage:
vcftools --vcf test28.vcf --out test28.output --TajimaD 1000
test28.vcf
test28.output.Tajima.D
--TajimaD=[window size]
Calculate sites or windowed fst values for provided vcf file and two list files.
Usage:
#site
vcftools --vcf test29.vcf --out test29.output --weir-fst-pop test29.lista --weir-fst-pop test29.listb#window
vcftools --vcf test29.vcf --out test29.output --weir-fst-pop test29.lista --weir-fst-pop test29.listb --fst-window-size 1000
test29.vcf
test29.output.weir.fst OR test29.output.windowed.weir.fst
--weir-fst-pop=[list1], --weir-fst-pop=[list2], --window-pi=[window size] (for window mode)