majSequences: Most expressed sequences per sample

View source: R/majSequences.R

majSequencesR Documentation

Most expressed sequences per sample

Description

Proportion of reads associated with the three most expressed sequences per sample

Usage

majSequences(
  counts,
  n = 3,
  group,
  col = c("lightblue", "orange", "MediumVioletRed", "SpringGreen"),
  outfile = TRUE,
  ggplot_theme = theme_gray()
)

Arguments

counts

matrix of counts

n

number of most expressed sequences to return

group

factor vector of the condition from which each sample belongs

col

colors of the bars (one per biological condition)

outfile

TRUE to export the figure in a png file

ggplot_theme

ggplot2 theme function (theme_gray() by default)

Value

A matrix with the percentage of reads of the three most expressed sequences and a file named majSeq.png in the figures directory

Author(s)

Marie-Agnes Dillies and Hugo Varet


PF2-pasteur-fr/SARTools documentation built on April 6, 2022, 2:24 a.m.