EVOLUTION-MANAGER
Edit File: clean.scantwo.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: Clean up scantwo output</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 clean.scantwo {qtl}"><tr><td>clean.scantwo {qtl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Clean up scantwo output</h2> <h3>Description</h3> <p>In an object output from <code><a href="scantwo.html">scantwo</a></code>, replaces negative and missing LOD scores with 0, and replaces LOD scores for pairs of positions that are not separated by <code>n.mar</code> markers, or that are less than <code>distance</code> cM apart, with 0. Further, if the LOD for full model is less than the LOD for the additive model, the additive LOD is pasted over the full LOD. </p> <h3>Usage</h3> <pre> ## S3 method for class 'scantwo' clean(object, n.mar=1, distance=0, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>An object of class <code>scantwo</code>. See <code><a href="scantwo.html">scantwo</a></code> for details.</p> </td></tr> <tr valign="top"><td><code>n.mar</code></td> <td> <p>Pairs of positions not separated by at least this many markers have LOD scores set to 0.</p> </td></tr> <tr valign="top"><td><code>distance</code></td> <td> <p>Pairs of positions not separated by at least this distance have LOD scores set to 0.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Ignored at this point.</p> </td></tr> </table> <h3>Value</h3> <p>The input scantwo object, with any negative or missing LOD scores replaced by 0, and LOD scores for pairs of positions separated by fewer than <code>n.mar</code> markers, or less than <code>distance</code> cM, are set to 0. Also, if the LOD for the full model is less than the LOD for the additive model, the additive LOD is used in place of the full LOD. </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="scantwo.html">scantwo</a></code>, <code><a href="summary.scantwo.html">summary.scantwo</a></code> </p> <h3>Examples</h3> <pre> data(fake.f2) fake.f2 <- calc.genoprob(fake.f2, step=5) out2 <- scantwo(fake.f2, method="hk") out2 <- clean(out2) out2cl2 <- clean(out2, n.mar=2, distance=5) </pre> <hr /><div style="text-align: center;">[Package <em>qtl</em> version 1.66 <a href="00Index.html">Index</a>]</div> </body></html>