CollapsABEL (version 0.10.11)

manhattanData: Prepare data for Manhattan plot.

Description

Prepare data for Manhattan plot.

Usage

manhattanData(chr, bp, p, snp, color_vec = NULL, sort_chr_bp = TRUE)

Arguments

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.

Value

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.