Description Usage Arguments Value Author(s) Examples
Query the SQLite database based on chromosome,
coordinates and some other criteria.
Primarily not intended to be used directly.
For the CNE density plot, fetchCNEDensity
function should be used.
1 2 3 |
dbName |
A object of |
tableName |
A object of |
chr |
|
start, end |
|
whichAssembly |
|
minLength |
|
tAssemblyFn,qAssemblyFn |
|
An object of GRangePairs
is returned.
Ge Tan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | dbName <- file.path(system.file("extdata", package="CNEr"),
"danRer10CNE.sqlite")
tableName <- "danRer10_hg38_45_50"
qAssemblyFn <- file.path(system.file("extdata",
package="BSgenome.Hsapiens.UCSC.hg38"),
"single_sequences.2bit")
tAssemblyFn <- file.path(system.file("extdata",
package="BSgenome.Drerio.UCSC.danRer10"),
"single_sequences.2bit")
## single chr, start, end
chr <- "chr6"
start <- 24000000L
end <- 27000000
minLength <- 50L
fetchedCNERanges <- readCNERangesFromSQLite(dbName, tableName, chr,
start, end,
whichAssembly="first",
minLength=minLength,
tAssemblyFn=tAssemblyFn,
qAssemblyFn=qAssemblyFn)
## multiple chr, start, end
chr=c("chr1", "chr3")
start=c(90730248, 137523122)
end=c(90730300, 137523190)
fetchedCNERanges <- readCNERangesFromSQLite(dbName, tableName, chr,
start, end,
whichAssembly="second",
minLength=minLength)
## chr, NULL, NULL
fetchedCNERanges <- readCNERangesFromSQLite(dbName, tableName, chr,
start=NULL, end=NULL,
whichAssembly="second",
minLength=minLength)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.