readAncoraIntoSQLite: Read Ancora legacy CNE format

View source: R/Ancora.R

readAncoraIntoSQLiteR 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)

ge11232002/CNEr documentation built on Oct. 26, 2022, 7:08 p.m.