I generated Manhattan plot with multi-calling vcf file. But when I got the result, there were several weird lines that are not usually observed in other Manhattan plots. I want to know whether my code is wrong or my vcf file is wrong.
My code was like this.
plink --vcf Asp3.vcf.gz --allow-no-sex --recode --out myplink
plink --vcf Asp3.vcf.gz --allow-no-sex --recode --pheno MANN_pheno.txt --make-bed --out myplink
plink --bfile myplink --allow-no-sex --make-bed --mind 0.05 --maf 0.05 --geno 0.1 --hwe 1e-6 --recode --out myplink.QC
plink --bfile myplink.QC --allow-no-sex --linear --pheno MANN_pheno.txt --out myplink_result
With the result named 'myplink_result.assoc.linear', I made plot by R.
gwas_results <- read.table("myplink_result.assoc.linear", header=T, sep="\t")
gwas_results$P = as.numeric(as.character(gwas_results$P))
manhattan(gwas_results, chr="CHR", bp="BP", p="P", main="GWAS Manhattan Plot", ylim=c(0, -log10(5e-8)))
I assume you're using the
qqman
package - you should have mentioned which package you're using.The vignette shows the horizontal lines as well as the vertical chromosome bands: https://cran.r-project.org/web/packages/qqman/vignettes/qqman.html
Can you show us an example of a plot where you don't see these lines?