knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
satuRn is a highly performant and scalable method for performing differential transcript usage analyses.
Get the development version of satuRn
from GitHub with:
devtools::install_github("statOmics/satuRn")
The installation should only take a few seconds. The dependencies of the package are listed in the DESCRIPTION file of the package.
Please use https://github.com/statOmics/satuRn/issues to submit issues, bug reports, and comments.
A minimal example of the different functions for modelling
, testing
and visualizing
differential transcript usage is provided. See the online vignette for a more elaborate and reproducible example.
library("satuRn")
Provide a transcript expression matrix and corresponding colData
and rowData
sumExp <- SummarizedExperiment::SummarizedExperiment( assays = list(counts = Tasic_counts_vignette), colData = Tasic_metadata_vignette, rowData = txInfo ) # Specify design formula from colData metadata(sumExp)$formula <- ~ 0 + as.factor(colData(sumExp)$group)
The fitDTU
function is used to model transcript usage in different groups of samples or cells.
sumExp <- satuRn::fitDTU( object = sumExp, formula = ~0 + group, parallel = FALSE, BPPARAM = BiocParallel::bpparam(), verbose = TRUE )
Next we perform differential usage testing using with testDTU
sumExp <- satuRn::testDTU(object = sumExp, contrasts = L, plot = FALSE, sort = FALSE)
Finally, we may visualize the usage of select transcripts
in select groups of interest with plotDTU
group1 <- rownames(colData(sumExp))[colData(sumExp)$group == "VISp.L5_IT_VISp_Hsd11b1_Endou"] group2 <- rownames(colData(sumExp))[colData(sumExp)$group == "ALM.L5_IT_ALM_Tnc"] plots <- satuRn::plotDTU(object = sumExp, contrast = "Contrast1", groups = list(group1, group2), coefficients = list(c(0, 0, 1), c(0, 1, 0)), summaryStat = "model", transcripts = c("ENSMUST00000081554", "ENSMUST00000195963", "ENSMUST00000132062"), genes = NULL, top.n = 6) # Example plot from our publication:
Below is the citation output from using citation('satuRn')
in R. Please
run this yourself to check for any updates on how to cite satuRn.
print(citation("satuRn"), bibtex = TRUE)
Please note that the satuRn
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 satuRn
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::Githubpkg('lcolladotor/biocthis')
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.