nanny for tidy high-level data
analysis and manipulation
tidygate for adding custom
gate information to your tibble
tidyHeatmap for heatmaps
produced with tidy principles
Introduction
tidySummarizedExperiment provides a bridge between Bioconductor
SummarizedExperiment
[@morgan2020summarized] and the tidyverse [@wickham2019welcome]. It
creates an invisible layer that enables viewing the Bioconductor
SummarizedExperiment object as a tidyverse tibble, and provides
SummarizedExperiment-compatible dplyr, tidyr, ggplot and plotly
functions. This allows users to get the best of both Bioconductor and
tidyverse worlds.
Functions/utilities available
SummarizedExperiment-compatible Functions
Description
all
After all tidySummarizedExperiment is a SummarizedExperiment object, just better
tidyverse Packages
Description
dplyr
Almost all dplyr APIs like for any tibble
tidyr
Almost all tidyr APIs like for any tibble
ggplot2
ggplot like for any tibble
plotly
plot_ly like for any tibble
Utilities
Description
as_tibble
Convert cell-wise information to a tbl_df
Installation
if (!requireNamespace("BiocManager", quietly=TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("tidySummarizedExperiment")
We could use mutate to create a column. For example, we could create a
new type column that contains single and paired instead of single_end
and paired_end.
tidySummarizedExperiment - part of tidytranscriptomics
Brings SummarizedExperiment to the tidyverse!
website: stemangiola.github.io/tidySummarizedExperiment/
Another nice introduction by carpentries-incubator.
Please also have a look at
Introduction
tidySummarizedExperiment provides a bridge between Bioconductor SummarizedExperiment [@morgan2020summarized] and the tidyverse [@wickham2019welcome]. It creates an invisible layer that enables viewing the Bioconductor SummarizedExperiment object as a tidyverse tibble, and provides SummarizedExperiment-compatible dplyr, tidyr, ggplot and plotly functions. This allows users to get the best of both Bioconductor and tidyverse worlds.
Functions/utilities available
alltidySummarizedExperimentis a SummarizedExperiment object, just betterdplyrdplyrAPIs like for any tibbletidyrtidyrAPIs like for any tibbleggplot2ggplotlike for any tibbleplotlyplot_lylike for any tibbleas_tibbletbl_dfInstallation
From Github (development)
Load libraries used in the examples.
Create
tidySummarizedExperiment, the best of both worlds!This is a SummarizedExperiment object but it is evaluated as a tibble. So it is fully compatible both with SummarizedExperiment and tidyverse APIs.
It looks like a tibble
But it is a SummarizedExperiment object after all
Tidyverse commands
We can use tidyverse commands to explore the tidy SummarizedExperiment object.
We can use
sliceto choose rows by position, for example to choose the first row.We can use
filterto choose rows by criteria.We can use
selectto choose columns.We can use
countto count how many rows we have for each sample.We can use
distinctto see what distinct sample information we have.We could use
renameto rename a column. For example, to modify the type column name.We could use
mutateto create a column. For example, we could create a new type column that contains single and paired instead of single_end and paired_end.We could use
uniteto combine multiple columns into a single column.We can also combine commands with the tidyverse pipe
%>%.For example, we could combine
group_byandsummariseto get the total counts for each sample.We could combine
group_by,mutateandfilterto get the transcripts with mean count > 0.Plotting
We can treat
pasilla_tidyas a normal tibble for plotting.Here we plot the distribution of counts per sample.