Skip to content

GRIN2

2.1.0Package record

Genomic Random Interval (GRIN)

0packages depend
2.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Implements the Genomic Random Interval (GRIN) framework for identifying genomic loci affected by genomic lesions more frequently than expected by chance. Supports multiple lesion classes, lesion constellation analysis, exon-level target-size modeling, genomic lesion visualization, and gene-level association analyses linking genomic lesions or gene expression with binary and time-to-event clinical outcomes. Includes tools for retrieving versioned GRCh38 Ensembl gene, exon, and regulatory-element annotations. The statistical framework is described in Pounds et al. (2013) doi:10.1093/bioinformatics/btt372.

Changes in 2.1.0

New features

  • Added exon-level target-size modeling to grin.stats() for user-selected lesion types through the new exons.annotation, exon.chrom.size, and exon_level arguments. Lesion types not selected for exon-level modeling continue to use conventional gene- and chromosome-level target sizes, allowing both approaches to be used in the same analysis.
  • Added grin.logRank() for gene-level association analyses between genomic lesion groups and time-to-event outcomes using gene-by-subject lesion-group matrices, such as those generated by prep.lsn.type.matrix(). This function complements the existing grin.assoc.lsn.outcome() workflow for binary gene-lesion matrices generated by prep.binary.lsn.mtx() to evaluate associations with binary and time-to-event outcomes through logistic regression and Cox proportional hazards models, respectively.
  • Added grin.assoc.expr.outcome() for gene-level association analyses between gene expression and clinical outcomes. The function fits Cox proportional hazards models for time-to-event outcomes and logistic regression models for binary outcomes, with optional covariate adjustment.

Improvements

  • Updated the grin.stats() pipeline so that selected lesion types can be modeled using the annotated exon target size of each gene together with the total annotated exonic target size of the corresponding chromosome. This approach is especially useful when analyses are restricted to protein-altering exonic variants, such as missense, nonsense, and coding frameshift variants, and for studies based on whole-exome sequencing. Other lesion types can continue to use conventional gene- and chromosome-level target sizes within the same analysis.
  • Updated get.ensembl.annotation() to retrieve versioned, pre-generated GRCh38 Ensembl annotation bundles containing gene, exon, and regulatory-element annotations. Downloaded resources can be cached locally, are verified using MD5 checksums, and are reused when valid, reducing dependence on live Ensembl BioMart availability and improving reproducibility.
  • Updated lsn.transcripts.plot() to support flexible gene-centered and user-defined regional plots, transcript selection and labeling, improved rendering of point-like and interval-like lesions, refined track layout and alignment, customizable lesion colors, and expanded plotting controls.
  • Updated onco.print.props() to preserve user-specified color palettes.
  • Updated grin.oncoprint.mtx() to use Ensembl gene IDs when gene symbols are unavailable, preserve user-specified gene order, and ensure unique gene labels in OncoPrint matrices.
  • Updated write.grin.xlsx() to exclude the gene.lsn.data worksheet, reducing workbook size and improving export performance.
  • Standardized and clarified the expr.mtx documentation across expression-analysis functions, including the expected gene-by-subject orientation, identifier requirements, and numeric expression-value requirements.
Show all changes in 2.1.0Hide the rest of the changes in 2.1.0

Data and annotations

  • Added the package data objects grin.results, example_exon_annotation, and hg38_exon_chrom_size to support examples of transcript visualization and exon-level GRIN analysis.

Bug fixes

  • Improved the constellation-analysis workflow by updating p.order() to handle single-column inputs correctly, preventing errors when a lesion dataset contains only one lesion type.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.3 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.0
READMENoVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 2.1.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
42
Examples that run
97%32 run in a plain check · 1 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
69%

Downloads

2.6K
CRAN downloads in the past year
Rank #11,985 · ~7/day · ~217/mo
Daily download trend is not available in this view yet.
35130 days
90690 days
2.6K1 year
Compare downloads with other packages →
Also on88 r2u8 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
0Releases
61Commits
1Commit identities
License file reads as GPL-3.0 · 61 commits · Last activity 2025-06-23 · The default branch showed an older version (2.0.0) than CRAN on 2026-10-11
Responsiveness
not measured

Stars over time

2025-05-29 · 12026-07-07 · 1
PracticesBeta

Checks run against github.com/abdel-elsayed87/grin2 on 2026-10-11.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing GRIN2 adds 32 packages (15 with compiled code, 28 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, circlize 2.4 MB.

Depends (1)
R >= 4.2.0
Imports (15)
circlizedata.tabledplyrforcatsggplot2graphicsgrDevicesgridmagrittrstatssurvivaltibbletoolsutilswritexl
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 1.0 (2024), Copyright holder
Author, Copyright holder
Releases (3)

Pick two releases to compare their code metrics.

  • 2.1.0Latest
    record
    2026-08-22 · current release · diff ↗ ·
    added 2 exports
    grin.assoc.expr.outcome, grin.logRank
  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.0
    record
    2025-06-17 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0
    record
    2024-11-19
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2024-11-19
Total releases
3 / 2 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.2.0
Bundled data
444 KB / 10 files
Download size
664 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("GRIN2")
Elsayed, A., Cao, X., Patibandla, L. A., & Pounds, S. (2026). GRIN2: Genomic Random Interval (GRIN) (Version 2.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.GRIN2

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for GRIN2 version 2.1.0 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy