Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fiber count of SAF.tck does not match the number of rejected fibers #4

Open
cmendosanchez opened this issue Sep 9, 2023 · 1 comment

Comments

@cmendosanchez
Copy link

Dear Dmitri,

I used the following command to perform the surface-based tracking for short association fibres.

[SD, PS] = SAF_pipeline('fs_dir', fs_dir, 'fod', fod,'noregister', 'tckgen', '-cutoff 0.05 -select 50000 -maxlen 40', 'surfseed','remesh_seeds');

The script generated the following print

Converting brain.mgz to brain.nii.gz
Assuming T1 and DWI are co-registered
Processing surfaces
Edge length cut off for white surface remeshing (seed input): 1.68
Number of coordinates added for seeding: 16802
Running mrtrix tckgen
tckgen string:
tckgen -seed_coordinates_global /home/cris/Escritorio/fod/103818/SAF_output/remeshed_seeds.txt -output_seeds /home/cris/Escritorio/fod/103818/SAF_output/DWI_seeds_out.txt -cutoff 0.05 -select 50000 -maxlen 40 /home/cris/Escritorio/fod/103818/wmfod_norm.mif.gz /home/cris/Escritorio/fod/103818/SAF_output/surf_tracks.tck -force
Loading streamlines
Preparing for streamline-cortex filters. Current time: 19:49
Starting streamline-cortex filters. Current time: 19:49
Number of streamlines before filtering: 50000
Starting GG & HH filtering
Time spent on GG & HH filtering: 00:00:00
Number of streamlines rejected due to extremely short length: 0
Number of streamlines rejected during GG filtering: 30975
Number of streamlines rejected during HH filtering: 125
Filtering lengths
Number of streamlines rejected due to maxlen: 0
Starting GWG filtering
Time spent on GWG filtering: 00:00:07
Number of streamlines rejected during GWG filtering: 5878
Final SAF tractogram: /home/cris/Escritorio/fod/103818/SAF_output/SAF.tck
Total time taken: 00:00:40
Saving final matlab files

The SAF.tck file had a fiber count of 13147. However, it should be less taking into account the GG, HH and GWG filtering (50000-30975-125-5878 = 13022 fibers).

I suspect that the fibers rejected by the HH filter (125 fibers rejected) were not removed from the SAF.tck file due to 50000-30975-5878 =13147 fibers.

Do you have any advice on how to solve this issue? Also, I was wondering if it is possible to retrieve the indices of the intersected triangles from the SAF.tck fibers.

Many thanks,

Cristóbal

@dmitrishastin
Copy link
Owner

dmitrishastin commented Sep 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants