recombineTwoSequences {ModCon} | R Documentation

## Generate new sequence from recombination of two sequences

### Description

This function generates a new sequences through recombination of two parental sequences using 3 modi of recombination. Either random combination of codons, crossover recombination or insertion.

### Usage

    recombineTwoSequences(ntSequence1, ntSequence2, preferenceVector)

### Arguments

`ntSequence1` | Character value of a nucleotide sequence
`ntSequence2` | Character value of a nucleotide sequence
`preferenceVector` | Numeric vector of length three which indicates which modus of recombination should be prefered. The first number states the chance of random recombination, the second number indicates the chance of cross-over recombination and the third number indicates the chance of insertion recombination.

### Value

Character value of a nucleotide sequence, generated by recombination from the entered `ntSequence1` and `ntSequence2`. Modes of recombination are cross-over, insertion and random and mode preferences can be stated by `preferenceVector`.

### Examples

    recombineTwoSequences("AGGGCCTGGAGGAGGCTT","TAAGGCAAGCCTGGACCC",c(1,3,2))

[Package ModCon version 1.2.0 Index]