Learn R Programming

metaseqR (version 1.12.2)

get.ucsc.query: Return queries for the UCSC Genome Browser database, according to organism and source

Description

Returns an SQL query to be used with a connection to the UCSC Genome Browser database and fetch metaseqR supported organism annotations. This query is constructed based on the data source and data type to be returned.

Usage

get.ucsc.query(org, type, refdb="ucsc")

Arguments

org
one of metaseqR supported organisms.
type
either "gene" or "exon".
refdb
one of "ucsc" or "refseq" to use the UCSC or RefSeq annotation sources respectively.

Value

  • A valid SQL query.

Examples

Run this code
db.query <- get.ucsc.query("hg18","gene","ucsc")

Run the code above in your browser using DataLab