replaceAfterStop: Convenience function to remove amino acids following a stop...

View source: R/plotDNA.R

replaceAfterStopR Documentation

Convenience function to remove amino acids following a stop codon

Description

Replace any non X characters following a stop codon (marked as X) with Xs (e.g. LSYXAAA to LSYXXXX). This can be used to frame shift mutations and early terminations

Usage

replaceAfterStop(seqs, stopChars = "X", replaceChar = "X")

Arguments

seqs

a character vector of sequences

stopChars

a vector of single characters that count as stop codons

replaceChar

character to replace with (default: X)

Value

A character vector of sequences with amino acids following a stop replaced

Examples

replaceAfterStop(c('LYSXAAA','LYSRAAA','AXAAA','AAAAX'))

sherrillmix/dnaplotr documentation built on Oct. 29, 2022, 4:42 p.m.