manhattanData: Prepare data for Manhattan plot.

Description Usage Arguments Value Author(s)

View source: R/0_manhattan.R

Description

Prepare data for Manhattan plot.

Usage

1
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.

Author(s)

Kaiyin Zhong


CollapsABEL documentation built on May 29, 2017, 9:43 a.m.