replaceqtl | R Documentation |
This function replaces a QTL or QTLs in a qtl object with a different position.
replaceqtl(cross, qtl, index, chr, pos, qtl.name, drop.lod.profile=TRUE)
cross |
An object of class |
qtl |
A qtl object, as created by |
index |
Numeric index indicating the QTL to be replaced. |
chr |
Vector (of same length as |
pos |
Vector (of same length as |
qtl.name |
Optional vector (of same length as |
drop.lod.profile |
If TRUE, remove any LOD profiles from the object. |
The input qtl
object,
but with some QTL replaced by new ones. See makeqtl
for
details on the format.
Karl W Broman, broman@wisc.edu
makeqtl
, fitqtl
,
dropfromqtl
, addtoqtl
,
reorderqtl
data(fake.f2)
# take out several QTLs and make QTL object
qc <- c(1, 6, 13)
qp <- c(25.8, 33.6, 18.63)
fake.f2 <- subset(fake.f2, chr=qc)
fake.f2 <- calc.genoprob(fake.f2, step=2, err=0.001)
qtl <- makeqtl(fake.f2, qc, qp, what="prob")
qtl <- replaceqtl(fake.f2, qtl, 2, 6, 48.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.