Description Usage Arguments Value See Also Examples
This method also returns the subsample sizes and size trajectories sampled according to the PCR experiment specified by the
parameters stored in the slots of the PCRcoal
object given as the first argument.
This method does not sample the tree, which makes it faster than the sample.tree
method.
Use this method if you are interested only in sampling subsamples and size trajectories.
1 2 | ## S4 method for signature 'PCRcoal'
sample.trs(object)
|
object |
A |
A list containing the following elements:
A matrix containing the sampled size trajectories (rows ~ subsamples, columns ~ cycles).
A vector of subsample sizes.
The PCRcoal
class. The sample.tree
and sample.tnt
methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Construct a PCRcoal object
# and specify the experimental conditions:
sim <-PCRcoal(
initial.size =5,
sample.size =10,
nr.cycles =30,
efficiencies =c(rep(0.1, 30))
)
# Sample subsample sizes and size trajectories:
res <- sample.trs(sim)
# Print subsample sizes:
print(res$subsamples)
# Print size trajectories:
print(res$trajectories)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.