map_des: Wrap datasets from DESdemonA

View source: R/helpers.r

map_desR Documentation

Wrap datasets from DESdemonA

Description

Map over each component of a DESdemonA object

Usage

map_des(data, f, depth = "comparison", ...)

Arguments

.dmc

A three-level list in the standard DESdemonA hierarchy dataset > model > comparison

.f

The function that will be called on the output of the per_model or per_comparison.

before

A function that will be invoked before .f

after

A function that will be invoked after .f

Details

If you want to loop through datasets that have been fitted by DESdemonA, then use this function as a wrapped so that reports can generate formatted output, and transformations can be applied.

This should be the first process in a pipeline, and be followed by either a per_model or per_comparison call: the primary function .f will be applied to the output. For each dataset in the dds object, the 'before' function will be called before passing things on (and so can be used to print a header, for example), and the 'after' function will be called after (to produce captions). All functions have access to a variable '.dataset' that will take the name of the current dataset

Value

The return value of .f, as applied to the list of child outputs

Author(s)

Gavin Kelly


crickbabs/RNASeq-DESeq documentation built on Jan. 7, 2023, 11:23 p.m.