write_probs: Write genotype probabilities to database

Description Usage Arguments Details Value See Also Examples

Description

Write genotype probabilities to database

Usage

1
2
write_probs(db, probs, map = NULL, url = "mongodb://localhost",
  quiet = TRUE)

Arguments

db

Name of database

probs

Genotype probabilities, as calculated by calc_genoprob.

map

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

url

URL for mongo server

quiet

If FALSE, print some information about progress.

Details

The genotype probabilities are written to a single Mongo database in a pair of collections.

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(db="iron_probs", pr, map)

## End(Not run)

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