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
Custom atlas in T1w space #283
Comments
Dear experts, to obtain what I need, I decided to bring the custom parcellation from the original T1w space to the T1w space used in qsiprep. How exactly the original T1w image is brought into the T1w-mode space used for subsequent analyses? Thank you so much for your help! |
Hi @Giuseppe1988, you've found a bug or at least something that's not well documented. Does your data have multiple T1w images per subject? Those "mode" transforms are supposed to be register individual T1w scans to a subject's T1w template. This template image is then put into AC-PC alignment, which is what ultimately defines the T1w space where the DWI images are aligned. If there is only one image, then that "to mode" transform is an identity transform. |
Dear @mattcieslak, thank you for your answer. Regarding my original question (using custom atlases in subject space for the reconstruction), I am trying to do so by creating custom reconstruction and atlas_config .json files using the original parcellation warped into the template space as input. Is there any simpler solution to do that? |
To add a new atlas you'll need to make sure its aligned with this image in world coordinates. I recommend using ITK SNAP to check because it interprets headers the same way ANTs will. You also have to edit the atlas_config.json to ensure the metadata is there. I'm working on overhauling how the recon workflows ingress data and custom atlases will be part of this. Unfortunately for now the only way to add a custom T1w atlas is if it's already in MNI space. Since you have some experience looking through the working directories, you could copy one of the calc_connectivity directories used with a built-in atlas and substitute your files in it. A less accurate way would be to use the T1w-MNI transform to get your subject's atlas into MNI and then add this to the atlas_config.json. But this will cost you two interpolations, which would be sad for an atlas. |
Ok thanks. The files are correctly oriented. For now I think the simplest strategy is just to bring the custom atlas in the qsiprep-T1w space (applying the rigid transform computed in the preprocessing stage) and use the recon output (.tck and weights) to build the connectome outside of qsiprep. Looking forward for new advances in thi wondeful project! |
Dear qsiprep experts,
I am trying to obtain structural connectivity matrices for my dataset and I was thinking of using a custom brain parcellation that has been previously obtained with external software in the T1w space.
Is there a way to specify that the custom atlas is already in T1w space and the template-to-T1w transformation must not be applied?
Otherwise, I was thinking of applying the T1w-to-template transformation computed in the preprocessing stage to the custom atlas (with nearest neighbour interpolation) before feeding it to the reconstruction process. Any suggestions on how to efficiently implement this step? Could you please provide the exact command used by qsiprep to warp templates in the T1w space?
Thank you so much for your help,
Giuseppe
The text was updated successfully, but these errors were encountered: