-
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
[WIP][NF] Add dipy_gtable
cli
#3143
base: master
Are you sure you want to change the base?
Conversation
Hello @skoudoro, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated at 2024-03-21 15:30:42 UTC |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3143 +/- ##
==========================================
+ Coverage 81.78% 81.92% +0.14%
==========================================
Files 150 150
Lines 21277 21365 +88
Branches 3412 3424 +12
==========================================
+ Hits 17401 17504 +103
+ Misses 3037 3022 -15
Partials 839 839
|
Could we try to conform the parts that we can with https://mrtrix.readthedocs.io/en/latest/concepts/dw_scheme.html? |
I was not aware, I will look into it and let you know. |
ok, I just look into it @arokem, Both are ASCII files (csv, txt, dat, etc...). So you mean:
Also, we add more information like btensor, small_delta, big_delta, if available. Can you tell me which one is important to respect. I personally would like to keep the header which help non-technical user to open the file in excel and understand it. The other point should be ok to update |
I just mean that we should spend some time thinking before we invent yet another file format. In terms of matching the One way to ask this is to see whether a file that is generated here could immediately be used by mrtrix, without any change. I am not sure what mrtrix does on i/o, so the added information (i.e., b-tensor) might throw this off, but it's worth trying. |
ok, thank you for the feedback! ok for tab separated and inverting b-values and b-vectors. I will update Otherwise, I will play with other software to check what they do when the file contain extra information like |
This is not the same purpose @arokem. Our version contains gradients, b-tensor encodings, small and big deltas etc. We will explain. And also provide a converter. Also we do not introduce a new file format. This is just a csv file. We already have pandas as a dependency. |
Please see updated picture above (in description). |
In addition, it makes sense for people to see b-values as the first column because this is what people look first. It is also part of our API we first provide b-values and then b-vectors. |
This PR adds a new CLI named
dipy_gtable
. The main goal of this cli is to merged bvec and bval into one file named*.gtab.csv
. This new file will be required for the other CLI 's in a close future.to test it, just run one this command line:
dipy_gtable --force dipy/data/files/small_64D.bval dipy/data/files/small_64D.bvec
dipy_gtable --force dipy/data/files/small_64D.bval dipy/data/files/small_64D.bvec --btens "LTE"
dipy_gtable --force dipy/data/files/small_64D.bval dipy/data/files/small_64D.bvec --small_delta 0.01 --big_delta 0.03 --btens "LTE"
then display the new file:
dipy_info gt_condensed.gtab.csv