| dropfromqtl {qtl} | R Documentation |
Drop a QTL or multiple QTL from a QTL object
dropfromqtl(qtl, index, chr, pos, qtl.name, drop.lod.profile=TRUE)
qtl |
A qtl object, as created by makeqtl. |
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 chr) indicating the
positions of the QTL to be dropped. |
qtl.name |
Vector specifying the names of the QTL to be dropped. |
drop.lod.profile |
If TRUE, remove any LOD profiles from the object. |
Provide either chr and pos, or one of qtl.name or
number.
The input qtl object with the specified QTL omitted. See makeqtl for
details on the format.
Karl W Broman, kbroman@biostat.wisc.edu
makeqtl, fitqtl,
addtoqtl, replaceqtl ,
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 <- sim.geno(fake.f2, n.draws=8, step=2, err=0.001) qtl <- makeqtl(fake.f2, qc, qp, what="draws") newqtl <- dropfromqtl(qtl, chr=1, pos=25.8) altqtl <- dropfromqtl(qtl, index=1)