-
Notifications
You must be signed in to change notification settings - Fork 429
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
[NF] Add Concatenate tracks workflows #3027
Conversation
Hello @skoudoro, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated at 2024-01-12 15:40:55 UTC |
0b2ec41
to
ace45c4
Compare
ace45c4
to
8568045
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3027 +/- ##
==========================================
- Coverage 82.12% 81.91% -0.21%
==========================================
Files 146 147 +1
Lines 20513 20652 +139
Branches 3270 3317 +47
==========================================
+ Hits 16846 16917 +71
- Misses 2856 2903 +47
- Partials 811 832 +21
|
@frheault can you have a look ? |
That's great/useful to transfer! I haven't tested yet due to the fact I can't build Dipy right now. Am I missing instructions since the new 3.12 update? I tried the good old
And when I try to launch the script I get When I got that figure out I will be able to run tests, try the script, etc. Also I think the script should be name dipy_concatenate_tractograms |
should be enough to install DIPY. Concerning the name, I might rename it just |
Thanks, I will try that! About a script for both, it would be confusing to see parameters that applies to only tractograms or only volumes or some for both, no? Like the datatype, the verification of header (can be turned off for tractography, but shape has to match for volume, or data_per_*, etc.) that would make the help twice as long and more confusing |
dipy/workflows/io.py
Outdated
check_space_attributes=check_space_attributes, | ||
preallocation=preallocation) | ||
|
||
valid_extensions = ['trk', 'trx', "tck,", "fib", "dpy", "vtk"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a comma in between the quote for tck
you are right. I was thinking in subcommand, like But let's keep it simple for now. I will update that. Thanks for the review |
Hi @frheault, Did you succeed to install DIPY? Did you have time to try this PR? Thank you in advance for you feedback |
Ah there is a missing comment, I forgot to click somewhere. The TRK had data_per_point and it was conserved correctly, also the header were alright and the position was matching the reference anatomy. So it is working well! |
Thank you for the feedback! I will wait until Friday in case someone else want to try it and then, I will go ahead and merge it |
working on In general, it is not clear to me where all operations on Tractogram should go..... maybe a new module named |
Recently in Scilpy we added like 5 modules and changed the name and position of everything because we were tired of these challenges, so I believe it is a great question. We created a tractogram module for operation at the tractogram level as opposed to the streamlines level. In this situation, I do not like tracking.utils (because everything is ending in there). So without a .utils.tractogram module, I would say utils.streamline (but it is not great either). If Dipy keep having higher level processing, I would suggest exploring a tractogram module for macro operation (that are not algorithm processing streamlines (smoothing, transformation, etc.) |
b07378a
to
b425a02
Compare
b425a02
to
79a7559
Compare
Thank you for your review and feedback @frheault. |
This PR is a follow up of #2760.
It migrates the script
concatenate_tractogram
from TRX-Python library to DIPY.More PRs should come to continues the migration.