add.chr.len.anno: cumulative chromosome lengths

Description Usage Arguments Value Author(s)

View source: R/eqtl_lib.R

Description

convenience function to get cumulative chromosome lengths for manhattan plots

Usage

1
add.chr.len.anno(build = "b37", df = NULL, build.names = NULL)

Arguments

build

genome build to use, options: 'b37' for GRCh37.p13, 'b38' for GRCh38.p10, 'custom' (default 'b37')

df

data.frame containing custom annotations (default NULL)

build.names

names for colums with annotations for custom build, order: chromosome (chr), length (pos) (default NULL) "

Value

data frame with columns "chr", "chrLen", "cumSum2", "cumSum", "tick" and one row for each chr value, in ascending order chr = chromosome id, chrLen = length of the chromosome, cumSum2 = cumulative sum of chromosome lengths, cumSum = cumulative sum of chromosome lengths (starting at 0), tick = positions that indicate the middle of each chromosome (for axis label)

Author(s)

Ines Assum (2019-03-21)


matthiasheinig/eQTLpipeline documentation built on May 21, 2019, 1:16 p.m.