fst_extract: Extract genotype probabilities from fst database

Description Usage Arguments Details Value Functions See Also Examples

View source: R/fst_extract.R

Description

Extract genotype probabilities from fst database as an ordinary calc_genoprob object.

Usage

1
2
3

Arguments

object

Object of class "fst_genoprob", linking to an fst database of genotype probabilities.

Details

The genotype probabilities are extracted from the fst database. Each chromosome is extracted in turn.

Value

An object of class "calc_genoprob" (a list of 3-dimensional arrays).

Functions

See Also

fst_genoprob()

Examples

1
2
3
4
5
6
7
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)

kbroman/qtl2fst documentation built on July 18, 2019, 3:06 a.m.