readAncoraIntoSQLite: Read Ancora legacy CNE format

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/Ancora.R

Description

Read Ancora legacy CNE format into a SQLite database.

Usage

1
  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

1
2
3
4
5
6
  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)

CNEr documentation built on Nov. 8, 2020, 5:36 p.m.