dt2Set {XNAString} | R Documentation

## Function which creates XNAstringSet object from table with base, sugar and backbone columns.

### Description

Function which creates XNAstringSet object from table with base, sugar and backbone columns.

### Usage

    dt2Set(
      table,
      col.base = "base",
      col.sugar = "sugar",
      col.backbone = "backbone",
      col.target = "target",
      col.conjugate3 = "conjugate3",
      col.conjugate5 = "conjugate5",
      col.name = "name",
      default_sugar = NA,
      default_backbone = NA,
      compl_dict = complementary_bases
    )

### Arguments

`table` | data.table or data.frame (must incluse base, sugar and backbone columns)
`col.base` | character (name of base column)
`col.sugar` | character (name of sugar column)
`col.backbone` | character (name of backbone column)
`col.target` | character (name of target column)
`col.conjugate3` | character (name of target column). In use only when objects argument is empty.
`col.conjugate5` | character (name of target column). In use only when objects argument is empty.
`col.name` | character (name of target column). In use only when objects argument is empty.
`default_sugar` | character - only one letter. Will be replicated nchar(base) times
`default_backbone` | character - only one letter. Will be replicated nchar(base)-1 times
`compl_dict` | data.table with following columns: "base", "target". By default internal XNAString dictionary is used

### Value

XNAStringSet object

### Examples

    dt <- data.table::data.table(
      base = c("TT", "GG"),
      sugar = c("FF", "FO"),
      backbone = c("S", "S")
    )
    dt2Set(dt)

[Package XNAString version 1.2.2 Index]