-
Notifications
You must be signed in to change notification settings - Fork 33
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
Issue with tractography output files and BIDS format #1013
Comments
A follow up issue here: if running pyAFQ after QSIprep (@mattcieslak), some entities are used twice, e.g.
(the suffix This makes the One potential solution for pipelines developers could be for them to create their own |
Thanks for raising this. Indeed, when we started formulating these file-names we did not follow the standard very closely. And the concatenation of file-names doesn't make much sense either - agreed about that. I like the idea of creating custom entities here. This could serve as a basis for advocating for specific entities that would be included in the BIDS spec down the line. It will also probably make it easier to adopt/replace entities that supplant our development, once they are integrated upstream. Do you want to give this a shot? For example, defining the algorithm entity? |
Yes, I think defining a series of new entities makes sense here, though I wonder how this interacts with existing efforts in the BIDS communities to make standards for dMRI derivatives? |
I think that it would be helpful to these efforts, because it would provide a set of examples of entities and use-cases for these entities. Once things solidify upstream, we can hopefully more easily adopt the standard way of doing things. |
I will make a PR to remove the additional suffix, and replacing desc- with something else and algo- with segalgo-. @pierre-nedelec , do u have code that we could use as a starting point for an example demonstrating the use entities? |
Two output tractography files are created each time, their path differing only with the addition of
algo-AFQ_
for the one with classified bundles. This way of naming does not seem to be BIDS friendly. Firstalgo
is not a default recognized BIDS entity. This can be worked around for nor now like this. However a problem remains: if you try to access the file without the algo descriptor, you can't just using bids'layout.get()
to access the one file that doesn't have "algo" setup.Attaching here again the json config
With
"algorithm": "AFQ",
it returns one file. Without it, it returns both files. And I don't think there is way to access just the other one?The text was updated successfully, but these errors were encountered: