EVOLUTION-MANAGER
Edit File: addtoqtl.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Add to a qtl object</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for addtoqtl {qtl}"><tr><td>addtoqtl {qtl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Add to a qtl object</h2> <h3>Description</h3> <p>Add a QTL or multiple QTL to a qtl object. </p> <h3>Usage</h3> <pre> addtoqtl(cross, qtl, chr, pos, qtl.name, drop.lod.profile=TRUE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>cross</code></td> <td> <p>An object of class <code>cross</code>. See <code><a href="read.cross.html">read.cross</a></code> for details.</p> </td></tr> <tr valign="top"><td><code>qtl</code></td> <td> <p>The qtl object to which additional QTL are to be added.</p> </td></tr> <tr valign="top"><td><code>chr</code></td> <td> <p>Vector indicating the chromosome for each new QTL. (These should be character strings referring to the chromosomes by name.)</p> </td></tr> <tr valign="top"><td><code>pos</code></td> <td> <p>Vector (of same length as <code>chr</code>) indicating the positions on the chromosome for each new QTL. If there is no marker or pseudomarker at a position, the nearest position is used.</p> </td></tr> <tr valign="top"><td><code>qtl.name</code></td> <td> <p>Optional user-specified name for each new QTL, used in the drop-one-term ANOVA table in <code><a href="fitqtl.html">fitqtl</a></code>. If unspecified, the names will be of the form <code>"Chr1@10"</code> for a QTL on Chromsome 1 at 10 cM.</p> </td></tr> <tr valign="top"><td><code>drop.lod.profile</code></td> <td> <p>If TRUE, remove any LOD profiles from the object.</p> </td></tr> </table> <h3>Value</h3> <p>An object of class <code>qtl</code>, just like the input <code>qtl</code> object, but with additional QTL added. See <code><a href="makeqtl.html">makeqtl</a></code> for details. </p> <h3>Author(s)</h3> <p>Karl W Broman, <a href="mailto:broman@wisc.edu">broman@wisc.edu</a></p> <h3>See Also</h3> <p><code><a href="makeqtl.html">makeqtl</a></code>, <code><a href="fitqtl.html">fitqtl</a></code>, <code><a href="dropfromqtl.html">dropfromqtl</a></code>, <code><a href="replaceqtl.html">replaceqtl</a></code>, <code><a href="reorderqtl.html">reorderqtl</a></code> </p> <h3>Examples</h3> <pre> 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 <- calc.genoprob(fake.f2, step=2, err=0.001) qtl <- makeqtl(fake.f2, qc, qp, what="prob") qtl <- addtoqtl(fake.f2, qtl, 14, 35) </pre> <hr /><div style="text-align: center;">[Package <em>qtl</em> version 1.66 <a href="00Index.html">Index</a>]</div> </body></html>