Representation and Manipulation of Genomic Tuples in R

Representation and Manipulation of Genomic Tuples in R - Published in JOSS (2016)

https://github.com/petehaitch/genomictuples

Science Score: 95.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
    Found 3 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    3 of 11 committers (27.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords from Contributors

bioconductor-package bioconductor bioinformatics biomarker-discovery biostatistics causal-inference computational-biology targeted-learning motif-analysis motif-enrichment-analysis
Last synced: 6 months ago · JSON representation

Repository

Representation and Manipulation of Genomic Tuples in R

Basic Info
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • Open Issues: 4
  • Releases: 0
Created over 8 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
    collapse = TRUE,
    comment = "#>",
    fig.path = "man/figures/README-",
    out.width = "100%"
)
```

# GenomicTuples


[![BioC status](http://www.bioconductor.org/shields/build/release/bioc/GenomicTuples.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/GenomicTuples)
[![R-CMD-check-bioc](https://github.com/PeteHaitch/GenomicTuples/workflows/R-CMD-check-bioc/badge.svg)](https://github.com/PeteHaitch/GenomicTuples/actions)
[![Codecov test coverage](https://codecov.io/gh/PeteHaitch/GenomicTuples/branch/master/graph/badge.svg)](https://codecov.io/gh/PeteHaitch/GenomicTuples?branch=master)


**GenomicTuples** is an R/Bioconductor package that defines general purpose containers for storing and manipulating *genomic tuples*.
A genomic tuple of size `m` is of the form `chromosome:strand:{pos_1, pos_2, ..., pos_m}` where `pos_1` \< `pos_2` \< `...` \< `pos_m` are positions along the chromosome. 
**GenomicTuples** aims to provide functionality for tuples of genomic co-ordinates that are analogous to those available for genomic ranges in the **`r BiocStyle::Biocpkg("GenomicRanges")`** R/Bioconductor package.

## Installation

Most users will want to install GenomicTuples using the current release of Bioconductor using:

```{r, eval = FALSE}
if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}
BiocManager::install("GenomicTuples")
```

The master branch of this repository is the development version of the package. 
The development version of **GenomicTuples** can only be installed using the development version of Bioconductor.
Please first read [these instructions on installing the development version of Bioconductor](http://www.bioconductor.org/developers/how-to/useDevel/); **GenomicTuples** can then be installed by:

```{r, eval = FALSE}
if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}
BiocManager::install("GenomicTuples", version = "devel")
```

## Example

Here we use the **GenomicTuples** package to define two *GTuples* objects, one containing 5 3-tuples and one containing 3 3-tuples, demonstrate how to identify 'equal' genomic tuples, and how this calculation would be incorrect if we were to mistakenly treat these genomic tuples as genomic ranges:

```{r, eval = TRUE, echo = TRUE, message = FALSE}
# Load the package
library(GenomicTuples)
# Create a GTuples object containing 5 3-tuples
x <- GTuples(
    seqnames = c('chr1', 'chr1', 'chr1', 'chr1', 'chr2'), 
    tuples = matrix(
        c(10L, 20L, 30L,
          10L, 20L, 30L,
          10L, 20L, 35L,
          10L, 25L, 30L,
          10L, 20L, 30L),
        ncol = 3,
        byrow = TRUE), 
    strand = c('+', '-', '*', '+', '+'))
x
# Create a new GTuples object containing 3 3-tuples by subsetting x
y <- x[2:4]
y
# Find equal genomic tuples
subsetByOverlaps(x, y, type = "equal")
# Find equal genomic tuples when ignoring strand
subsetByOverlaps(x, y, type = "equal", ignore.strand = TRUE)
# Note that if were to mistakenly treat these as genomic ranges, then the set 
# of 'equal' genomic tuples would be incorrect since treating these tuples as 
# ranges ignores the "internal positions" (pos2).
# The set of overlaps when correctly treated as genomic tuples:
findOverlaps(x, y, type = "equal")
# The set of overlaps when incorrected treated as genomic ranges:
findOverlaps(as(x, "GRanges"), as(y, "GRanges"), type = 'equal')
```

**GenomicTuples** includes extensive documentation available through the R help system:

```{r, eval = FALSE}
# See all documentation for the package
help(package = "GenomicTuples")
# See documentation for the GTuples class
?GTuples
```

The package also includes a comprehensive vignette that explains in greater detail the different between a genomic tuple and a genomic range, when genomic tuples may be usefu, and common operations on genomic tuples. The vignette can be viewed at [http://bioconductor.org/packages/release/bioc/vignettes/GenomicTuples/inst/doc/GenomicTuplesIntroduction.html](http://bioconductor.org/packages/release/bioc/vignettes/GenomicTuples/inst/doc/GenomicTuplesIntroduction.html) or accessed from R using:

```{r, eval = FALSE}
vignette("GenomicTuplesIntroduction", package = "GenomicTuples")
```

## Citation

**GenomicTuples** has been published in The Journal of Open Source Software, [http://joss.theoj.org/papers/10.21105/joss.00020](http://joss.theoj.org/papers/10.21105/joss.00020).

If you use **GenomicTuples**, please cite the paper and software version. This can be done as follows: 

```{r, citation}
citation("GenomicTuples")
packageVersion("GenomicTuples")
```

## License

**GenomicTuples** is licensed under [Artistic 2.0](https://www.r-project.org/Licenses/Artistic-2.0).

## Code of Conduct

Please note that the **GenomicTuples** project is released with a [Contributor Code of Conduct](http://bioconductor.org/about/code-of-conduct/).
By contributing to this project, you agree to abide by its terms.

Owner

  • Name: Peter Hickey
  • Login: PeteHaitch
  • Kind: user

JOSS Publication

Representation and Manipulation of Genomic Tuples in R
Published
May 28, 2016
Volume 1, Issue 1, Page 20
Authors
Peter F. Hickey ORCID
Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health
Editor
Arfon Smith ORCID
Tags
bioinformatics computational biology

GitHub Events

Total
  • Watch event: 1
  • Push event: 4
  • Create event: 3
Last Year
  • Watch event: 1
  • Push event: 4
  • Create event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 273
  • Total Committers: 11
  • Avg Commits per committer: 24.818
  • Development Distribution Score (DDS): 0.238
Past Year
  • Commits: 11
  • Committers: 3
  • Avg Commits per committer: 3.667
  • Development Distribution Score (DDS): 0.364
Top Committers
Name Email Commits
Peter Hickey h****y@w****u 208
Nitesh Turaga n****a@g****m 14
Herve Pages h****s@f****g 13
Dan Tenenbaum d****a@f****g 11
J Wokaty j****y@s****u 10
Hervé Pagès h****s@f****g 9
vobencha v****a@g****m 2
vobencha v****n@r****g 2
A Wokaty a****y@s****u 2
Valerie Obenchain v****a@f****g 1
Marc Carlson m****n@f****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total 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
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • PeteHaitch (4)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • bioconductor 20,184 total
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
bioconductor.org: GenomicTuples

Representation and Manipulation of Genomic Tuples

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 20,184 Total
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 15.9%
Downloads: 47.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/check-bioc.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/upload-artifact master composite
  • docker/build-push-action v1 composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite
DESCRIPTION cran
  • GenomeInfoDb >= 1.15.2 depends
  • GenomicRanges >= 1.37.4 depends
  • R >= 4.0 depends
  • S4Vectors >= 0.17.25 depends
  • BiocGenerics >= 0.21.2 imports
  • IRanges >= 2.19.13 imports
  • Rcpp >= 0.11.2 imports
  • data.table * imports
  • methods * imports
  • stats * imports
  • stats4 * imports
  • utils * imports
  • BiocStyle * suggests
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests