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

read_trk_to_fg Error: Index exceeds matrix dimensions #348

Open
maohy915 opened this issue Jun 29, 2021 · 2 comments
Open

read_trk_to_fg Error: Index exceeds matrix dimensions #348

maohy915 opened this issue Jun 29, 2021 · 2 comments

Comments

@maohy915
Copy link

Hi there, I got an error when I try to use read_trk_to_fg script.

image

I use mrTrix3 generate .trk file (whole brain track), then I 'm going to process data in AFQ. The .trk file shows weel in mrview, but does't work well with read_trk_to_fg script.

@garikoitz
Copy link
Contributor

garikoitz commented Jun 29, 2021 via email

@maohy915
Copy link
Author

Hi, if I remember correctly there is a mismatch between mrtrix writing and reading versions. Please check that you are using the same versions for both writing and reading

On Tue, Jun 29, 2021 at 5:15 AM AmVoid @.***> wrote: Hi there, I got an error when I try to use read_trk_to_fg script. [image: image] https://user-images.githubusercontent.com/20393841/123731328-84ec3c80-d8ca-11eb-97ba-7a2829a5bb54.png I use mrTrix3 generate .trk file (whole brain track), then I 'm going to process data in AFQ. The .trk file shows weel in mrview, but does't work well with read_trk_to_fg script. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#348>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCZAV35SCGYPG76JHM4QELTVE3EDANCNFSM47PGBCPQ .

Oh, I don't know what's wrong with it. And the code were download from GitHub repositories(https://github.com/vistalab/vistasoft)
I find dtiImportFibersMrtrix works well to read .tck file, but there is a little bug. When I use fg=dtiImportFibersMrtrix('trackfile.tck') import mrtrix trackfile, the fibers value in fg.fibers is single, which should be double. At this point, MATLAB will report an error when I run AFQ_SegmentFiberGroups.

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