perWeek_barplot {moanin}R Documentation

Creates pairwise contrasts for all timepoints

Description

Creates pairwise contrasts for all timepoints

Usage

perWeek_barplot(
  de_results,
  type = c("qval", "pval"),
  labels = NULL,
  threshold = 0.05,
  xlab = "Timepoint",
  ylab = "Number of DE genes",
  main = "",
  ...
)

Arguments

de_results

results from DE_timepoints

type

type of p-value to count ("qval" or "pval")

labels

labels to give each bar

threshold

cutoff for counting gene as DE

xlab

x-axis label

ylab

y-axis label

main

title of plot

...

arguments passed to barplot

Details

create_timepoints_contrasts creates the needed contrasts for comparing two groups for every timepoint in the format needed for DE_timepoints (i.e. makeContrasts, to which the contrasts are ultimately passed). The time points are determined by the meta data in the moanin_object provided by the user.

Value

This is a plotting function, and returns (invisibly) the results of barplot

Examples

data(exampleData)
moanin <- create_moanin_model(data=testData, meta=testMeta)
contrasts <- create_timepoints_contrasts(moanin, "C", "K")
deTimepoints <- DE_timepoints(moanin, 
    contrasts=contrasts, use_voom_weights=FALSE)
perWeek_barplot(deTimepoints)

[Package moanin version 1.0.0 Index]