Thank you for the response Dr. Blighe! To answer your queries
It is difficult to say... I would be interested to observe the variants that are different and to understand at which stage these are being filtered out.
I am new to population genetics, but what I understand so far is that to compare LD between 2 population, I should use the same set of variants. Is that not so? My aim is to see if there is a difference in gene structure among the different populations.
How are you applying the MAF filter? - globally, or per population?
The MAF filter is applied globally - I filtered the VCF file for each chromosome using vcftools
vcftools --gzvcf ALL.chr13.phase3_shapeit2_mvncall_integrated_v5b.20130502.genotypes.vcf.gz
--maf 0.05 --max-alleles 2 --recode --remove-indels --stdout
I have not encountered this problem. Usually, more variants == 'better' result.
Maybe I should increase my canvas size and the plots might display. I will try that.
Also, I am unsure what you mean about the --indep option
In the plink forum, when I asked this question, I was adviced to use this option. But my understanding of this option is that it will give a list of variants that are independent and NOT in LD with each other, which is opposite of what I am looking for.
Can you show the code that you are using for all steps?
# extract gene region for each sub population from VCF file
vcf_to_ped_convert.pl -vcf chr12_maf0.05.vcf.gz -sample_panel_file ALL.panel -region 12:112204691−112247782 -population GWD -output_ped gene1.ped -output_info gene1.info
# convert info file into map file
info_to_map.pl gene1.info > gene1.map
# calculate LD
plink1.9 --file gene1 -r2 square --out gene1 --biallelic-only --snps-only
# plot in R
library(gaston)
LD.plot(gene1_matrix)