Skip to content

seqwrap

0.8.1Package record

Item-by-Item Iterative Model Fitting

0packages depend
1.7Kdownloads / year
81.7%test coverage
13/13flavors OK

Overview

About

Models high-dimensional data, such as RNA-seq or proteomic data using an item-by-item strategy. The package contains functions to wrap high-dimensional data and iterate over them using established R packages for regression modelling (e.g., 'glmmTMB' or 'mgcv').

Changes in 0.8.1

New features

  • New seqwrap_priors() builds empirical Bayes priors for glmmTMB from a completed run. Fixed-effect estimates are summarised across targets into normal() priors (centered on zero by default, or on the mean across targets), random-effect standard deviations into a gamma() prior, and the log dispersion is modelled as a loess trend against log mean count so that each target receives its own dispersion prior. The result is a list with one prior data frame per target, ready to be passed as targetdata to seqwrap_compose(), and prints a summary of the priors it holds. This replaces the manual construction shown in earlier versions of the vignette. A plot() method, also reachable through seqwrap_priors(plot = TRUE), draws each prior over the estimates it was built from: histograms with the prior density for fixed effects and random-effect standard deviations, and the log dispersion against log mean count with the fitted trend. The per-target estimates behind the panels are kept in the data attribute of the object so that other displays can be built from them.
Show all changes in 0.8.1Hide the rest of the changes in 0.8.1
  • New dispersion_evaluation() is an evaluation function for glmmTMB models that records the log dispersion, its standard error and the log mean count of each target, which is what seqwrap_priors() needs to build the dispersion prior.
  • A list passed as targetdata can now be named by target identifier, in which case elements are matched to targets by name regardless of order, and the list may hold more targets than data (for example priors built from a full run applied to a subset). seqwrap_priors() returns such a list. An unnamed list is still matched by position, as before, but seqwrap() now warns that it does so, since a misordered list is otherwise silent. A named list that lacks a target is rejected with a message naming the missing targets.

Improvements and bug fixes

  • seqwrap() now reports, in its verbose header, how many times the progress bar will advance and in what step size. The bar moves once per batch of chunks (one chunk per core), so with the default chunk size it advances in about four steps; the message points to chunk_size for finer updates.
  • Target-wise data (targetdata) was paired with the wrong targets when the target identifiers in data were not in sorted order. Targets are grouped by sorted identifier internally, while target-wise data was taken by row, so row j of targetdata ended up with the j-th target in sorted order rather than with row j of data. Target-wise data now follows the same reordering as the data, for data frames and lists, with and without chunking or subset.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 8.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-09
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK6 OK2026-05-20
Advisories

none known

Documentation

In release 0.8.1
READMEYes · 100 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.8.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
18
Examples that run
100%16 run in a plain check
Exported functions with examples
100%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
6%

Downloads

1.7K
CRAN downloads in the past year
Rank #14,381 · ~5/day · ~143/mo
Daily download trend is not available in this view yet.
23930 days
83290 days
1.7K1 year
Compare downloads with other packages →
Also on40 r2u3 autocran

Repository

2Stars
0Forks
1Open issues
0Open PRs
1Releases
70Commits
3Commit identities
70 commits · Last activity 2026-09-03 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
198
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-02-13 · 12026-07-07 · 2
PracticesBeta

4 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/trainome/seqwrap on 2026-10-21.

Docs source (1)
README.qmd
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing seqwrap adds 33 packages (16 with compiled code, 26 MB of source tarballs). Heaviest: stringi 11 MB, broom.mixed 4.9 MB, vctrs 1.0 MB.

Depends (1)
R >= 4.1
Imports (9)
cliS7tibblepbapplyparallelstatsgraphicsgrDevicesbroom.mixed
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.7.0 (2026), Copyright holder
Contributor
Releases (2)

Pick two releases to compare their code metrics.

  • 0.8.1Latest
    record
    2026-09-03 · current release · diff ↗ ·
    added 5 exports
    dispersion_evaluation, residual_diagnostics, seqwrap_cache_clear, seqwrap_errors, seqwrap_priors
  • 0.7.0
    record
    2026-05-19
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-19
Total releases
2 / 1 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1
Bundled data
403 KB / 1 file
Download size
1.0 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("seqwrap")
Hammarström, D., & Echebiri, C. (2026). seqwrap: Item-by-Item Iterative Model Fitting (Version 0.8.1) [Computer software]. https://doi.org/10.32614/CRAN.package.seqwrap

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 seqwrap version 0.8.1 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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