EVOLUTION-MANAGER
Edit File: switch.order.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: Switch the order of markers on a chromosome</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 switch.order {qtl}"><tr><td>switch.order {qtl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Switch the order of markers on a chromosome</h2> <h3>Description</h3> <p>Switch the order of markers on a specified chromosome to a specified new order. </p> <h3>Usage</h3> <pre>switch.order(cross, chr, order, error.prob=0.0001, map.function=c("haldane","kosambi","c-f","morgan"), maxit=4000, tol=1e-6, sex.sp=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>chr</code></td> <td> <p>The chromosome for which the marker order is to be switched. Only one chromosome is allowed. (This should be a character string referring to the chromosomes by name.)</p> </td></tr> <tr valign="top"><td><code>order</code></td> <td> <p>A vector of numeric indices defining the new marker order. The vector may have length two more than the number of markers, for easy in use with the output of the function <code><a href="ripple.html">ripple</a></code>.</p> </td></tr> <tr valign="top"><td><code>error.prob</code></td> <td> <p>Assumed genotyping error rate (passed to <code><a href="est.map.html">est.map</a></code>).</p> </td></tr> <tr valign="top"><td><code>map.function</code></td> <td> <p>Map function to be used (passed to <code><a href="est.map.html">est.map</a></code>).</p> </td></tr> <tr valign="top"><td><code>maxit</code></td> <td> <p>Maximum number of EM iterations to perform.</p> </td></tr> <tr valign="top"><td><code>tol</code></td> <td> <p>Tolerance for determining convergence.</p> </td></tr> <tr valign="top"><td><code>sex.sp</code></td> <td> <p>Indicates whether to estimate sex-specific maps; this is used only for the 4-way cross.</p> </td></tr> </table> <h3>Value</h3> <p>The input <code>cross</code> object, but with the marker order on the specified chromosome updated, and with any derived data removed (except for recombination fractions, if present, which are not removed); the genetic map for the relevant chromosome is re-estimated. </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="flip.order.html">flip.order</a></code>, <code><a href="ripple.html">ripple</a></code>, <code><a href="clean.cross.html">clean.cross</a></code> </p> <h3>Examples</h3> <pre> data(fake.f2) fake.f2 <- switch.order(fake.f2, 1, c(1,3,2,4:7)) </pre> <hr /><div style="text-align: center;">[Package <em>qtl</em> version 1.66 <a href="00Index.html">Index</a>]</div> </body></html>