MRS_TOOLS-RESHAPE(1)
π mrs_tools-reshape β the manual, but make it cute π
okay bestie, welcome to mrs_tools-reshape(1) π
it lives in the User Commands section of the manual, and it's here to reorder higher dimensions of NIfTI-MRS. that's the whole vibe. the 5th, 6th and 7th dims are the main characters here and we're rearranging them. periodt. β¨
πΈ SYNOPSIS πΈ
mrs_tools reshape [-h] --file FILE --shape SHAPE [SHAPE ...] [--d5 D5]
[--d6 D6] [--d7 D7] [--output OUTPUT] [--filename FILENAME]
like, that's the shape of the call (pun absolutely intended, i'm obsessed with me). let's break it down π«Ά
β¨ OPTIONS β¨
π OPTIONAL ARGUMENTS
these ones are the nice to have squad. they don't have to show up, but they slay when they do.
-h,--helpβ pops up a help message and then dips. iconic behaviour honestly π--d5 D5β the tag for the 5th dimension (think something likeDIM_DYN). label your dims, bestie π·οΈ--d6 D6β same energy, but for the 6th dimension (e.g.DIM_DYN).--d7 D7β you guessed it: the tag for the 7th dimension (e.g.DIM_DYN). that's the last one we go up to, no cap.--output OUTPUTβ where the output folder goes. lowkey defaults to the current directory if you don't say anything π--output-adjacent energy, but actually:--filename FILENAMEβ overrides the output file names. you get to name the babies yourself πΌ
π REQUIRED ARGUMENTS
no skipping these. they're mandatory. main character requirements only.
--file FILEβ the file you wanna reshape. that's it, that's the file π--shape SHAPE [SHAPE ...]β a numpy-like target shape. enter them as integers, and-1means "whatever, any value works" for that slot. only enter shape values for the higher dimensions, so the 5th through 7th. don't get cute with the lower ones π
fr fr though: -1 is your "idk, you pick" placeholder, and shape input is strictly for the 5thβ7th dims. don't come for me if you put the wrong dims in there π
π¦ SEE ALSO π¦
the whole friend group, go say hi:
and the rest of the crew:
mrs_tools-info(1),mrs_tools-vis(1),mrs_tools-merge(1),mrs_tools-split(1),mrs_tools-reorder(1),mrs_tools-conjugate(1)
mwah π that's the page! this little gem is dated November 2023 and it's filed under MRS_TOOLS-RESHAPE(1) β go reshape something gorgeous, bestie ππ
π¦ where this page comes from
- fedora 43: python3-nifti-mrs 1.3.3-9.fc43 Β· BSD-3-Clause AND Unlicense
- fedora 43: python3-nifti-mrs 1.4.1-1.fc43 Β· BSD-3-Clause AND Unlicense
- fedora 44: python3-nifti-mrs 1.3.5-1.fc44 Β· BSD-3-Clause AND Unlicense
- fedora 44: python3-nifti-mrs 1.4.1-1.fc44 Β· BSD-3-Clause AND Unlicense
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms