## Display the list of genomes available at UCSC:
library(rtracklayer)
ucscGenomes()[ , "db"]
## Display the list of tables supported by makeOrganismDbFromUCSC():
supportedUCSCtables()
## Not run:
# ## Retrieving a full transcript dataset for Yeast from UCSC:
# odb1 <- makeOrganismDbFromUCSC(genome="sacCer2", tablename="ensGene")
# ## End(Not run)
## Retrieving an incomplete transcript dataset for Mouse from UCSC
## (only transcripts linked to Entrez Gene ID 22290):
transcript_ids <- c(
"uc009uzf.1",
"uc009uzg.1",
"uc009uzh.1",
"uc009uzi.1",
"uc009uzj.1"
)
odb2 <- makeOrganismDbFromUCSC(genome="mm9", tablename="knownGene",
transcript_ids=transcript_ids)
odb2
Run the code above in your browser using DataLab