Description Usage Arguments Value Examples
Pull out a specified set of individuals and/or chromosomes from
the results of calc_genoprob()
.
1 2 3 4 5 |
x |
Genotype probabilities as output from |
ind |
A vector of individuals: numeric indices, logical values, or character string IDs |
chr |
A vector of chromosomes: logical values, or character string IDs. Numbers are interpreted as character string IDs. |
... |
Ignored. |
The input genotype probabilities, with the selected individuals and/or chromsomes.
1 2 3 4 5 6 7 | grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2geno"))
pr <- calc_genoprob(grav2)
# keep just individuals 1:5, chromosome 2
prsub <- pr[1:5,2]
# keep just chromosome 2
prsub2 <- pr[,2]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.