mutateSequence: mutateSequence

Description Usage Arguments Value Examples

Description

Given a protein sequence, create a mutated copy of the sequence at the desired position and amino acids.

Usage

1
mutateSequence(sequence, pos, wtAA, mutAA)

Arguments

sequence

Character string of amino acids

pos

The amino acid number (positive integer) at which a mutation should be created

wtAA

One letter code of the Wild-type amino-acid (to double check if the desired mutation matches the actual coordinates of the wild-type sequence)

mutAA

One letter code of the mutant amino acid

Value

A character string where wtAA is replaced with mutAA if the amino-acid at the given position of the given sequence actually has the same amino acid.

Examples

1
2
s <- 'AAAAA'
mutateSequence(s, 3, 'A', 'R')

BIMSBbioinfo/slimR documentation built on Nov. 4, 2021, 6:48 a.m.