mergeAlleleAbundance: Merge the different allelic versions of the molecules.

View source: R/stochastic_simulation.R

mergeAlleleAbundanceR Documentation

Merge the different allelic versions of the molecules.

Description

Merge (i.e. sum) the abundance of the different allelic versions of each molecule in the results of a simulation.

Usage

mergeAlleleAbundance(df)

Arguments

df

A dataframe with the abundance of the different molecules over time (from simulateInSilicoSystem or simulateParallelInSilicoSystem).

Value

A dataframe in which the abundance of the different allelic versions of the same molecule have been merged to give the abundance of the molecule (without distinction of the allele of origin).

Examples

## Not run: 
mysystem = createInSilicoSystem(G = 5, empty = TRUE, ploidy = 2)
mypop = createInSilicoPopulation(1, mysystem)
sim = simulateInSilicoSystem(mysystem, mypop, 100)
head(sim$Simulation)
mergedAllelic = mergeAlleleAbundance(sim$Simulation)
head(mergedAllelic)

## End(Not run)

oliviaAB/sismonr documentation built on June 25, 2022, 11:59 p.m.