seqgendiff

Sequence Generation for Differential Expression Analysis and Beyond

https://github.com/dcgerard/seqgendiff

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (21.2%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Sequence Generation for Differential Expression Analysis and Beyond

Basic Info
Statistics
  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • Open Issues: 3
  • Releases: 4
Created over 9 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Code of conduct

README.Rmd

---
output: github_document
---



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

# RNA-Seq Generation/Modification for Simulation


[![R-CMD-check](https://github.com/dcgerard/seqgendiff/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dcgerard/seqgendiff/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/dcgerard/seqgendiff/branch/master/graph/badge.svg)](https://app.codecov.io/gh/dcgerard/seqgendiff?branch=master)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![CRAN status](https://www.r-pkg.org/badges/version/seqgendiff)](https://cran.r-project.org/package=seqgendiff)
[![](https://cranlogs.r-pkg.org/badges/grand-total/seqgendiff)](https://cran.r-project.org/package=seqgendiff)


This package will take real RNA-seq data (either single-cell or bulk) and alter it by adding signal to it. This signal is in the form of a generalized linear model with a log (base-2) link function under a Poisson / negative binomial / mixture of negative binomials distribution. The advantage of this way of simulating data is that you can see how your method behaves when the simulated data exhibit common (and annoying) features of real data. This is without you having to specify these features *a priori*. We call the way we add signal "binomial thinning".

The main functions are:

- `select_counts()`: Subsample the columns and rows of a real RNA-seq count 
  matrix. You would then feed this sub-matrix into one of the thinning 
  functions below.
- `thin_diff()`: The function most users should be using for general-purpose 
  binomial thinning. For the special applications of the two-group model or 
  library/gene thinning, see the functions listed below.
- `thin_2group()`: The specific application of thinning in the two-group model.
- `thin_lib()`: The specific application of library size thinning.
- `thin_gene()`: The specific application of total gene expression thinning.
- `thin_all()`: The specific application of thinning all counts.
- `effective_cor()`: Returns an estimate of the actual correlation between 
  the surrogate variables and a user-specified design matrix.
- `ThinDataToSummarizedExperiment()`: Converts a `ThinData` object to a 
  `SummarizedExperiment()` object.
- `ThinDataToDESeqDataSet()`: Converts a `ThinData` object to a `DESeqDataSet`
  object.

If you find a bug or want a new feature, please submit an 
[issue](https://github.com/dcgerard/seqgendiff/issues).

Check out [NEWS](NEWS.md) for updates.

# Installation
To install from CRAN, run the following code in R:
```{r, eval=FALSE}
install.packages("seqgendiff")
```

To install the latest version of seqgendiff, run the following code in R:
```{r, eval = FALSE}
install.packages("devtools")
devtools::install_github("dcgerard/seqgendiff")
```

To get started, check out the vignettes by running the following in R:
```{r, eval=FALSE}
library(seqgendiff)
browseVignettes(package = "seqgendiff")
```
Or you can check out the vignettes I post online: .

# Citation

If you use this package, please cite:

> Gerard, D (2020). "Data-based RNA-seq simulations by binomial thinning." _BMC Bioinformatics_. 21(1), 206. doi: [10.1186/s12859-020-3450-9](https://doi.org/10.1186/s12859-020-3450-9).

A BibTeX entry for LaTeX users is
```{tex, eval = FALSE}
@article{gerard2020data,
	author = {Gerard, David},
	title = {Data-based {RNA}-seq simulations by binomial thinning},
	year = {2020},
	volume={21},
	number={1},
	pages={206},
	doi = {10.1186/s12859-020-3450-9},
	publisher = {BioMed Central Ltd},
	journal = {BMC Bioinformatics}
}
```

# Code of Conduct

Please note that the 'seqgendiff' project is released with a 
[Contributor Code of Conduct](https://github.com/dcgerard/seqgendiff/blob/master/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.


Owner

  • Name: David Gerard
  • Login: dcgerard
  • Kind: user
  • Company: American University

Statistician interested in multivariate analysis, hierarchical/empirical Bayesian modeling, and biological applications.

GitHub Events

Total
  • Issues event: 1
  • Watch event: 1
Last Year
  • Issues event: 1
  • Watch event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 92
  • Total Committers: 1
  • Avg Commits per committer: 92.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
David Gerard g****7@g****m 92

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 3
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 25 minutes
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dcgerard (1)
  • Chuang1118 (1)
  • rafalcode (1)
Pull Request Authors
  • dcgerard (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 247 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: seqgendiff

RNA-Seq Generation/Modification for Simulation

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 247 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.6%
Forks count: 17.0%
Stargazers count: 18.3%
Dependent repos count: 23.9%
Average: 24.4%
Dependent packages count: 28.7%
Downloads: 57.8%
Maintainers (1)
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • assertthat * imports
  • cate * imports
  • clue * imports
  • irlba * imports
  • matchingR * imports
  • pdist * imports
  • sva * imports
  • DESeq2 * suggests
  • SummarizedExperiment * suggests
  • airway * suggests
  • covr * suggests
  • edgeR * suggests
  • knitr * suggests
  • limma * suggests
  • qvalue * suggests
  • rmarkdown * suggests
  • testthat >= 2.1.0 suggests