Description Usage Arguments Value See Also Examples
A function to calculate probabilities of neutral model and positive selection model from a genotype matrix whit a randomly shuffled survival vector
1 2 | PermutRandSurv(gt, survival, odded.lives = NULL, odded.samples = NULL,
verbose = TRUE)
|
gt |
A genotype matrix |
survival |
A survival vector to shuffle |
odded.lives |
Optional. A vector containing a number of lives for each
categories of |
odded.samples |
Optional. A list of vectors containing index for each odded sample categories. (e.g. list$HETERO could be c(1,3,7,45,141)) |
verbose |
Logical. If TRUE (default), report status of the process along the execution. |
A data frame of frequencies and probabilities, one snp per row.
For more detail, see AnalyseSplittedExpt
which this function
bind.
1 2 3 4 5 6 7 | ## Not run:
PermutRandSurv(gt, c(TRUE, TRUE, FALSE, ...))
PermutRandSurv(gt, survival, verbose = FALSE)
PermutRandSurv(gt, survival, odded.lives = c("HETERO" = 32, "HOMOREF" = 18, ...
), odded.samples = list("HETERO" = c(1,3,7,45,141), ...)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.