reshape.DEswan: Reshape DE-SWAN output

Description Usage Arguments Examples

View source: R/reshape.DEswan.R

Description

Reshape DE-SWAN output

Usage

1
reshape.DEswan(res.DEswan, parameter, factor)

Arguments

res.DEswan:

a data Frame - output from DEswan

parameter:

an optional numeric - 1 for pvalue or 2 for coefficients. Default is 1

factor:

an optional character string - qt or covariates in DEswan. Default is qt.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
res.DEswan=DEswan(data.df = agingplasmaproteome[,-c(1:3)],
qt = agingplasmaproteome[,1],
window.center = seq(40,100,10),
buckets.size = 10,
covariates = agingplasmaproteome[,c(2:3)])
head(res.DEswan$p)
head(res.DEswan$coeff)
res.DEswan.wide.p=reshape.DEswan(res.DEswan)
res.DEswan.wide.p=reshape.DEswan(res.DEswan,parameter = 1,factor = "qt")
head(res.DEswan.wide.p)
res.DEswan.wide.coeff=reshape.DEswan(res.DEswan,parameter = 2,factor = "qt")
head(res.DEswan.wide.coeff)

lehallib/DEswan documentation built on Oct. 5, 2020, 9:51 p.m.