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

Description Usage Arguments Details Value Author(s) Examples

View source: R/707-checkDNA.R

Description

Check if the DNA sequence are in the 4 default types

Usage

1

Arguments

x

A character vector, as the input DNA sequence.

Details

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

Value

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

The result character vector

Author(s)

Min-feng Zhu <wind2zhu@163.com>

Examples

1
2
3
x = 'GACTGAACTGCACTTTGGTTTCATATTATTTGCTC'
checkDNA(x) # TRUE
checkDNA(paste(x, 'Z', sep = '')) # FALSE

Example output

OpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed
[1] TRUE
[1] FALSE

BioMedR documentation built on Nov. 17, 2017, 10:08 a.m.