Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/simulateRFLPData.R

Simulates RFLP data for comparions of algorithms.

1 2 | ```
simulateRFLPdata(N = 10, nrBands = 3:12, bandCenters = seq(100, 800, by = 100),
delta = 50, refData = FALSE)
``` |

`N` |
integer: number samples which shall be simulated per number of bands. |

`nrBands` |
integer: vector of number of bands. |

`bandCenters` |
numeric: vector of band centers. |

`delta` |
numeric: uniform distribution with |

`refData` |
logical: if TRUE, additonal columns |

The function can be used to simulate RFLP data. For every number of band specified in
`nrBands`

a total number of `N`

samples are generated.

First the band centers are randomly selected (with replacement) from `bandCenter`

which form the centers of intervals of length `2*delta`

. From these intervals
uniform random numbers are drawn leading to randomly generated RFLP data.

A data frame with `N*length(nrBands)`

observations on the following four variables

`Sample`

character: sample identifier.

`Band`

integer: band number.

`MW`

integer: molecular weight.

`Enzyme`

character: enzyme name.

is generated. If `refData = TRUE`

then the following two additional variables
are added.

`Taxonname`

character: taxon name.

`Accession`

character: accession number.

Mohammed Aslam Imtiaz, Matthias Kohl Matthias.Kohl@stamats.de

1 | ```
simData <- simulateRFLPdata()
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.