Description Usage Arguments Details Value See Also Examples
Write genotype probabilities to database
1 | write_probs(db, probs, map = NULL, quiet = TRUE)
|
db |
Either a filename for a SQLite database, or a connection to such a database. |
probs |
Genotype probabilities, as calculated by |
map |
Optional map of marker positions (a list of vectors of positions). |
quiet |
If FALSE, print some information about progress. |
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.
probs
- the probabilities, with fields mat_index
, marker
, prob
markers
- marker information, with fields chr
,
marker
, and marker_index
. If map
was provided,
there's also a field pos
.
chr
- chromosome information, with fields chr
, is_x_chr
, and chr_index
ind
- the individual IDs
geno
- genotype codes
alleles
- the "alleles"
attribute
attributes
- the "crosstype"
and "alleleprobs"
attributes
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("iron.sqlite", pr, map)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.