knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Various mRNA sequencing library preparation methods generate sequencing reads
from the transcript ends. Quantification of isoform usage can be improved by
using truncated versions of transcriptome annotations when assigning such reads
to isoforms. The txcutr
package implements some convenience methods for
readily generating such truncated annotations and their corresponding sequences.
Get the latest stable R
release from CRAN. Then install txcutr
using from Bioconductor the following code:
if (!requireNamespace("BiocManager", quietly = TRUE)) { install.packages("BiocManager") } BiocManager::install("txcutr")
And the development version from GitHub with:
BiocManager::install("mfansler/txcutr")
Users managing R environments with Conda/Mamba can install the package with:
Conda
conda install -c conda-forge -c bioconda merv::r-txcutr
Mamba
mamba install -c conda-forge -c bioconda merv::r-txcutr
We strongly encourage users to create dedicated R environments. Do not install this in your base environment!
A typical workflow for txcutr
involves
TxDb
objectlibrary(rtracklayer) library(txcutr) library(BSgenome.Hsapiens.UCSC.hg38) ## load human genome hg38 <- BSgenome.Hsapiens.UCSC.hg38 ## load human GENCODE annotation txdb <- makeTxDbFromGFF("gencode.v38.annotaton.gtf.gz", organism="Homo sapiens") ## truncate to maximum of 500 nts txdb_w500 <- truncateTxome(txdb, maxTxLength=500) ## export annotation exportGTF(txdb_w500, file="gencode.v38.txcutr_w500.gtf.gz") ## export FASTA exportFASTA(txdb_w500, genome=hg38, file="gencode.v38.txcutr_w500.fa.gz") ## export merge-table exportMergeTable(txdb_w500, minDistance=200, file="gencode.v38.txcutr_w500.merge.tsv.gz")
Below is the citation output from using citation('txcutr')
in R. Please
run this yourself to check for any updates on how to cite txcutr.
print(citation('txcutr'), bibtex = TRUE)
Please note that the txcutr
was only made possible thanks to many other R and bioinformatics software authors, which are cited either in the vignettes and/or the paper(s) describing this package.
Please note that the txcutr
project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
r BiocStyle::CRANpkg('usethis')
, r BiocStyle::CRANpkg('remotes')
, and r BiocStyle::CRANpkg('rcmdcheck')
customized to use Bioconductor's docker containers and r BiocStyle::Biocpkg('BiocCheck')
.r BiocStyle::CRANpkg('covr')
.r BiocStyle::CRANpkg('pkgdown')
.r BiocStyle::CRANpkg('styler')
.r BiocStyle::CRANpkg('devtools')
and r BiocStyle::CRANpkg('roxygen2')
.For more details, check the dev
directory.
This package was developed using r BiocStyle::Biocpkg('biocthis')
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.