Learn R Programming

rDNAse (version 1.1-1)

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

Description

Check if the DNA sequence are in the 4 default types

Usage

dnacheck(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
x = 'GACTGAACTGCACTTTGGTTTCATATTATTTGCTC'
dnacheck(x) # TRUE
dnacheck(paste(x, 'Z', sep = '')) # FALSE

Run the code above in your browser using DataLab