refdb_filter_seq_stopcodon: Filter sequences based on their number of of stop codons.

View source: R/refdb_filter.R

refdb_filter_seq_stopcodonR Documentation

Filter sequences based on their number of of stop codons.

Description

Filter sequences based on their number of of stop codons.

Usage

refdb_filter_seq_stopcodon(x, max_stop = 0, code, codon_frame = NA)

Arguments

x

a reference database.

max_stop

maximum number of stop codons.

code

an integer indicating the genetic code to use for translation (see genetic-codes).

codon_frame

an integer giving the nucleotide position where to start translation. If NA (the default), the three different frames are tested and the frame producing the lowest number of stop codons will be used.

Value

A tibble (filtered reference database).

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
refdb_filter_seq_stopcodon(lib, code = 5)


refdb documentation built on Sept. 22, 2022, 5:07 p.m.