read_probs: Read genotype probabilities from database

Description Usage Arguments Value See Also Examples

Description

Read genotype probabilities from database

Usage

1
2
read_probs(db, chr = NULL, pos = NULL, markers = NULL,
  url = "mongodb://localhost")

Arguments

db

Name of 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.

url

URL for mongo server

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", chr="5", url="mongodb://localhost")

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

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

## End(Not run)

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