write_probs: Write genotype probabilities to database

Description Usage Arguments Details Value See Also Examples

Description

Write genotype probabilities to database

Usage

1
write_probs(db, probs, map = NULL, quiet = TRUE)

Arguments

db

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

probs

Genotype probabilities, as calculated by calc_genoprob.

map

Optional map of marker positions (a list of vectors of positions).

quiet

If FALSE, print some information about progress.

Details

The genotype probabilities are written to a single SQLite database file. If the file exists, it is overwritten.

The data are placed in a series of tables.

Value

None. (See Details.)

See Also

read_probs

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(qtl2geno)
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2geno"))
map <- insert_pseudomarkers(iron, map, error_prob=0.002)
pr <- calc_genoprob(iron, map)

write_probs("iron.sqlite", pr, map)

## End(Not run)

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