is_dna_seq: Determine if the string is a lowercase DNA sequence of at...

View source: R/is_dna_seq.R

is_dna_seqR Documentation

Determine if the string is a lowercase DNA sequence of at least one base pair

Description

Determine if the string is a lowercase DNA sequence of at least one base pair

Usage

is_dna_seq(s)

Arguments

s

the string to be checked

Value

TRUE if the string is a lowercase DNA sequence of at least one base pair

Author(s)

Richèl J.C. Bilderbeek

Examples


# TRUE: valid and lowercase characters
is_dna_seq("acgt")

# FALSE: Must be lowercase
is_dna_seq("AGCT")

# FALSE: Must be only valid characters
is_dna_seq("xxxx")

# FALSE: Must have at least one nucleotide
is_dna_seq("")

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.