| XNAReverseComplement {XNAString} | R Documentation |
Reverse complement sequence based on dictionary
XNAReverseComplement(obj, ...) ## S4 method for signature 'XNAString' XNAReverseComplement(obj)
obj |
XNAString object |
... |
optional arguments to generic function to support additional methods |
string with reverse complement sequence
my_dic <- data.table::data.table(
type = c(
rep("base", 3),
rep("sugar", 2),
rep("backbone", 3)
),
symbol = c("G", "E", "A", "F", "O", "S", "B", "X")
)
obj <- XNAString(
name = "b",
base = "GGE",
sugar = "FFO",
dictionary = my_dic
)
XNAReverseComplement(obj)