Regroup samples by condition and calculate mean for each condition
Source:R/mean_samples_by_condition.R
mean_samples_by_conditon.Rd
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.
Examples
data("ribo_toy")
mean_df <- mean_samples_by_conditon(ribo_toy,"count","condition")