Skip to content

fiber

0.2.0Package record

S7 Data Structures for Diffusion MRI Tractography

0packages depend
1.8Kdownloads / year
75.6%test coverage
11/13flavors OK

Overview

About

Provides three S7 classes — streamline, bundle, and bundle_set — for representing diffusion MRI tractography data in R, together with a concise set of methods for computing shape descriptors (arc-length, curvature, torsion, sinuosity), the Hausdorff distance between streamlines, arc-length reparametrization of streamlines and bundles onto uniform grids, combination of streamlines or bundles into a single bundle, combination of bundles from multiple subjects or sessions into a bundle_set, and coercion to and from the dwiFiber S4 class of the 'dti' package. See Dell'Acqua, F., Descoteaux, M. and Leemans, A. (2024) "Handbook of Diffusion MR Tractography" doi:10.1016/C2018-0-02520-7 for more about the mathematical and computational underpinnings of diffusion MRI tractography.

Changes in 0.2.0

Breaking changes

  • streamline: @point_data holds **numeric-only** attributes (e.g. fractional anisotropy).
  • bundle: @bundle_data is now restricted to named lists of **scalars** (length-1 values, any type). Previously arbitrary R objects were accepted. Non-scalar values (e.g. affine matrices stored as a single @bundle_data entry) must be split into individual scalar entries or moved elsewhere.
  • bundle_set: @set_data is now restricted to named lists of **scalars** (length-1 values, any type), consistent with @bundle_data at the bundle level.

Improvements

  • format() and print() methods for streamline, bundle, and bundle_set now use {cli} for styled, ANSI-aware console output. Unknown shape descriptors passed to add_shape_descriptors() now emit structured cli::cli_warn() messages instead of base-R warnings.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0

New features

  • bundle gains a @streamline_data slot — a named list of vectors of length $S$ (one entry per streamline) — for per-streamline attributes aggregated at the bundle level. add_shape_descriptors() now stores scalar descriptors (euclidean_length, curvilinear_length, sinuosity) directly in bundle@streamline_data rather than in each individual streamline.
  • bundle_set gains a @bundle_data slot — a named list of vectors of length $B$ (one entry per bundle) — for per-bundle attributes aggregated at the set level.
  • **Automatic attribute lifting**: when constructing a bundle, any @streamline_data key present in *all* supplied streamlines is automatically copied into bundle@streamline_data as a length-$S$ vector. The same happens one level up: common @bundle_data keys are lifted into bundle_set@bundle_data when constructing a bundle_set. Individual child slots are dropped; parent-level values take precedence on conflict.
  • **Subsetting push-down**: bundle[[i]] now pushes the corresponding bundle@streamline_data values back into the extracted streamlines' @streamline_data. Likewise bundle_set[[i]] and pushes bundle_set@bundle_data values into the extracted bundles' @bundle_data.
  • bundle_set: @bundles no longer needs to be a named list. Names are used to populate a bundle attribute vector called id_from_input_list and names are then dropped from the input list.
  • bundle() constructor gains a streamline_data argument for supplying per-streamline data explicitly (overrides automatic lifting).
  • bind_bundles() gains a streamline_data argument.
  • bind_bundle_sets() gains a bundle_data argument. Bare bundle arguments no longer need to be named.
  • as_bundle_set() method for bundle: the name argument is now optional (default NULL); omitting it creates an unnamed single-element bundle_set.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘add_shape_descriptors-fiber-bundle-method.Rd’
  ‘add_shape_descriptors-fiber-streamline-method.Rd’
  ‘as_bundle-fiber-bundle-method.Rd’
  ‘as_bundle-fiber-streamline-method.Rd’
  ‘as_dwifiber-fiber-bundle-method.Rd’
  ‘as_dwifiber-fiber-streamline-method.Rd’
  ‘as_streamline-fiber-bundle-method.Rd’
  ‘as_streamline-fiber-streamline-method.Rd’
  ‘compute_hausdorff_distance-fiber-bundle-method.Rd’
  ‘compute_hausdorff_distance-fiber-streamline-method.Rd’
  ‘reparametrize-fiber-bundle-method.Rd’
  ‘reparametrize-fiber-streamline-method.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 2.4 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK5 OK2026-05-31
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 491 wordsVignettesNoNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Help pages
34 (1 internal)includes a package overview page
Examples that run
100%24 run in a plain check (1 of them under a condition)
Exported functions with examples
100%
Documented parameters
98%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.8K
CRAN downloads in the past year
Rank #12,700 · ~5/day · ~152/mo
Daily download trend is not available in this view yet.
30830 days
88190 days
1.8K1 year
Compare downloads with other packages →
Also on89 r2u3 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
2Releases
59Commits
1Commit identities
59 commits · Last activity 2026-07-13 · Default branch at 0.2.0.9000, ahead of CRAN 0.2.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
16
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

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

Checks run against github.com/tractoverse/fiber on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.qmdpkgdown

GitHub Pages site last deployed 2026-07-13 · The repository has a site deploy workflow

pkgdown site last built 2026-07-13

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing fiber adds 3 packages (2 with compiled code, 1.1 MB of source tarballs). Heaviest: cli 629 KB, cpp11 298 KB, S7 180 KB.

Depends (0)
none
Imports (3)
climethodsS7
LinkingTo (1)
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.2 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-07-04 · current release · diff ↗
  • 0.1.2
    record
    2026-05-30
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-30
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Download size
601 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("fiber")
Stamm, A. (2026). fiber: S7 Data Structures for Diffusion MRI Tractography (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.fiber

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

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