compl_dictionary {XNAString} | R Documentation |
Getter methods enable extraction of single slots from XNAString and XNAStringSet objects. E.g. name method extracts name slot from XNAString/XNAStringSet object.
compl_dictionary(x, ...) ## S4 method for signature 'XNAString' compl_dictionary(x) compl_dictionary(x, ...) <- value ## S4 replacement method for signature 'XNAString' compl_dictionary(x) <- value
x |
XNAString/XNAStringSet object |
... |
optional arguments to generic function to support additional methods |
value |
character vector applied only for setter method |
Setter methods enable overwriting single slots from XNAString and XNAStringSet objects. E.g. name<- method overwrites existing name slot
vector in getter method, XNAStringSet object (with replaced name slot) in setter method
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 ) compl_dictionary(obj)