summary_scan1 {qtl2ggplot} | R Documentation |
Summary of scan1 object
Description
Summary of scan1 object
Usage
summary_scan1(
object,
map,
snpinfo = NULL,
lodcolumn = seq_len(ncol(object)),
chr = names(map),
sum_type = c("common", "best"),
drop = 1.5,
show_all_snps = TRUE,
...
)
## S3 method for class 'scan1'
summary(object, ...)
Arguments
object |
object from |
map |
A list of vectors of marker positions, as produced by
|
snpinfo |
Data frame with SNP information with the following
columns (the last three are generally derived from with
|
lodcolumn |
one or more lod columns |
chr |
one or more chromosome IDs |
sum_type |
type of summary |
drop |
LOD drop from maximum |
show_all_snps |
show all SNPs if |
... |
other arguments not used |
Value
tbl summary
Author(s)
Brian S Yandell, brian.yandell@wisc.edu
Examples
# read data
iron <- qtl2::read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
# insert pseudomarkers into map
map <- qtl2::insert_pseudomarkers(iron$gmap, step=1)
# calculate genotype probabilities
probs <- qtl2::calc_genoprob(iron, map, error_prob=0.002)
# grab phenotypes and covariates; ensure that covariates have names attribute
pheno <- iron$pheno
covar <- match(iron$covar$sex, c("f", "m")) # make numeric
names(covar) <- rownames(iron$covar)
Xcovar <- qtl2::get_x_covar(iron)
# perform genome scan
out <- qtl2::scan1(probs, pheno, addcovar=covar, Xcovar=Xcovar)
# summary
summary(out, map)