Skip to content

Conversation

swederik
Copy link
Member

Numerous fixes for the CSV outputs of the connectivity mapping workflows (foremost, Function interfaces are now incorporated)
Tractography filtered by intersections is no longer removed as an unnecessary output
Structural tessellation workflow incorporated into advanced diffusion MRI tutorial, added into resulting CFF file
Added exists=True tags to Parcellation inputs/outputs

Update: Just tested the group mrtrix tutorial on a new machine and it seems to work perfectly. Ready to merge unless someone thinks otherwise.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, was easier to test with one group... fixed now

@chrisgorgo
Copy link
Member

I get a bunch of failing nodes while running dmri_group_connectivity_mrtrix. Here are the crashlogs http://dl.dropbox.com/u/412959/dmri_group_connectivity_mrtrix_errors.zip

@swederik
Copy link
Member Author

swederik commented Apr 4, 2012

Hmm, those all look related to the Freesurfer directory for one of the subjects....
Could you try downloading the data package again? I know at one point of the subjects was missing the files in the /surf folder, so maybe you grabbed it before I fixed that.

Is there a way to open the .npz files?

@chrisgorgo
Copy link
Member

How did you figure it out without opening the npz files?

use "nipype_display_crash" to view those logs

@swederik
Copy link
Member Author

swederik commented Apr 4, 2012

Heh, I had the same error logs about a month ago... Plus all those interfaces convert surfaces or volumes from .mgz at some point.

@chrisgorgo
Copy link
Member

I downloaded the newest dataset. I run out of memory! And I have 16G!

filo@filolaptop:/mnt/data/nipype_examples$ nipype_display_crash /mnt/data/nipype_examples/crash-20120404-181729-filo-csdeconv.a0.npz 120404-18:21:41,162 workflow DEBUG: networkx 1.4 dev or higher detected File: /mnt/data/nipype_examples/crash-20120404-181729-filo-csdeconv.a0.npz Node: l1pipeline.connectivity.mapping.csdeconv.a0 Working directory: /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/csdeconv Node inputs: args = <undefined> directions_file = <undefined> encoding_file = <undefined> environ = {'DISPLAY': ':1'} filter_file = <undefined> ignore_exception = False in_file = <undefined> iterations = <undefined> lambda_value = <undefined> mask_image = <undefined> maximum_harmonic_order = 6.0 normalise = <undefined> out_filename = <undefined> response_file = <undefined> threshold_value = <undefined> Traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/pipeline/plugins/multiproc.py", line 15, in run_node result['result'] = node.run(updatehash=updatehash) File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/pipeline/engine.py", line 1126, in run self._run_interface() File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/pipeline/engine.py", line 1221, in _run_interface self._result = self._run_command(execute) File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/pipeline/engine.py", line 1345, in _run_command result = self._interface.run() File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/interfaces/base.py", line 820, in run runtime = self._run_interface(runtime) File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/interfaces/base.py", line 1096, in _run_interface self.raise_exception(runtime) File "/usr/local/lib/python2.7/dist-packages/nipype-0.0.0-py2.7.egg/nipype/interfaces/base.py", line 1061, in raise_exception raise RuntimeError(message) RuntimeError: Command: csdeconv -grad /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/fsl2mrtrix/bvecs_bvals.txt -mask /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/gen_WM_mask/vol0000_flirt_merged_WMProb.mif -lmax 6.0 /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/eddycorrect/_subject_id_pat10/merge/vol0000_flirt_merged.nii /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/estimateresponse/vol0000_flirt_merged_ER.mif vol0000_flirt_merged_CSD.mif Standard output: Standard error: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted Return code: 134 Interface ConstrainedSphericalDeconvolution failed to run. Inputs: args = <undefined> directions_file = <undefined> encoding_file = /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/fsl2mrtrix/bvecs_bvals.txt environ = {'DISPLAY': ':1'} filter_file = <undefined> ignore_exception = False in_file = /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/eddycorrect/_subject_id_pat10/merge/vol0000_flirt_merged.nii iterations = <undefined> lambda_value = <undefined> mask_image = /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/gen_WM_mask/vol0000_flirt_merged_WMProb.mif maximum_harmonic_order = 6.0 normalise = <undefined> out_filename = <undefined> response_file = /mnt/data/nipype_examples/dmri_group_connectivity_mrtrix/l1pipeline/connectivity/mapping/_subject_id_pat10/estimateresponse/vol0000_flirt_merged_ER.mif threshold_value = <undefined> 
@swederik
Copy link
Member Author

swederik commented Apr 4, 2012

Haha wow very strange...
I've had that before but it somehow went away... Which version of mrtrix are you running? The latest is like 2.9.10 or something, and it fixed a number of problems I had (off the top of my head, Nifti conversion in mrconvert).

Definitely shouldn't be running out of memory, mine doesn't even come close and I've run those pipelines on machines with only 4gb.

Was it being run with multiproc?

@swederik
Copy link
Member Author

swederik commented Apr 5, 2012

Wow, strangely enough I'm getting the same memory error on my end now...

@chrisgorgo
Copy link
Member

I've tried both 0.2.9 and 0.2.10 with the same result.

@chrisgorgo
Copy link
Member

Maybe we should send a bug report upstream?

@swederik
Copy link
Member Author

Okay, so I've narrowed this problem down to the Estimate Response node. It appears that the subjects in which csdeconv crashes all seem to have spherical response profiles.

http://dl.dropbox.com/u/315714/response_profile.png

No clue how to fix it yet though....

@swederik
Copy link
Member Author

Turns out it's related to the absolute thresholding on the FA image to obtain the single-fibre voxels.. works fine if it's set back to the default (0.7).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know why this looks like the spacing is wrong but it's fine in my editor....

@chrisgorgo
Copy link
Member

Is this still WIP?

I have noticed that Parcellate node iterates over labels and calls freesurfer tools internally using a CommandLine class. Have you considered wrapping those tools and turning Parcellate into a workfow with MapNodes?

@satra
Copy link
Member

satra commented Aug 7, 2012

where are we with this?

@swederik
Copy link
Member Author

swederik commented Aug 7, 2012

Not sure. I'm convinced it's ready to merge but chris said that the
NetworkXMetrics node was rerunning. I've been unable to replicate the bug
on two Ubuntu machines and one Mac... so I'm still convinced.

It's pretty annoying that the tutorial is so damn big and long though.
Takes forever to test.
On Aug 7, 2012 5:06 AM, "Satrajit Ghosh" notifications@github.com wrote:

where are we with this?


Reply to this email directly or view it on GitHubhttps://github.com//pull/348#issuecomment-7542669.

@swederik
Copy link
Member Author

Hey guys,

I'm beginning to wonder if we will ever close this PR.
I've tried to reproduce Chris' bug on two ubuntu machines and a mac and I don't seem to get any rerunning.

Is there any other reason not to merge it?

@chrisgorgo
Copy link
Member

I'll ry it on my new machine. We will merge it! Yes we can!

On 28 October 2012 16:42, Erik Ziegler notifications@github.com wrote:

Hey guys,

I'm beginning to wonder if we will ever close this PR.
I've tried to reproduce Chris' bug on two ubuntu machines and a mac and I
don't seem to get any rerunning.

Is there any other reason not to merge it?


Reply to this email directly or view it on GitHubhttps://github.com//pull/348#issuecomment-9846857.

@chrisgorgo chrisgorgo merged commit e730994 into nipy:master Nov 18, 2012
@swederik
Copy link
Member Author

8 months later! We finally did it!

I'll start cleaning up some other branches for new PRs :)

@chrisgorgo
Copy link
Member

Mind that I had to make some changes - please update your master.

On 19 November 2012 00:34, Erik Ziegler notifications@github.com wrote:

8 months later! We finally did it!

I'll start cleaning up some other branches for new PRs :)


Reply to this email directly or view it on GitHubhttps://github.com//pull/348#issuecomment-10497032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants