Learn R Programming

tigger (version 1.1.0)

insertPolymorphisms: Insert polymorphisms into a nucleotide sequence

Description

insertPolymorphisms replaces nucleotides in the desired locations of a provided sequence.

Usage

insertPolymorphisms(sequence, positions, nucleotides)

Value

A sequence with the desired nucleotides in the provided locations.

Arguments

sequence

starting nucletide sequence.

positions

numeric vector of positions which to be changed.

nucleotides

character vector of nucletides to which to change the positions.

Examples

Run this code
insertPolymorphisms("HUGGED", c(1, 6, 2), c("T", "R", "I")) 

Run the code above in your browser using DataLab