demianw / tract_querier

Implementation of the White Matter Query Language and associated tools for dMRI white matter tract extraction and analysis
Other
27 stars 27 forks source link

Queries which always return 0 #20

Closed gelazari closed 7 years ago

gelazari commented 9 years ago

cc_5 and cc_6 always return zero in my case and i cannot figure out why, while everything else works fine.

demianw commented 9 years ago

Hi @gelazari. Are you sure that the tracts belonging to these areas exist in your dataset? I've found these particular regions to be difficult to trace with the usual tractography algorithms.

Have you done an interactive exploration of your tractography to verify their existence?

gelazari commented 9 years ago

No, i haven't done interactive exploration yet. I tried the queries in many subjects though. I am using iFOD1 from Mrtrix3 which is based on Tournier's paper (deterministic tractography). http://onlinelibrary.wiley.com/doi/10.1002/ima.22005/abstract

demianw commented 9 years ago

Thanks for the info @gelazari. In fact it's very hard to help you like this. I suggest for you to first debug your data (i.e. the tractographies you have and visually explore 1 or 2 to check if those parts of the CC are well extracted) and, when we are sure that the data is good, we go for debugging the code.

gelazari commented 9 years ago

Also, soff.left gives always 0 and soft.right gives 0 or 2. I tested it without interactive exploration. I used HCP data and Mrtrix3 to export the tracks with lmax=8, num_of_tracks=100.000 and the iFOD1 for deterministic tractography as aforementioned.

demianw commented 9 years ago

I think it's the same case. First check the tracts are well extracted from your data. I can guide you through that if you need. Then, once we have verified that they are in the data, we can debug the queries. There are a lot of artefacts in tractography, i.e. tracts that are not totally faithful to their biological counterparts. That's what keeps people coming up with novel tractography algorithms. In a lot of cases a full brain tractography + a posterior filtering (i.e. tract-querier) is not enough to extract each and every tract as the tractography parameters to extract different tracts are not uniform thorough the brain.

gelazari commented 9 years ago

You are absolutely right, so, ok, please guide me to verify if they are well extracted.

demianw commented 9 years ago

OK, to validate CC_5 and CC_6 can you use MrTrix to filter all tracts going through the section between the midbody of the CC and the splenium ? Using a box that contains most of the area on the midsaggital slice using a tool such as FiberNavigator should suffice. Once that's done, you need to visually inspect that there are tracts starting and ending on the parietal lobe (to verify CC6) for instance.

A similar procedure will work for CC5

You can take a look at the instructive video in: https://www.youtube.com/watch?v=8c4Smi9gZOA&spfreload=10

gelazari commented 9 years ago

I placed to ellipsoids (same as boxes) in the midsaggital slice as you said using FiberNavigator and here are the images for a subject that gets 0 at the queries CC, cc_5, cc_6 for the Corpus callosum. screen shot 2015-03-11 at 18 12 58 screen shot 2015-03-11 at 18 13 14 screen shot 2015-03-11 at 18 13 27

demianw commented 9 years ago

Great job!

Now, can you place regions close to the parietal cortex on one side? If this shows transcallosal tracts going to the contralateral parietal cortex, then we will need to adjust the queries. If this is the case, the best thing would be for you to transmit me the wmparc and the tractography file somehow so I can better debug it here.

Best

Demian Wassermann, PhD demian.wassermann@inria.fr Research Scientist Athena Project Team INRIA Sophia Antipolis - Méditerranée 2004 route des lucioles - FR-06902

On 11 Mar 2015, at 18:15, Georgios Lazaridis notifications@github.com wrote:

I placed to ellipsoids (same as boxes) in the midsaggital slice as you said using FiberNavigator and here are the images for a subject that gets 0 at the queries CC, cc_5, cc_6 for the Corpus callosum.

— Reply to this email directly or view it on GitHub.

gelazari commented 9 years ago

Is something like this ok? Its only in one side screen shot 2015-03-11 at 18 39 55 screen shot 2015-03-11 at 18 38 45 screen shot 2015-03-11 at 18 38 55

demianw commented 9 years ago

The box should be thinner and closer to the cortex.

gelazari commented 9 years ago

Is it better now?

screen shot 2015-03-11 at 18 48 30 screen shot 2015-03-11 at 18 48 52 screen shot 2015-03-11 at 18 49 01 screen shot 2015-03-11 at 18 49 16

demianw commented 9 years ago

Yes, although the box might be too close to the mid-saggital slice and far away from the cortex (ie it is mostly on white matter). I encourage you to explore a bit more by moving the block around the parietal lobe’s cortex. Going more lateral and more inferior.

But if the image is still close to this, meaning no transcallosal tracts showing you might get an idea why tract_querier gives you zero tracts as a result.

D

Demian Wassermann, PhD demian.wassermann@inria.fr Research Scientist Athena Project Team INRIA Sophia Antipolis - Méditerranée 2004 route des lucioles - FR-06902

On 11 Mar 2015, at 18:50, Georgios Lazaridis notifications@github.com wrote:

Is it better now?

— Reply to this email directly or view it on GitHub.

gelazari commented 9 years ago

Tried some positions

screen shot 2015-03-11 at 20 23 41 screen shot 2015-03-11 at 20 25 20

demianw commented 9 years ago

OK, this holds for my argument:

tract_querier is not finding the bundle cause the tracts stop mid-way through the white matter and do not reach the cortex on the contralateral parietal lobe from the one you are setting the ROI.

The solution to this would be to adjust the tractography algorithm parameters. However, this might mean that other tracts that were coming out well, might start having issues.

demianw commented 9 years ago

Hello @gelazari , are we OK with this diagnosis? Can I close the issue then?

gelazari commented 9 years ago

I don't think so. I am still trying to figure out the Mrtrix3 parameters that will generate tracks which don't result in 0 output for the specific WMQL queries...

gelazari commented 9 years ago

I am still trying to figure some parameters that won't result in 0 for these queries. It's amazing but i am not getting even 1 track labeled for these queries, regardless of changing the parameters.