dropfromqtl: Drop a QTL from a qtl object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Drop a QTL or multiple QTL from a QTL object

Usage

1
dropfromqtl(qtl, index, chr, pos, qtl.name, drop.lod.profile=TRUE)

Arguments

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.

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, kbroman@biostat.wisc.edu

See Also

makeqtl, fitqtl, addtoqtl, replaceqtl , reorderqtl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

byandell/qtl documentation built on May 13, 2019, 9:28 a.m.