Learn R Programming

onemap (version 0.1-1)

remove.marker: Drop a marker from a linkage group

Description

Removes a genetic marker from a linkage group, i.e., from an object of class extracted.group.

Usage

remove.marker(w, mname = NULL)

Arguments

w
an object of class extracted.group.
mname
a character string indicating the name of the marker to be removed.

Value

  • Returns an object of class extracted.group, which is a list containing the following components:
  • marnamesnames of markers present in linkage group i, according to the original input file.
  • numbernumber of the linkage group, according to the numeration in the object of class group from where the linkage group was extracted.
  • orinamename of the original object of class rf.2pts used to generate the object of class group, i.e., containing the results of two-point analyses.
  • namename of the object of class group from where the linkage group was extracted.

See Also

group, print.group and extract.group

Examples

Run this code
data(example_out)
  twopts <- est.rf.2pts(example_out)
   
  link_gr <- group(twopts)
  LG1 <- extract.group(link_gr, 1) # extracts the first linkage group
  LG1

  LG1 <- remove.marker(LG1,"M1") # linkage group 1 without first marker
  LG1

Run the code above in your browser using DataLab