Description Usage Arguments Value Author(s) References Examples

Monte Carlo procedure to ensure that the sets of loci (`sample_units`

) or
units (`sample_loci`

) provide enough power to discriminate MLG
(MultiLocus Genotypes).

1 2 3 4 |

`data1` |
a |

`haploid` |
logical, option, |

`vecpop` |
vector, option, |

`nbrepeat` |
numeric, the number of sampling. |

`He` |
option, if |

`graph` |
option, if |

`export` |
option, if |

`bar` |
option, if |

a list of:

`res_MLG` |
with min, max, mean and SE (Standard Error) of MLG, |

`res_alleles` |
with min, max, mean and Satterthwaite approximation of SE of the
number of alleles and of |

`raw_He` |
a table with number of loci/units sampled in column and each re-sampling in row for He, |

`raw_MLG` |
a table with number of loci/units sampled in column and each re-sampling in row for MLG number, |

`raw_all` |
a table with number of loci/units sampled in column and each re-sampling in row for alleles number. |

If `data1`

is a multi-population table, a list of lists for each population.

Creator/Author: Diane Bailleul <[email protected]>

Author: Sophie Arnaud-Haond <[email protected]>

Contributor: Solenn Stoeckel

The R implementation of `RClone`

was written by Diane Bailleul.

The design was inspired by GenClone program described in Arnaud-Haond & Belkhir (2007).

Arnaud-Haond et al., 2007, Standardizing methods to address clonality in population studies.

1 2 3 4 5 6 7 8 9 10 | ```
data(posidonia)
sample_loci(posidonia, nbrepeat = 10, graph = TRUE)[[2]]
sample_units(posidonia, nbrepeat = 10, graph = TRUE, bar = TRUE, He = TRUE)[[1]]
#Graph :
res <- sample_loci(posidonia, nbrepeat = 100)
boxplot(res$raw_MLG, range = 3, ylab = "Number of multilocus genotypes",
xlab = "Number of loci sampled")
title(paste("Genotype accumulation curve for", "posidonia"))
``` |

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.