general_remove_meta#

qx_mri.general.general_remove_meta(fin, fout)#

general_remove_meta(fin, fout)

Remove QuNex metadata from file.

Parameters

--fin (str):

A path to the file from which to remove metadata.

--fout (str, default ''):

A path to save the output file. If empty, overwrites the input file.

Returns

--out (nimage):

A nimage object with the extracted glm volumes.

Notes

Some files created by QuNex contain metadata in the header that some external tools may not be able to process correctly. This function removes such metadata.

Examples

qunex general_remove_meta \
    --fin='wm_effects.pscalar.nii' \
    --fout='wm_effects_nometa.pscalar.ni'