coverage_order: Determines ordering of regions as a function of coverage.

Description Usage Arguments Value Examples

View source: R/heatmap_from_metagene.R

Description

This function creates an ordering of regions within region groups based on ascending or descending mean coverage. This is used with the metagene2_heatmap function.

Usage

1
coverage_order(metagene, design_groups = NULL, decreasing = TRUE)

Arguments

metagene

The metagene object whose grouped regions should be ordered.

design_groups

A vector of design groups to be used for determining the ordering. If NULL, all design groups are used.

decreasing

If TRUE, regions are ordered from the highest mean coverage to the lowest mean coverage, and vice versa.

Value

A list, with as many elements as there are region groups in the metagene object. Each element of that list is an ordering of the regions of that group based on their mean coverage.

Examples

1
2
  demo_metagene = get_demo_metagene()
  coverage_order(demo_metagene)

metagene2 documentation built on March 19, 2021, 6 p.m.