Description Usage Arguments Details Value Author(s) References Examples
View source: R/viRome_functions.R View source: R/dna.complement.R
Complement (and optionally reverse) a DNA or RNA sequence
1 | dna.complement(x = NULL, reverse = TRUE)
|
x |
A single character string consisting of characters from [AGCTagctNn] |
reverse |
Logical - whether to reverse the result too. Default: TRUE |
This function will complement DNA and RNA sequence according to the rules of DNA complementarity, and optionally reverse the result
A string is returned
Mick Watson (mick.watson@roslin.ed.ac.uk)
http://en.wikipedia.org/wiki/Complementarity_
1 2 3 4 | seq <- "AGCTAGCTAGCT"
dna.complement(seq)
dna.complement(seq, reverse=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.