find_stop_codon: Find the first in-frame stop codon

Description Usage Arguments Value Examples

Description

This function will return the index in a vector of nucleotides of the first stop codon. nt_sequence is assumed to be in-frame.

Usage

1
find_stop_codon(nt_sequence)

Arguments

nt_sequence

A vector of nucleotides, i.e. c("A","T","G","A", ...) in which the first codon is the start codon.

Value

Index of the first in-frame stop codon (or NA if not found).

Examples

1
2
3
find_stop_codon(
c("A", "A", "T", "G", "C", "A", "A", "T", "C", "A", "T", "A", "G", "A")
)

zcolburn/evolution documentation built on May 19, 2019, 1:48 a.m.