readAncoraIntoSQLite {CNEr} | R Documentation

## Read Ancora legacy CNE format

### Description

Read Ancora legacy CNE format into a SQLite database.

### Usage

      readAncoraIntoSQLite(cneFns, dbName, overwrite=FALSE)

### Arguments

`cneFns` | `character`(n): filenames of Ancora CNE files.
`dbName` | `character`(1): filename of SQLite database.
`overwrite` | `boolean`(1): whether or not to overwrite the existing table.

### Details

The Ancora legacy CNE file has the filename in the format of "cne2wBf_AstMex102_danRer10_48_50". The first six columns are the coordinates of pairs of CNEs. The start coordinate system is 0-based and is converted into 1-based when it is imported into the SQLite database.

### Value

A `character` vector of table names.

### Note

This function is mainly for internal use in Lenhard group.

### Author(s)

Ge Tan

### See Also

`readAncora`

### Examples

      ancoraCNEsFns <- file.path(system.file("extdata", package="CNEr"),
                                 c("cne2wBf_cypCar1_danRer10_100_100",
                                   "cne2wBf_cteIde1_danRer10_100_100",
                                   "cne2wBf_AstMex102_danRer10_48_50"))
      dbName <- tempfile()
      readAncoraIntoSQLite(ancoraCNEsFns, dbName, overwrite=FALSE)

[Package CNEr version 1.20.0 Index]