Learn R Programming

CpGassoc (version 2.70)

cpg.combine: Combine various objects of class "cpg"

Description

Takes a list containing objects of class "cpg" and combines them into one cpg item. Assumes that there are no repeated CpG sites between the various objects (i.e. analysis wasn't performed on the same sites twice).

Usage

cpg.combine(allvalues, fdr.method="BH",fdr.cutoff=.05,return.data=FALSE)

Value

info.data

An object of class "cpg" that is the consolidated version of the objects of class cpg that were passed in.

Arguments

allvalues

A list containing the "cpg" objects that are desired to be consolidated.

fdr.method

FDR method that user wants to use. For options see the cpg.assoc help page.

fdr.cutoff

The desired FDR threshold. The default setting is .05. The set of CpG sites with FDR < fdr.cutoff will be labeled as significant.

return.data

Logical. cpg.assoc can return dataframes containing the the variable of interest, covariates, and the chip id (if present). Defaults to FALSE. Set to TRUE if plan on using the downstream scaterrplot functions).

Author

Barfield, R.; Kilaru,V.; Conneely, K.
Maintainer: R. Barfield: <barfieldrichard8@gmail.com>

See Also

cpg.assoc cpg.perm cpg.work plot.cpg scatterplot manhattan plot.cpg.perm

Examples

Run this code
data(samplecpg,samplepheno,package="CpGassoc")
test1<-cpg.assoc(samplecpg[1:100,],samplepheno$weight,large.data=FALSE)
test2<-cpg.assoc(samplecpg[101:200,],samplepheno$weight,large.data=FALSE)
bigtest<-list(test1,test2)
overall<-cpg.combine(bigtest)
overall
      

Run the code above in your browser using DataLab