Base mean threshold

degPerContrast(object, ...)

# S4 method for DESeqAnalysis
degPerContrast(
  object,
  i = NULL,
  direction = c("both", "up", "down"),
  return = c("matrix", "list"),
  ...
)

Arguments

object

Object.

i

character, numeric, or NULL. Names or range of results. If set NULL, include all results.

direction

character(1). Include "both", "up", or "down" directions.

return

character(1). Return type. Uses match.arg() internally and defaults to the first argument in the character vector.

...

Passthrough arguments to deg().

Value

  • matrix: Matrix containing numbers of DEGs per contrast. Intended primarily for use with plotDEGStackedBar().

  • list: Named vector containing the DEG identifiers. Intended primarily for use with plotDEGUpset().

Note

Updated 2020-09-21.

Examples

data(deseq) ## DESeqAnalysis ==== degPerContrast(deseq)
#> condition_B_vs_A treatment_D_vs_C #> down 14 0 #> up 24 0