sparrow

Take command of your set enrichment analyses.

https://github.com/lianos/sparrow

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 (16.4%) to scientific vocabulary

Keywords

bioinformatics gsea

Keywords from Contributors

genomics
Last synced: 10 months ago · JSON representation

Repository

Take command of your set enrichment analyses.

Basic Info
Statistics
  • Stars: 22
  • Watchers: 2
  • Forks: 2
  • Open Issues: 7
  • Releases: 0
Topics
bioinformatics gsea
Created over 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
editor_options: 
  markdown: 
    wrap: 77
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/"
)
```

# sparrow 



[![R build
status](https://github.com/lianos/sparrow/workflows/R-CMD-check/badge.svg)](https://github.com/lianos/sparrow/actions)
![pkgdown](https://github.com/lianos/sparrow/workflows/pkgdown/badge.svg)
[![Project Status:
Active](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![codecov](https://codecov.io/gh/lianos/sparrow/branch/main/graph/badge.svg)](https://codecov.io/gh/lianos/sparrow)



`sparrow` was built to facilitate the use of gene sets in the analysis of
high throughput genomics data (primarily RNA-seq). Analysts can orchestrate
any number of GSEA methods across a specific contrast using the unified
interface provided by the `seas`. A shiny application is provided via the
[sparrow.shiny](https://github.com/lianos/sparrow.shiny) package that enables
the interactive exploration of of GSEA results.

* The `sparrow::seas` function is a wrapper that orchestrates the execution
  of any number of user-specified gene set enrichment analyses (GSEA) over
  a particular experimental contrast of interest. This will create a
  `SparrowResult` object which stores the results of each GSEA method
  internally, allowing for easy query and retrieval.

* `{sparrow}` provides a number of convenience functions to retrieve gene
  sets for different organisms as a
  [`BiocSet`](https://bioconductor.org/packages/BiocSet) from a number of
  popular resources, ie:

  - `getMSigCollection()` to get gene sets from
    [MSigDB](http://software.broadinstitute.org/gsea/msigdb/)
    (using the `{msigdbr}`) package.
  - `getKeggCollection()` to retrieve [KEGG](https://www.genome.jp/kegg/)
    gene sets (using the KEGG query/retrieval functions in `{limma}`).
  - `getPantherCollection()` to retrieve entreis from
    [`PANTHER.db`](http://pantherdb.org)

* A sister [`{sparrow.shiny}`](https://github.com/lianos/sparrow.shiny)
  package provides an `explore` function, which is invoked on
  `SparrowResult` objects returned from a call to `seas()`. The shiny
  application facilitates interactive exploration of these GSEA results.
  This application can also be deployed to a shiny server and can be
  initialized by uploading a serialized `SparrowResult` `*.rds` file.

Full details that outline the use of this software package is provided in the
[package's vignette](https://lianos.github.io/sparrow/articles/sparrow.html),
however a brief description is outlined below.

## Usage

A subset of the RNA-seq data tumor/normal samples in the BRCA indication from
the TCGA are provided in this package. We will use that data to perform a
"camera" and "fry" gene set enrichment analysis of tumor vs normal samples
using the MSigDB hallmark gene set collection with `sparrow::seas()`.

```{r example, message=FALSE, warning=FALSE}
library(sparrow)
library(dplyr)
bsc <- getMSigCollection("H", species = "human", id.type = "entrez")
vm <- exampleExpressionSet(dataset = "tumor-vs-normal", do.voom = TRUE)
mg <- seas(vm, bsc, methods = c("cameraPR", "fry"), 
           design = vm$design, contrast = "tumor")
```

We can view the top "camera" results with the smallest pvalues like so:

```{r}
results(mg, "cameraPR") %>%
  arrange(pval) %>%
  select(name, padj) %>%
  head
```

The shift in expression of the genes within the top gene set can be
visualized with the `iplot` function below. This plot produces interactive
graphics, but rasterized versions are saved for use with this `README` file:

```{r, eval = FALSE}
iplot(mg, 'HALLMARK_MYC_TARGETS_V1', type = "density")
```



```{r, eval = FALSE}
iplot(mg, 'HALLMARK_MYC_TARGETS_V1', type = "gsea")
```



When these plots are rendered in your workspace or an Rmarkdown document, the
user can hover of the genes (dots) to see their name and differential
expression statistics.

For an immersive, interactive way to explore the GSEA results, use the
`sparrow.shiny::explore(mg)` method!

## Installation

This is the development version of the R/bioconductor package `{sparrow}`. It
may contain unstable or untested new features. If you are looking for the
release version of this package please go to its official Bioconductor
landing page and follow the instructions there to install it.

You can install this development version using the `{BiocManager}` CRAN
package:

```{r eval=FALSE}
BiocManager::install("sparrow", version = "devel")
```

Alternatively, you can install it from GitHub using the `{remotes}` package.

```{r eval=FALSE}
remotes::install_github("lianos/sparrow")
```

To install the shiny bits for this package, you can install the
`{sparrow.shiny}` in a similar way as described above.

## Historical Note

This package used to be called
[multiGSEA](https://github.com/lianos/multiGSEA)), but it's name was changed
to avoid conflict with another package by the same name that was submitted to
Bioconductor version 3.12. References to `multiGSEA` in the literature
prior to ~2020 (of which I know of at least one) likely refer to this here
package.

Owner

  • Name: Steve Lianoglou
  • Login: lianos
  • Kind: user
  • Location: San Francisco, CA

Closing the gap between computational- and bench- scientists // #rstats oR bust!

GitHub Events

Total
  • Watch event: 1
  • Push event: 261
Last Year
  • Watch event: 1
  • Push event: 261

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 574
  • Total Committers: 9
  • Avg Commits per committer: 63.778
  • Development Distribution Score (DDS): 0.575
Past Year
  • Commits: 7
  • Committers: 2
  • Avg Commits per committer: 3.5
  • Development Distribution Score (DDS): 0.286
Top Committers
Name Email Commits
lianos l****u@d****m 244
lianogls l****s@e****2 237
Steve Lianoglou l****e@g****m 65
Steve Lianoglou s****u@g****m 20
Steve Lianoglou s****u@m****m 2
Nitesh Turaga n****a@g****m 2
gladkia 4****a 2
Thomas Sandmann t****1 1
moores20 m****0@e****2 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 11
  • Total pull requests: 8
  • Average time to close issues: 11 days
  • Average time to close pull requests: 3 days
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.55
  • Average comments per pull request: 0.75
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 1 day
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lianos (7)
  • RussBainer (3)
  • gladkia (1)
Pull Request Authors
  • lianos (5)
  • gladkia (4)
Top Labels
Issue Labels
enhancement (5) bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • bioconductor 14,102 total
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
bioconductor.org: sparrow

Take command of set enrichment analyses through a unified interface

  • Versions: 6
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 14,102 Total
Rankings
Dependent repos count: 0.0%
Stargazers count: 7.7%
Forks count: 18.4%
Dependent packages count: 19.9%
Average: 25.3%
Downloads: 80.7%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 4.0 depends
  • BiocGenerics * imports
  • BiocParallel * imports
  • BiocSet * imports
  • ComplexHeatmap >= 2.0 imports
  • DelayedMatrixStats * imports
  • GSEABase * imports
  • Matrix * imports
  • babelgene >= 21.4 imports
  • checkmate * imports
  • circlize * imports
  • data.table >= 1.10.4 imports
  • edgeR >= 3.18.1 imports
  • ggplot2 >= 2.2.0 imports
  • grDevices * imports
  • graphics * imports
  • irlba * imports
  • limma * imports
  • methods * imports
  • plotly >= 4.9.0 imports
  • stats * imports
  • utils * imports
  • viridis * imports
  • AnnotationDbi * suggests
  • BiasedUrn * suggests
  • Biobase >= 2.24.0 suggests
  • BiocStyle * suggests
  • DESeq2 * suggests
  • GO.db * suggests
  • GSVA * suggests
  • KernSmooth * suggests
  • PANTHER.db >= 1.0.3 suggests
  • R.utils * suggests
  • SummarizedExperiment * suggests
  • dplyr * suggests
  • dtplyr * suggests
  • fgsea * suggests
  • goseq * suggests
  • hexbin * suggests
  • knitr * suggests
  • magrittr * suggests
  • matrixStats * suggests
  • msigdbr >= 7.4.1 suggests
  • reactome.db * suggests
  • rmarkdown * suggests
  • statmod * suggests
  • stringr * suggests
  • testthat * suggests
  • webshot * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/build-devel-image.yaml actions
  • actions/checkout master composite
  • elgohr/Publish-Docker-Github-Action v5 composite
.github/workflows/build-release-image.yaml actions
  • actions/checkout master composite
  • elgohr/Publish-Docker-Github-Action v5 composite
.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
docker/devel/Dockerfile docker
  • bioconductor/bioconductor_docker devel build
docker/release/Dockerfile docker
  • bioconductor/bioconductor_docker RELEASE_3_14 build