Skip to content

[ENH] TRX Support - #163

Open
36000 wants to merge 6 commits into
daducci:release/v3.0.0from
36000:trx
Open

36000 wants to merge 6 commits into
daducci:release/v3.0.0from
36000:trx

Conversation

@36000

@36000 36000 commented Jun 23, 2026

Copy link
Copy Markdown

This is a first draft of adding TRX support to COMMIT. I opted to use and require the trx cpp package, which required changing the installation system to use scikit build and cmake. This is so that we do not have to reimplement things like handling the different offset data types/index data types/compression methods / etc. that trx supports. I have tested this locally, and it seems to work, but more testing is needed.

Copilot AI review requested due to automatic review settings June 23, 2026 05:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@daducci daducci self-assigned this Nov 9, 2026
@daducci
daducci changed the base branch from master to release/v3.0.0 November 9, 2026 21:13
@daducci
daducci deleted the branch daducci:release/v3.0.0 November 10, 2026 12:58
@daducci daducci closed this Nov 10, 2026
@daducci daducci reopened this Nov 10, 2026
#include <math.h>
#include <iostream>
#include <thread>
#include <functional>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this does


if ( isTRK )
if ( isTRX )
N = read_fiberTRX( trxFile, fiber, idx, ptrToVOXMM );

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? As far as I understand, idx is the index of the current thread reading the tractogram, but this is passed to the function read_fiberTRX which would then read the idx-th streamline from the input. Shouldn't this be the loop’s streamline index, i.e. f?

…mory mapping. avoids adding cpp dependency and avoids using too much memory on large tractograms
@36000 36000 changed the title [WIP/ENH] TRX Support [ENH] TRX Support Nov 30, 2026
@36000

36000 commented Nov 30, 2026

Copy link
Copy Markdown
Author

@daducci you were right about the bug. I ended up doing a rewrite anyway that has less impact on the build system and uses trx python instead. It takes advantage of the memory mapping feature directly now.

functional was used for std::ref, but it is no longer needed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants