This function returns TRUE for objects of class bioseq_dna

is_dna(x)

Arguments

x

An object.

Value

Logical.

Examples

x <- c("AGGTGC", "TTCGA")
is_dna(x)
#> [1] FALSE
y <- dna(x)
is_dna(y)
#> [1] TRUE