Learn R Programming

qtl (version 1.42-8)

dropfromqtl: 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 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.

Value

The input qtl object with the specified QTL omitted. See makeqtl for details on the format.

Details

Provide either chr and pos, or one of qtl.name or index.

See Also

makeqtl, fitqtl, addtoqtl, replaceqtl , reorderqtl

Examples

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab