Description Usage Arguments Details Value See Also Examples
Write genotype probabilities to database
1 2 | write_probs(db, probs, map = NULL, url = "mongodb://localhost",
quiet = TRUE)
|
db |
Name of database |
probs |
Genotype probabilities, as calculated by |
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. |
The genotype probabilities are written to a single Mongo database in a pair of collections.
The data are placed in a series of tables.
probs
- the probabilities, with fields marker
,
chr
, marker_index
, probs
, and potentially
pos
.
chr
- chromosome information, with fields chr
, is_x_chr
, geno
meta
- Other information, with fields ind
,
alleles
, crosstype
, alleleprobs
None. (See Details.)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.