ReducedExperiment
Containers and tools for dimensionally-reduced -omics data
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.4%) to scientific vocabulary
Keywords
bioconductor-package
bioinformatics
dimensionality-reduction
Last synced: 6 months ago
·
JSON representation
Repository
Containers and tools for dimensionally-reduced -omics data
Basic Info
- Host: GitHub
- Owner: jackgisby
- License: gpl-3.0
- Language: R
- Default Branch: devel
- Homepage: https://bioconductor.org/packages/release/bioc/html/ReducedExperiment.html
- Size: 22.7 MB
Statistics
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
- Releases: 0
Topics
bioconductor-package
bioinformatics
dimensionality-reduction
Created over 2 years ago
· Last pushed 9 months ago
Metadata Files
Readme
Changelog
Contributing
License
Support
README.Rmd
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# ReducedExperiment
[](https://github.com/jackgisby/ReducedExperiment/actions/workflows/build-test-deploy.yml)
[](https://codecov.io/gh/jackgisby/ReducedExperiment)
[](https://github.com/jackgisby/ReducedExperiment/issues)
[](https://github.com/jackgisby/ReducedExperiment/pulls)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
ReducedExperiment provides containers for storing and
manipulating dimensionally-reduced assay data. The ReducedExperiment
classes allow users to simultaneously manipulate their original dataset
and their decomposed data, in addition to other method-specific outputs
like pathway analysis. Implements utilities and specialised classes for the
application of stabilised independent component analysis (sICA) and
weighted gene correlation network analysis (WGCNA).
## Installation
Get the latest stable `R` release from [CRAN](http://cran.r-project.org/).
Then install `ReducedExperiment` from
[Bioconductor](https://bioconductor.org/packages/release/bioc/html/ReducedExperiment.html)
using the following code:
```{r install, eval = FALSE}
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("ReducedExperiment")
```
Alternatively, the development version of `ReducedExperiment` is available from
[Bioconductor](https://bioconductor.org/packages/devel/bioc/html/ReducedExperiment.html)
or [GitHub](https://github.com/jackgisby/ReducedExperiment) with:
```{r install_dev, eval = FALSE}
BiocManager::install("ReducedExperiment", version = "devel")
devtools::install_github("jackgisby/ReducedExperiment")
```
The development version of the package is also available as a container on [DockerHub](https://hub.docker.com/repository/docker/jackgisby/reducedexperiment/).
## Usage
`ReducedExperiment` objects are derived from `SummarizedExperiment` objects, with
additional slots designed to store and manipulate the outputs of common
dimensionality reduction techniques.
As an example, the `SummarizedExperiment` described below contains gene
expression data from individuals with COVID-19. It contains the following slots:
* `assays` - A features by samples matrix containing the expression data.
* `colData` - Contains a row for each sample containing phenotype data.
* `rowData` - Contains a row for each feature containing gene IDs.
The `SummarizedExperiment` objects are convenient
because, when we slice the rows or columns of the expression matrix, the
metadata for the rows and columns are sliced accordingly.
```{r show_se, eval=requireNamespace('SummarizedExperiment'), message=FALSE, warning=FALSE}
library("SummarizedExperiment")
se <- readRDS(system.file(
"extdata",
"wave1.rds",
package = "ReducedExperiment"
))
se
```
The `SummarizedExperiment` has two dimensions, representing the features (2,184)
and samples (234).
We can perform a factor analysis on these data, the result of which is a set
of reduced components and feature loadings.
```{r estimateFactors, eval=requireNamespace('ReducedExperiment'), message=FALSE, warning=FALSE}
library("ReducedExperiment")
fe <- estimateFactors(se, nc = 35)
fe
```
This `FactorisedExperiment` object has an additional dimension representing the
35 factors. It also has additional slots, including:
* `reduced` - A samples by factors matrix containing the dimensionally-reduced
data.
* `loadings` - Contains a features by factors matrix containing the loadings.
The `ReducedExperiment` objects allow users to simultaneously slice and modify the
`assays`, `rowData`, `colData`, `reduced` and `loadings` matrices. Here, we
provided a `SummarizedExperiment` object to `estimateFactors`, but we could
just have easily provided a simple expression matrix.
Alternatively, you may have already applied dimensionality reduction to your
data and simply wish to package it into a `ReducedExperiment` container. For
instance, below we apply principal components analysis, and construct a
`FactorisedExperiment` object from the results.
```{r fe_from_prcomp, eval=requireNamespace('ReducedExperiment'), message=FALSE, warning=FALSE}
prcomp_res <- stats::prcomp(t(assay(se)), center = TRUE, scale. = TRUE)
fe_prcomp <- FactorisedExperiment(
se,
reduced = prcomp_res$x,
loadings = prcomp_res$rotation,
stability = prcomp_res$sdev,
center = prcomp_res$center,
scale = prcomp_res$scale
)
fe_prcomp
```
## Functionality
The package currently provides three types of container:
* `ReducedExperiment` - A basic container that can store dimensionally-reduced
components.
* `FactorisedExperiment` - A container based on `ReducedExperiment` designed for
working with the results of factor analysis. It can contain feature loadings
and factor stability values.
* `ModularExperiment` - A container based on `ReducedExperiment` designed for
working with modules of features (usually genes), as is produced by the
popular Weighted Gene Correlation Network Analysis (WGCNA) approach. It
contains the mapping of features to modules
Various tools are provided by the package for applying dimensionality reduction
and manipulating their results. These include:
* Workflows for applying independent component analysis (ICA) and
WGCNA. We additionally developed an R implementation of the stabilised ICA
algorithm.
* Methods for applying pathway enrichment analysis to factors and modules.
* Functions for identifying associations between factors/modules and
sample-level variables.
* Methods for applying identified factors or modules to new datasets.
* Other approach-specific plots and utilities, such as factor stability plots
and module preservation plots.
Many of these are demonstrated in more detail in the [package's vignette](https://jackgisby.github.io/ReducedExperiment/articles/ReducedExperiment.html).
The containers implemented in `ReducedExperiment` are designed to be extensible.
We encourage the development of children classes with additional, or
alternative, slots and methods.
## Citation
Below is the citation output from using `citation('ReducedExperiment')` in R.
```{r 'citation', eval = requireNamespace('ReducedExperiment')}
print(citation("ReducedExperiment"), bibtex = TRUE)
```
The `ReducedExperiment` package relies on many software packages and development
tools. The packages used are listed in the vignette and relevant papers are
cited.
Owner
- Name: Jack Gisby
- Login: jackgisby
- Kind: user
- Location: London
- Company: Imperial College London
- Twitter: jack_gisby
- Repositories: 4
- Profile: https://github.com/jackgisby
PhD candidate applying and developing data science approaches to investigate disease.
GitHub Events
Total
- Watch event: 3
- Delete event: 19
- Push event: 52
- Pull request event: 24
- Fork event: 1
- Create event: 20
Last Year
- Watch event: 3
- Delete event: 19
- Push event: 52
- Pull request event: 24
- Fork event: 1
- Create event: 20
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 11
- Average time to close issues: N/A
- Average time to close pull requests: 4 minutes
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 11
- Average time to close issues: N/A
- Average time to close pull requests: 4 minutes
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- jackgisby (30)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- bioconductor 1,744 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
bioconductor.org: ReducedExperiment
Containers and tools for dimensionally-reduced -omics representations
- Homepage: https://github.com/jackgisby/ReducedExperiment
- Documentation: https://bioconductor.org/packages/release/bioc/vignettes/ReducedExperiment/inst/doc/ReducedExperiment.pdf
- License: GPL (>= 3)
-
Latest release: 1.0.2
published 8 months ago
Rankings
Dependent repos count: 0.0%
Dependent packages count: 30.3%
Average: 40.7%
Downloads: 91.8%
Maintainers (1)
Last synced:
6 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 4.1.0 depends
- SummarizedExperiment * depends
- methods * depends
- BiocParallel * imports
- MASS * imports
- RColorBrewer * imports
- WGCNA * imports
- biomaRt * imports
- car * imports
- clusterProfiler * imports
- ggplot2 * imports
- grDevices * imports
- ica * imports
- lme4 * imports
- lmerTest * imports
- moments * imports
- msigdbr * imports
- patchwork * imports
- pheatmap * imports
- stats * imports
- BiocCheck * suggests
- BiocStyle * suggests
- airway * suggests
- biocViews * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests