Learn R Programming

qtl (version 1.70)

nqtl: Determine the number of QTL in a QTL object

Description

Determine the number of QTL in a QTL object.

Usage

nqtl(qtl)

Value

The number of QTL in the input QTL object.

Arguments

qtl

An object of class qtl. See makeqtl for details.

Author

Karl W Broman, broman@wisc.edu

See Also

makeqtl, fitqtl, dropfromqtl, replaceqtl, addtoqtl, summary.qtl, reorderqtl

Examples

Run this code
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 <- subset(fake.f2, ind=1:50)
fake.f2 <- calc.genoprob(fake.f2, step=2, err=0)
qtl <- makeqtl(fake.f2, qc, qp, what="prob")

nqtl(qtl)

Run the code above in your browser using DataLab