Description Usage Arguments Value Author(s)
Prepare data for Manhattan plot.
1 | manhattanData(chr, bp, p, snp, color_vec = NULL, sort_chr_bp = TRUE)
|
chr |
integer. Chromosome vector. |
bp |
integer. Position vector. |
p |
numeric. P-value vector. |
snp |
character. SNP name vector. |
color_vec |
character/factor. Color vector. Doesn't have to be color names, any categorical variable will be fine. |
sort_chr_bp |
logical. Whether to sort the whole data frame by CHR and BP before return. |
A list with the following members (1) A data frame with columns including CHR, SNP, BP, P, etc. (2) Total number of SNPs. (3) A vector of unique chromosomes.
Kaiyin Zhong
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.