MECOMBINE(1)
π 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:
PAID=>TE * SNRTE=>TESimple 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_combinedsuffix stuck on the end. cute, right?-a {PAID,TE,average},--algorithm {PAID,TE,average}β the combination algorithm. default isTE. π-w [WEIGHTS ...],--weights [WEIGHTS ...]β the weights (like, e.g.=echo times) for all echoes.-s,--saveweightsβ if you pass this and the algorithm isPAID, it saves the weights. β¨-v VOLUMES,--volumes VOLUMESβ how many volumes get used to compute the weights, if the algorithm isPAID.
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
- fedora 43: python3-multiecho 0.31-4.fc43 Β· Apache-2.0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms