is.nucleotide: Is a sequence made of nucleotides?

View source: R/is.nucleotide.R

is.nucleotideR Documentation

Is a sequence made of nucleotides?

Description

Is a sequence made of nucleotides?

Usage

is.nucleotide(x)

Arguments

x

a character vector to test

Value

a logical, saying if the character is only mad of nucleotide-typic characters (capital and non-capital A, T, G, C, U, N). NB: it does not support other characters, like W or whatnot.

Examples


is.nucleotide("ATTGCATA")
is.nucleotide("aTTgNGnt")
is.nucleotide("boyscout")


g-antonello/gautils2 documentation built on Nov. 28, 2022, 9:39 a.m.