dna.complement: Complement (and reverse) DNA sequence

Description Usage Arguments Details Value Author(s) References Examples

View source: R/viRome_functions.R View source: R/dna.complement.R

Description

Complement (and optionally reverse) a DNA or RNA sequence

Usage

1
dna.complement(x = NULL, reverse = TRUE)

Arguments

x

A single character string consisting of characters from [AGCTagctNn]

reverse

Logical - whether to reverse the result too. Default: TRUE

Details

This function will complement DNA and RNA sequence according to the rules of DNA complementarity, and optionally reverse the result

Value

A string is returned

Author(s)

Mick Watson (mick.watson@roslin.ed.ac.uk)

References

http://en.wikipedia.org/wiki/Complementarity_

Examples

1
2
3
4
	seq <- "AGCTAGCTAGCT"
	dna.complement(seq)
	dna.complement(seq, reverse=FALSE)
	

mw55309/viRome_legacy documentation built on Dec. 21, 2021, 11:05 p.m.