MECOMBINE(1)

πŸ“¦
version 0.31 Β· 2 versions
, in fedora 43

πŸ’– MECOMBINE β€” bestie edition πŸ’–

okay so real talk, this is mecombine(1), and it lives in the Generated Python Manual. she's a little script that ✨ combines your multi-echo echoes ✨ and honestly? she ate.


🌸 NAME 🌸

mecombine β€” that's her. that's the name. no notes. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

mecombine [-h] [-o OUTPUTNAME] [-a {PAID,TE,average}] [-w [WEIGHTS ...]]
[-s] [-v VOLUMES] pattern

✨ DESCRIPTION ✨

so basically: combine multi-echo echoes. 🧚 that's the whole vibe.

this is the toolkit for squishing multiple echoes from an fMRI acquisition into one. it expects your input files to be saved as NIfTIs, and preferably organised according to the BIDS standard β€” like, please, for the love of everything, BIDS. πŸ™

rn there are three different combination algorithms supported, and each one implements a different weighting scheme:

  1. PAID => TE * SNR
  2. TE => TE
  3. Simple Average => 1

πŸŽ€ pattern πŸŽ€

a globlike search pattern with a path, used to select the echo images that need to be combined. and because it's a search, bestie β€” double check that not too many files are being read. fr fr. πŸ‘€


πŸ’… OPTIONS πŸ’…

  • -o OUTPUTNAME, --outputname OUTPUTNAME β€” the file output name. if it's not a fullpath name, then the output lands in the same folder as the input. and if it's empty? the output filename becomes the filename of the first echo with a _combined suffix stuck on the end. cute, right?
  • -a {PAID,TE,average}, --algorithm {PAID,TE,average} β€” the combination algorithm. default is TE. πŸ’–
  • -w [WEIGHTS ...], --weights [WEIGHTS ...] β€” the weights (like, e.g. = echo times) for all echoes.
  • -s, --saveweights β€” if you pass this and the algorithm is PAID, it saves the weights. ✨
  • -v VOLUMES, --volumes VOLUMES β€” how many volumes get used to compute the weights, if the algorithm is PAID.
also -h exists in the synopsis because of course she does β€” help is always there for you 🫢

πŸ’€ COMMENTS πŸ’€

here are the examples, and yes we're keeping them verbatim because they're iconic:

mecombine 'bids/sub-001/func/*_task-motor_*echo-*.nii.gz'
mecombine 'bids/sub-001/func/*_task-rest_*echo-*.nii.gz' -a PAID
mecombine 'bids/sub-001/func/*_acq-MBME_*run-01*.nii.gz' -w 11 22 33
-o sub-001_task-stroop_acq-mecombined_run-01_bold.nii.gz

πŸ‘‘ AUTHOR πŸ‘‘

Daniel Gomez <dgomez1@mgh.harvard.edu> β€” the mastermind. main character energy, honestly. 🌟


🌈 DISTRIBUTION 🌈

the latest version of multiecho may be downloaded from:

https://github.com/Donders-Institute/multiecho

go get her. she's waiting. πŸ¦‹


okay bestie, that's the whole page β€” this was multiecho version 0.31, dated 2025-09-19, and you were reading the MECOMBINE(1) page. slay, periodt, go combine some echoes. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from