-
Notifications
You must be signed in to change notification settings - Fork 14
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
Atlas file inputted into RABIES differs in orientation and fov to the output files of RABIES. #338
Comments
Hey Karis, the orientation is standardized to RAS during preprocessing, so this may differ from your inputs. Preprocessing will output a re-oriented/resampled version of the template and atlas files provided (there is commonspace_labels as you mentionned, but also commonspace_resampled_template for the resampled template). The resolution will be matching your functional images (or what was provided to --commonspace_resampling), as well as the FOV. Can you be more precise regarding the mismatch in FOV you observe with the commonspace_labels files? Is it relative to the commonspace preprocessed functional images? |
My guess here is that the input files are in non-standard orientation. Can you open a representative set of input files (and the atlas) in itk-snap and share screenshots? |
Of course! Yes, exactly the mismatch is relative to the commonspace preprocessed functional images. Please see below! sizeof_hdr 348 filename resampled_template.nii.gz sizeof_hdr 348 filename sub-01_r1_a1_d1_b1_bold_EPI_anat_labels.nii.gz sizeof_hdr 348 |
The headers don't actually tell us what we need to know, which is the orientation of the data itself relative to the header coordinates interpreted by a tool we understand. Can you please produce some screenshots from ITK-snap. Thanks. |
I'm sorry, I must ask again. Please provide screenshots of representative input data, as well as the atlas you're using with ITK-snap. |
Hey, I'm not sure I fully understand. Did you check if the resampled_template file does overlap with the functional files? Can you show those side by side, and then show the resampled_template next to the Fischer template? The differences between the original Fischer template file and the resampled_template should be two-fold: a conversion to RAS orientation (this function RABIES/rabies/preprocess_pkg/utils.py Line 194 in a62094c
Line 42 in a62094c
|
The orientation of the input files is as expected. They are properly aligned with the anatomical directions. @Gab-D-G perhaps you should be completely explicit on which output files are which, and what space they are expected to be in, after that @KarisColyerPatel can use ITK-snap to confirm said alignment. |
Sorry if that wasn't clear. I would expect the resampled_template.nii.gz to be properly aligned with the preprocessed timeseries found in the commonspace_bold folder. We should confirm this is true. I don't see the overlap displayed in the previous comments. Then we can compare resampled_template.nii.gz to the original Fischer template to see where the mismatch originates from. Can you do this for us @KarisColyerPatel ? I would suspect something to do with RAS orientation, but I may be wrong. In the resample_image_spacing function, this resampling operation is carried out https://github.com/CoBrALab/RABIES/blob/a62094cf0737b8241d70f73fb12aed215634891b/rabies/utils.py#L56C70-L56C70, which should in my understanding only change voxel size and change the matrix dimensions accordingly, but can you take a look @gdevenyi to confirm this is accurate? |
Hey All,
Using the output from the DR step as input for fsl randomise was effective! I am now trying to load the atlas (Fischer344) I inputted into RABIES, but there appears to be issues with the orientation and FOV (they differ between the files). Is there an output from the preprocessing step (of the atlas labels) that I could use to input into fsleyes. I checked the commonspace_labels but there are still issues with the FOV! Also the files contained here are per rat rather than averaged across my sample.
The text was updated successfully, but these errors were encountered: