mimir2XnaDict {XNAString} | R Documentation

## Reformat mimir table to XNA dictionary standards

### Description

Reformat mimir table to XNA dictionary standards

### Usage

    mimir2XnaDict(table, base.col, sugar.col, backbone.col)

### Arguments

`table` | data.table or data.frame (must incluse "HELM", "TS_BASE_SEQ", "TS_SUGAR_SEQ" and "TS_BACKBONE_SEQ" columns)
`base.col` | character (base column name)
`sugar.col` | character (sugar column name)
`backbone.col` | character (backbone column name)

### Value

data.table (written in the xna_dictionary format)

### Examples

    dt <- data.table::data.table(HELM = c("([PPG])", "[fR]", "[srP]"),
                     TS_BASE_SEQ = c("F", NA, NA),
                     TS_SUGAR_SEQ = c(NA, NA, 'F'),
                     TS_BACKBONE_SEQ = c(NA, 'S', NA))
    mimir2XnaDict(dt, 'TS_BASE_SEQ', 'TS_SUGAR_SEQ', 'TS_BACKBONE_SEQ')

[Package XNAString version 1.2.2 Index]