sva_tidiers: Tidying methods for a sva list

Description Usage Arguments Value

Description

These are methods for turning a sva list, from the sva package, into a tidy data frame. tidy returns a data.frame of the estimated surrogate variables, glance returns a data.frame of the posterior probabilities, and glance returns a data.frame with only the number of surrogate variables.

Usage

1
2
3
4
5
augment_sva(x, data, ...)

tidy_sva(x, addVar = NULL, ...)

glance_sva(x, ...)

Arguments

x

sva list

data

Original data

...

extra arguments (not used)

addVar

add additional coefficients to the estimated surrogate variables

Value

All tidying methods return a data.frame without rownames. The structure depends on the method chosen.

augment returns one row per gene. It always contains the columns

pprob.gam

Posterior probability each gene is affected by heterogeneity

pprob.b

Posterior probability each gene is affected by model

tidy returns the estimate surrogate variables.

glance returns the estimate surrogate variables.


biobroom documentation built on Nov. 8, 2020, 5:20 p.m.