addmarker | R Documentation |
Add a marker to a cross object.
addmarker(cross, genotypes, markername, chr, pos)
cross |
An object of class |
genotypes |
Vector of numeric genotypes. |
markername |
Marker name as character string. |
chr |
Chromosome ID as character string. |
pos |
Position of marker, as numeric value. |
Use this function with caution. It would be best to incorporate new
data into a single file to be imported with read.cross
.
But if you have genotypes on one or two additional markers that you
want to add, you might load them with read.csv
and incorporate them with this function.
The input cross
object with the single marker added.
Karl W Broman, broman@wisc.edu
pull.markers
, drop.markers
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.