EVOLUTION-MANAGER
Edit File: addmarker.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 a marker to a cross</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 addmarker {qtl}"><tr><td>addmarker {qtl}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Add a marker to a cross</h2> <h3>Description</h3> <p>Add a marker to a cross object. </p> <h3>Usage</h3> <pre> addmarker(cross, genotypes, markername, chr, pos) </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>genotypes</code></td> <td> <p>Vector of numeric genotypes.</p> </td></tr> <tr valign="top"><td><code>markername</code></td> <td> <p>Marker name as character string.</p> </td></tr> <tr valign="top"><td><code>chr</code></td> <td> <p>Chromosome ID as character string.</p> </td></tr> <tr valign="top"><td><code>pos</code></td> <td> <p>Position of marker, as numeric value.</p> </td></tr> </table> <h3>Details</h3> <p>Use this function with caution. It would be best to incorporate new data into a single file to be imported with <code><a href="read.cross.html">read.cross</a></code>. </p> <p>But if you have genotypes on one or two additional markers that you want to add, you might load them with <code><a href="../../utils/html/read.csv.html">read.csv</a></code> and incorporate them with this function. </p> <h3>Value</h3> <p>The input <code>cross</code> object with the single marker added. </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="pull.markers.html">pull.markers</a></code>, <code><a href="drop.markers.html">drop.markers</a></code> </p> <h3>Examples</h3> <pre> data(fake.f2) # genotypes for new marker gi <- pull.geno(fill.geno(fake.f2))[,"D5M197"] # add marker to cross fake.f2 <- addmarker(fake.f2, gi, "D5M197imp", "5", 11) </pre> <hr /><div style="text-align: center;">[Package <em>qtl</em> version 1.66 <a href="00Index.html">Index</a>]</div> </body></html>