Last chance! 50% off unlimited learning
Sale ends in
The makeTxDbPackageFromUCSC
function allows the user
to make a TxDb package from transcript annotations
available at the UCSC Genome Browser.
The makeTxDbPackageFromBiomart
function allows the user
to do the same thing as makeTxDbPackageFromUCSC
except that the
annotations originate from biomaRt.
Finally, the makeTxDbPackage
function allows the user to make a
TxDb package directly from a TxDb object.
makeTxDbPackageFromUCSC( version=, maintainer, author, destDir=".", license="Artistic-2.0", genome="hg19", tablename="knownGene", transcript_ids=NULL, circ_seqs=DEFAULT_CIRC_SEQS, url="http://genome.ucsc.edu/cgi-bin/", goldenPath_url="http://hgdownload.cse.ucsc.edu/goldenPath", taxonomyId=NA, miRBaseBuild=NA)
makeFDbPackageFromUCSC( version, maintainer, author, destDir=".", license="Artistic-2.0", genome="hg19", track="tRNAs", tablename="tRNAs", columns = UCSCFeatureDbTableSchema(genome, track, tablename), url="http://genome.ucsc.edu/cgi-bin/", goldenPath_url="http://hgdownload.cse.ucsc.edu/goldenPath", chromCol=NULL, chromStartCol=NULL, chromEndCol=NULL, taxonomyId=NA)
makeTxDbPackageFromBiomart( version, maintainer, author, destDir=".", license="Artistic-2.0", biomart="ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl", transcript_ids=NULL, circ_seqs=DEFAULT_CIRC_SEQS, filter=NULL, id_prefix="ensembl_", host="www.ensembl.org", port=80, taxonomyId=NA, miRBaseBuild=NA)
makeTxDbPackage(txdb, version, maintainer, author, destDir=".", license="Artistic-2.0", pkgname=NULL)
supportedMiRBaseBuildValues()
person
object, or something
coercible to one, like a string. May be omitted if the author
argument is a person
containing someone with the maintainer role.person
object, or something coercible to one, like a
character vector of names. The maintainer
argument will be
merged into this list.listMarts
function from the biomaRt
package. See the details section below for a list of BioMart
databases with compatible transcript annotations."hsapiens_gene_ensembl"
, "mmusculus_gene_ensembl"
,
"dmelanogaster_gene_ensembl"
, "celegans_gene_ensembl"
,
"scerevisiae_gene_ensembl"
, etc in the ensembl database.
See the examples section below for how to discover which datasets
are available in a given BioMart database.ucscGenomes()[ , "db"]
.
For example: "hg18"
.supportedUCSCFeatureDbTracks
to get the list of available
tracks for a particular genomesupportedUCSCtables
utility
function to get the list of supported tables. Note that not all
tables are available for all genomes.filter=as.list(c(source="entrez"))
"ensembl_transcript_id"
whereas others have the same attribute
specified as "transcript_id"
. Defaults to "ensembl_"
.UCSCFeatureDbTableSchema
to retrieve this
information for a particular table.makeTxDbFromUCSC
, makeTxDbFromUCSC
or
makeTxDb
supportedMiRBaseBuildValues
. By default,
this value will be set to NA
, which will inactivate the
microRNAs
accessor.makeTxDbPackageFromUCSC
is a convenience function that calls
both the makeTxDbFromUCSC
and the
makeTxDbPackage
functions. The
makeTxDbPackageFromBiomart
follows a similar pattern and
calls the makeTxDbFromBiomart
and
makeTxDbPackage
functions.
supportedMiRBaseBuildValues
is a convenience function that will
list all the possible values for the miRBaseBuild argument.
makeTxDbFromUCSC
,
makeTxDbFromBiomart
,
makeTxDb
,
ucscGenomes
,
DEFAULT_CIRC_SEQS
## First consider relevant helper/discovery functions:
## Display the list of tables supported by makeTxDbPackageFromUCSC():
supportedUCSCtables()
## Can also list all the possible values for the miRBaseBuild argument:
supportedMiRBaseBuildValues()
## Next are examples of actually building a package:
## Not run:
# ## Makes a transcript package for Yeast from the ensGene table at UCSC:
# makeTxDbPackageFromUCSC(version="0.01",
# maintainer="Some One <so@someplace.org>",
# author="Some One <so@someplace.com>",
# genome="sacCer2",
# tablename="ensGene")
#
# ## Makes a transcript package from Human by using biomaRt and limited to a
# ## small subset of the transcripts.
# transcript_ids <- c(
# "ENST00000400839",
# "ENST00000400840",
# "ENST00000478783",
# "ENST00000435657",
# "ENST00000268655",
# "ENST00000313243",
# "ENST00000341724")
#
# makeTxDbPackageFromBiomart(version="0.01",
# maintainer="Some One <so@someplace.org>",
# author="Some One <so@someplace.com>",
# transcript_ids=transcript_ids)
#
# ## End(Not run)
Run the code above in your browser using DataLab