Learn R Programming

onemap (version 2.0-1)

add_drop: Add or Drop Markers From a Sequence

Description

Creates a new sequence by adding or dropping markers from a predetermined one. The markers are added in the end of the sequence.

Usage

add.marker(input.seq, mrks)
drop.marker(input.seq, mrks)

Arguments

input.seq
an object of class sequence.
mrks
a vector containing the markers to be added or removed from the sequence.

Value

  • An object of class sequence, which is a list containing the following components:
  • seq.numa vector containing the (ordered) indices of markers in the sequence, according to the input file.
  • seq.phasesa vector with the linkage phases between markers in the sequence, in corresponding positions. -1 means that there are no defined linkage phases.
  • seq.rfa vector with the recombination fractions between markers in the sequence. -1 means that there are no estimated recombination fractions.
  • seq.likelog-likelihood of the corresponding linkage map.
  • data.namename of the object of class outcross with the raw data.
  • twoptname of the object of class rf.2pts with the 2-point analyses.

Examples

Run this code
data(example.out)
twopt <- rf.2pts(example.out)
all.mark <- make.seq(twopt,"all")
groups <- group(all.mark)
(LG1 <- make.seq(groups,1))
(LG.aug<-add.marker(LG1, c(4,7)))
(LG.red<-drop.marker(LG1, c(1,2,3,5,6)))

Run the code above in your browser using DataLab