fst_extract | R Documentation |
Extract genotype probabilities from fst database as an ordinary calc_genoprob object.
fst_extract(object)
fst2calc_genoprob(object)
object |
Object of class |
The genotype probabilities are extracted from the fst database. Each chromosome is extracted in turn.
An object of class "calc_genoprob"
(a list of 3-dimensional arrays).
fst2calc_genoprob
: Deprecated version (to be deleted)
fst_genoprob()
library(qtl2)
grav2 <- read_cross2(system.file("extdata", "grav2.zip", package="qtl2"))
map <- insert_pseudomarkers(grav2$gmap, step=1)
probs <- calc_genoprob(grav2, map, error_prob=0.002)
dir <- tempdir()
fprobs <- fst_genoprob(probs, "grav2", dir, overwrite=TRUE)
nprobs <- fst_extract(fprobs)
# clean up: remove all the files we created
unlink(fst_files(fprobs))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.