Description Usage Arguments Value Author(s) Examples
View source: R/get_dna_objects.R
Retrieve genomic elements from regulonDB
1 2 3 4 5 6 | get_dna_objects(
regulondb,
genome = "eschColi_K12",
grange = GRanges("chr", IRanges(1, 5000)),
elements = "gene"
)
|
regulondb |
A |
genome |
A valid UCSC genome name. |
grange |
A |
elements |
A character vector specifying which annotation elements to
plot. It can be any from: |
GenomicRanges::GRanges-class()
object with the elements found.
Joselyn Chavez
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 | ## Connect to the RegulonDB database if necessary
if (!exists("regulondb_conn")) {
regulondb_conn <- connect_database()
}
## Build the regulondb object
e_coli_regulondb <-
regulondb(
database_conn = regulondb_conn,
organism = "chr",
database_version = "1",
genome_version = "1"
)
## Get all genes from E. coli
get_dna_objects(e_coli_regulondb)
## Get genes providing Genomic Ranges
grange <- GenomicRanges::GRanges(
"chr",
IRanges::IRanges(5000, 10000)
)
get_dna_objects(e_coli_regulondb, grange)
## Get aditional elements within genomic positions
get_dna_objects(e_coli_regulondb,
grange,
elements = c("gene", "promoter")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.