Description Usage Arguments Details Value Author(s) See Also Examples
This function changes the order of the QTL in a QTL object.
1 | reorderqtl(qtl, neworder)
|
qtl |
A qtl object, as created by |
neworder |
A vector containing the positive integers up to the
number of QTL in |
Everything in the input qtl
is reordered except the
altname
component, which contains names of the form Q1
,
Q2
, etc.
The input qtl
object, with the loci reordered.
Karl W Broman, kbroman@biostat.wisc.edu
makeqtl
, fitqtl
,
dropfromqtl
, addtoqtl
,
replaceqtl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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)
qtl <- makeqtl(fake.f2, qc, qp, what="prob")
qtl <- reorderqtl(qtl, c(2,3,1))
qtl
qtl <- reorderqtl(qtl)
qtl
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.