addBinInfo: Adds new columns to the chromInfo

View source: R/addInfo.R

addBinInfoR Documentation

Adds new columns to the chromInfo

Description

The function adds information at the bin level.

Usage

addBinInfo(cnr, df)

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


data(cnr)

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

cnr <- addBinInfo(cnr, df = fakePval)

head(cnr$chromInfo)


SingerLab/gac documentation built on March 23, 2024, 5:15 a.m.