Nothing
#######################################################################
## #
## Package: BatchMap #
## #
## File: add.marker.R #
## Contains: add.marker #
## #
## Written by Marcelo Mollinari #
## copyright (c) 2009, Marcelo Mollinari #
## #
## First version: 02/27/2009 #
## Last update: 01/02/2016 #
## License: GNU General Public License version 2 (June, 1991) or later #
## #
#######################################################################
##' Creates a new sequence by adding markers.
##'
##' Creates a new sequence by adding markers from a predetermined
##' one. The markers are added in the end of the sequence.
##'
##' @param input.seq an object of class \code{sequence}.
##'
##' @param mrks a vector containing the markers to be added from the
##' \code{sequence}.
##'
##' @return An object of class \code{sequence}, which is a list
##' containing the following components:
##'
##' \item{seq.num}{a \code{vector} containing the (ordered) indices of
##' markers in the sequence, according to the input file.}
##'
##' \item{seq.phases}{a \code{vector} with the linkage phases between
##' markers in the sequence, in corresponding positions. \code{-1}
##' means that there are no defined linkage phases.}
##'
##' \item{seq.rf}{a \code{vector} with the recombination fractions
##' between markers in the sequence. \code{-1} means that there
##' are no estimated recombination fractions.}
##'
##' \item{seq.like}{log-likelihood of the corresponding linkage map.}
##' \item{data.name}{name of the object of class \code{outcross}
##' with the raw data.}
##'
##' \item{twopt}{name of the object of class \code{rf.2pts} with the
##' 2-point analyses.}
##'
##' @author Marcelo Mollinari, \email{mmollina@@usp.br}
##'
##' @seealso \code{\link[BatchMap]{drop.marker}}
##'
##' @examples
##' 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)))
##'
##' @export
add.marker<-function(input.seq, mrks)
{
if (!any(class(input.seq) == "sequence"))
stop(sQuote(deparse(substitute(input.seq))), " is not an object of class 'sequence'")
seq.num<-c(input.seq$seq.num,mrks)
return(make.seq(get(input.seq$twopt),seq.num, twopt=input.seq$twopt))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.