PermutRandSurv: A function to calculate probabilities of neutral model and...

Description Usage Arguments Value See Also Examples

Description

A function to calculate probabilities of neutral model and positive selection model from a genotype matrix whit a randomly shuffled survival vector

Usage

1
2
PermutRandSurv(gt, survival, odded.lives = NULL, odded.samples = NULL,
  verbose = TRUE)

Arguments

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 (e.g. c("HETERO" = 32, "HOMOREF" = 18, ... ))

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.

Value

A data frame of frequencies and probabilities, one snp per row.

See Also

For more detail, see AnalyseSplittedExpt which this function bind.

Examples

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)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.