arokem on master
avoid 0.29.29 for now update requirement also update workflow template and 2 more (compare)
Hi all, I am working with a script that generates peaks using dipy's peaks_from_model() to track white matter pathways. I am attempting to save these peaks to a nifti from the .PAM5 file they are saved in using save_peaks(). My PeaksandMetrics object does not have the affine attribute, however even if I specify it in save_peaks() as the docs suggest it still fails to recognize it and gives the error: AttributeError: 'PeaksAndMetrics' object has no attribute 'affine'
. I am using dipy 0.15, python 2.7 . Here is my code, any advice is helpful since I am still fairly new to dipy:
`csapeaks = peaks_from_model(model=csa_model,
data=maskdata,
sphere=sphere,
relative_peak_threshold=.25,
min_separation_angle=40, mask=mask,
return_odf=True, normalize_peaks=True)
print('csa_peaks generated')
pam = savepeaks(os.path.join(Diffusion, 'peaks.pam5'), csapeaks, affine=np.eye(4))
peaks_toniftis(pam, Diffusion+'/'+PIDN+'peaksSH.nii',
Diffusion+'/'+PIDN+'peaksdirections.nii',
Diffusion+'/'+PIDN+'peaksindices.nii',
Diffusion+'/'+PIDN+'peaksvalues.nii',
Diffusion+'/'+PIDN+'GFA.nii', reshape_dirs=False)`
Hi, a question for the community: I would need to cluster streamline pairs rather than streamlines whilst still using QuickBundles. By this I mean that I have one streamline pair [A B], where A and B are individual streamlines, and one streamline pair [C D], where C and D are individual streamlines. What I want to do is calculate the distance between A and C, and B and D and cluster based on the total distance between the pairs as: totalDistance = distanceBetween(A, C) +distanceBetween(B, D).
If anyone has any idea of how to achieve this I would be very thankful to hear it!
Dear DIPY Community (@/all),
Do you need help to add a new feature on DIPY?
Do you want to share ideas or a moment with DIPY users and developers? or Do you have any questions about your DIPY code?
Feel free to join us on December 16th-17th during our Brainhack event! (https://brainhack.luddy.indiana.edu/)
Whatever your background or level of expertise is, you are encouraged to join us and participate: propose and discuss ideas, showcase demos, or contribute to activities initiated by others.
This free online event will be a good opportunity to connect with each other (registration is mandatory).
.
Some users already have proposed projects that you might be interested in:
You will find all the information (schedule, registration, ...) at https://brainhack.luddy.indiana.edu/
pip install dipy --upgrade --user
, the patch2self command line should be available in your system. You can go to your terminal and run: dipy_denoise_patch2self your_data.nii.gz your_data.bval --out_denoised denoised_your_data.nii.gz
.
Hi @hybazg123
Here are some tutorials in DIPY that would be helpful
https://dipy.org/documentation/1.4.1./examples_built/viz_bundles/#example-viz-bundles
https://dipy.org/documentation/1.4.1./interfaces/buan_flow/
https://dipy.org/documentation/1.4.1./examples_built/afq_tract_profiles/#example-afq-tract-profiles