Learn R Programming

BioMedR (version 1.2.1)

checkDNA: Check if the DNA sequence are in the 4 default types

Description

Check if the DNA sequence are in the 4 default types

Usage

checkDNA(x)

Arguments

x

A character vector, as the input DNA sequence.

Value

Logical. TRUE if all of the DNA types of the sequence are within the 4 default types.

The result character vector

Details

This function checks if the DNA sequence types are in the 4.

Examples

Run this code
# NOT RUN {
x = 'GACTGAACTGCACTTTGGTTTCATATTATTTGCTC'
checkDNA(x) # TRUE
checkDNA(paste(x, 'Z', sep = '')) # FALSE
# }

Run the code above in your browser using DataLab