read_probs: Read genotype probabilities from database

Description Usage Arguments Value See Also Examples

Description

Read genotype probabilities from database

Usage

1
read_probs(db, chr = NULL, pos = NULL, markers = NULL)

Arguments

db

Either a filename for a SQLite database, or a connection to such a database.

chr

Single chromosome to read.

pos

Optional length-2 vector specifying an interval of positions to read.

markers

Optional vector of marker names to read. If pos is provided, marker is ignored. The markers must all be on the same chromosome.

Value

Genotype probabilities, as an object of class "calc_genoprob".

See Also

write_probs

Examples

1
2
3
4
5
6
7
8
## Not run: 
pr <- read_probs("iron_probs.sqlite", chr="5")

pr <- read_probs("iron_probs.sqlite", chr="5", pos=c(50, 75))

pr <- read_probs("iron_probs.sqlite", markers=c("D5Mit11", "c5.loc18", "c5.loc18.5"))

## End(Not run)

kbroman/qtl2sqlite documentation built on May 20, 2019, 8:13 a.m.