How to fix oblique dataset issue

3dresample -master warsub-01_rest-MCI.nii -prefix MASK_resampl
ed -input MASK+tlrc
*+ WARNING: If you are performing spatial transformations on an oblique dset,
such as ./MASK+tlrc.BRIK,
or viewing/combining it with volumes of differing obliquity,
you should consider running:
3dWarp -deoblique
on this and other oblique datasets in the same session.
See 3dWarp -help for details.
++ Oblique dataset:./MASK+tlrc.BRIK is 16.472595 degrees from plumb.


I got this warning after 3dresample command to extract ROIs. Kindly help me with how to get time-series for these types of dataset.


That is only a warning to let you know that you are dealing with an oblique dataset. As the warning indicates, there can be problems mixing data of differing obliquity, and these may not display correctly with differently oblique datasets in the AFNI GUI. If you already know that, then you can safely ignore that warning. There is an environment variable to turn that off, AFNI_NO_OBLIQUE_WARNING, that you can set to YES in your .afnirc file.

The bigger question is what these datasets are and what you are trying to do with them. The mask seems to be in a standard space (+tlrc view of the dataset), and your dataset is oblique, unlikely for a dataset in a standard template space. If the two are in different spaces, then resampling isn’t what you want to do; you need to apply spatial transformations to either the mask or to the original dataset to bring it into the space of the other. Maybe, you’ve picked the wrong datasets for this operation?