| dropfromqtl {qtl} | R Documentation |
Drop a QTL from a qtl object
Description
Drop a QTL or multiple QTL from a QTL object
Usage
dropfromqtl(qtl, index, chr, pos, qtl.name, drop.lod.profile=TRUE)
Arguments
qtl |
A qtl object, as created by |
index |
Vector specifying the numeric indices of the QTL to be dropped. |
chr |
Vector indicating the chromosome for each QTL to drop. |
pos |
Vector (of same length as |
qtl.name |
Vector specifying the names of the QTL to be dropped. |
drop.lod.profile |
If TRUE, remove any LOD profiles from the object. |
Details
Provide either chr and pos, or one of qtl.name or
index.
Value
The input qtl object with the specified QTL omitted. See makeqtl for
details on the format.
Author(s)
Karl W Broman, broman@wisc.edu
See Also
makeqtl, fitqtl,
addtoqtl, replaceqtl ,
reorderqtl
Examples
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")
newqtl <- dropfromqtl(qtl, chr=1, pos=25.8)
altqtl <- dropfromqtl(qtl, index=1)
[Package qtl version 1.66 Index]