Skip to content

mfansler/txcutr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

txcutr

R build status codecov Anaconda-Server Badge

Overview

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.

Installation instructions

Bioconductor

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")

or the development version with:

# The following initializes usage of Bioc devel
BiocManager::install(version='devel')

BiocManager::install("txcutr")

Conda

Users managing R environments with Conda can install the package with:

Conda

conda install -c conda-forge -c bioconda bioconductor-txcutr

We strongly encourage users to create dedicated R environments. Do not install this in your base environment!

Example

A typical workflow for txcutr involves

  • loading an existing annotation as TxDb object
  • truncating the annotation
  • exporting the truncated annotation (GTF)
  • exporting supporting files (FASTA, merge TSV)
library(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")

Citation

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)
#> To cite package 'txcutr' in publications use:
#> 
#>   Fansler M (2025). _txcutr: Transcriptome CUTteR_. R package version
#>   1.15.2, <https://github.com/mfansler/txcutr>.
#> 
#> A BibTeX entry for LaTeX users is
#> 
#>   @Manual{,
#>     title = {txcutr: Transcriptome CUTteR},
#>     author = {Mervin Fansler},
#>     year = {2025},
#>     note = {R package version 1.15.2},
#>     url = {https://github.com/mfansler/txcutr},
#>   }

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.

Code of Conduct

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.

Development tools

For more details, check the dev directory.

This package was developed using biocthis.

About

R methods for generating truncated transcript annotations

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages