txdbmaker
Dependencies & Environment
Package-intrinsic requirements from the Bioconductor landing page — reproduce in any R environment.
- Version: 1.8.0 · Bioconductor: 3.23 · R: ≥ 4.6
- Depends: BiocGenerics, S4Vectors, Seqinfo, GenomicRanges, GenomicFeatures
- Imports: httr, rjson, DBI, RSQLite, IRanges, UCSC.utils, GenomeInfoDb, AnnotationDbi, Biobase, BiocIO, rtracklayer, biomaRt
- Install:
BiocManager::install("txdbmaker")
When to Use
- Creating
TxDbobjects from UCSC Genome Browser transcript tables usingmakeTxDbFromUCSC. - Retrieving and assembling transcript annotations from BioMart datasets using
makeTxDbFromBiomart. - Extracting transcript information directly from GFF3 or GTF files using
makeTxDbFromGFF. - Saving and loading created
TxDbobjects to/from SQLite database files usingsaveDbandloadDbto avoid repeated download times. - Wrapping a generated database directly into an installable annotation package using
makeTxDbPackageFromUCSCormakeTxDbPackageFromBiomart.
When NOT to Use
- For extracting features (like transcripts, exons, and CDS) from an already created
TxDbobject, useGenomicFeaturesinstead, which implements the flexible extraction methods. - For creating
TxDbobjects from unsupported BioMart datasets (not all BioMart datasets are currently supported bymakeTxDbFromBiomart).
Data Requirements
- UCSC: A valid genome build (e.g., "mm9", "hg19") and a supported transcript table (e.g., "knownGene", "refGene").
- BioMart: A supported BioMart dataset name (e.g., "mmusculus_gene_ensembl").
- Files: Local GFF3 or GTF files containing transcript annotations.
Key Parameters
- genome (default): Specifies the genome build (e.g., "mm9") when downloading tables from UCSC.
- tablename (default): Specifies the specific UCSC transcript table to download (e.g., "knownGene").
- dataset (default): Specifies the BioMart dataset to retrieve (e.g., "mmusculus_gene_ensembl").
- circ_seqs (default): A vector specifying which sequences are circular; defaults to the contents of
DEFAULT_CIRC_SEQS. - file (default): The file path used to save or load the SQLite database in
saveDbandloadDb.
Best Practices
- Use the
supportedUCSCtablesutility function to get a list of tables known to work withmakeTxDbFromUCSCfor your specific genome build. - Save your annotation objects using
saveDband label them with an appropriate time stamp to facilitate reproducible research and avoid bandwidth costs. - Use the helper function
getChromInfoFromBiomartto check what the different chromosomes are called for a given BioMart source before building theTxDb.
Common Pitfalls
- Re-downloading and assembling databases from UCSC or BioMart every time a script is run. Fix: Use
saveDbto save the object locally andloadDbto initialize it from the.sqlitefile in future sessions. - Attempting to serialize a
TxDbobject using R's basesavefunction. Fix: UsesaveDbinstead, becauseTxDbobjects are backed by a SQLite database and cannot be serialized normally.
Alternatives
- GenomicFeatures: The companion package where
TxDbobjects are actually implemented and which provides the methods to extract features from them. - AnnotationDbi: For querying standard Bioconductor annotation packages (e.g., OrgDb) rather than building transcript-centric databases.
Citations
- Marc Carlson, Patrick Aboyoun, Hervé Pagès, Seth Falcon and Martin Morgan. Making TxDb Objects. Package txdbmaker.
References
- Homepage: bioconductor.org/packages/txdbmaker
- Vignette: vignette_0_4310e349.txt
Run this on BioMate
This skill is the knowledge layer — when, why, and how to use txdbmaker. To run this analysis on your own data with managed compute, automated QC, and reproducible outputs, use BioMate — free to start.