addInfo: Adds info to the chromInfo

Description Usage Arguments Value Examples

View source: R/addInfo.R

Description

The function adds information at the bin level. The gene information is an interpolation of the bin. The number of independent tests you are performing is the number of common, non-identical segments in the data. However, to keep the framework simple, it's best to append results from algorithms to the chromInfo. E.g. if .X is 5000 bins, then your genome wide algorithim is 5000 p-values. Here is where you add it after generating it.

Usage

1

Arguments

cnr

a cnr bundle

df

a data.frame with the data to incorporate. Particularly useful for adding p-values, genetic effects, etc to the bins

Value

Returns a CNR object with added columns to the chromInfo. e.g. p-values for genome wide scans

Examples

1
2
3
4
5
6
7
data(cnr)

fakePval <- data.frame(pval = runif(5000))

cnr <- addInfo(cnr, df = fakePval)

head(cnr$chromInfo)

SingerLab/gac documentation built on July 22, 2021, 3:27 a.m.