Skip to contents

An helper function that will give the mean by condition of the cscore or count, for each position. The standard deviation is also given. this can be used to create a boxplot with ggplot.

Usage

mean_samples_by_conditon(
  ribo,
  value,
  metadata_condition,
  only_annotated = FALSE
)

Arguments

ribo

a RiboClass object

value

name or index of the column containing the values on which mean by condition is calculated. (Either "cscore" or "count")

metadata_condition

name or index of the column in metadata containing the condition

only_annotated

use annotation site name instead of default

Value

a dataframe with the mean for each condition for a selected value

Examples

data("ribo_toy")
mean_df <- mean_samples_by_conditon(ribo_toy,"count","condition")