View source: R/simRecurrence.R
randomRecurrence | R Documentation |
Randomly samples new copy number profiles based on those provided. Segment boundaries for whole chromosomes are drawn from the samples provided in ascat. Signature assignemnts are sampled from all signature assignments in ascat for which the segment length class matched that of the segment being drawn for. Recurrence of the signature is then calculated across all samples from a given replicate.
randomRecurrence(ascat, windowGR, nrep, nsim)
ascat |
Copy number profiles from which to simulate new datasets. Must include copy number signature assignment to segments. See runAssignment(). |
windowGR |
Windows in which to calculate recurrence of randomly generated datasets. See setupWindows(). Should match those used for getRecurrence(). |
nrep |
Number of replicates to run (number of random datasets to generate). |
nsim |
Number of samples to simulate per random dataset. |
whichsig |
Which signature to return values for. |
Matrix of recurrence of a given copy number signature (whichsig) across nrep simulations in genomic windows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.