How to plot figure?

While going through a research article I found a self explanatory figure and willing to perform similar task. We have done some work and want to map certain identified genes. I am interested in research article figure 4 or 5. Please provide some lead how can I achieve my goal in this regards.

Regards
Devender

enter image description here


Fst


vcf


wgs


plot

• 275 views

In the figure legend it says "Haplotype diversity at the HCRTR1 (b) and SLC40A1 (d) gene regions (gray area). The major allele at each SNP position in N’Dama is colored in red, the minor one in white."

I would therefore assume that the authors had a matrix with two values, one value representing the major allele and the other one representing the minor allele. I would also guess that in that matrix columns represented individual base pairs (or genomic bins of a certain size) and rows represented individual samples. That table of values was then plotted as a heatmap. This can be done in R using various functions, e.g. pheatmap (here's a nice tutorial) or ComplexHeatmap


Login
before adding your answer.

Traffic: 1576 users visited in the last hour



Source link