This directory contains both the active analysis pipeline and a substantial number of one-off notebooks, generated tables, and likely archival files, so the list below distinguishes reusable workflow code from materials that probably belong elsewhere.
prepdata.sh,run_prepdata.sh,heuristics.py, andshiftdates.pyconvert raw scanner data to BIDS, deface the T1w image, and shift scan dates for sharing.warpkit.shandrun_warpkit.shbuild fieldmap-style outputs from multi-echo magnitude/phase images and copy them into each subject'sbids/sub-*/fmapfolder.addUnits_func.pyupdates BIDS JSON sidecars withUnitsfields for magnitude and phase images.addIntendedFor_func.pyis misnamed and appears to duplicate part ofaddUnits_func.pyby settingUnits, so it should be reviewed for rename or possible deletion.update_IntendedFor.ipynbis an interactive metadata-fixing notebook that probably belongs in a more formal scripted workflow or an archive folder.print-echotime.shprints echo times from BIDS JSON sidecars for quick verification.check_TRs.shprints image dimensions for a specific acquisition as a quick consistency check.
convertSharedReward2BIDSevents.mconverts raw shared-reward task logs into BIDS-compliant_events.tsvfiles and encodes the counterbalance-to-acquisition mapping.gen3colfiles.sh,run_gen3colfiles.sh, andBIDSto3col.shconvert BIDS events into FSL 3-column EV files underderivatives/fsl/EVFiles.merge_ev_files.shappears to merge or reorganize EV timing files for downstream FSL use.gen_missingevs.shappears to identify or generate missing EV placeholders for incomplete timing sets.list_custom-evs.pysummarizes the presence and row counts of generated EV files into a CSV table.list_custom-evs_terminal.pyprints the same EV-file audit to the terminal instead of saving a spreadsheet.EV_Template2.ipynbis a notebook version of EV-generation logic and is probably archival unless it is still the preferred development interface.
mriqc.shandrun_mriqc.shrun MRIQC participant-level jobs over the BIDS dataset.fmriprep.sh,fmriprep-hpc.sh,run_fmriprep.sh, andrun_fmriprep-hpc.shrun fMRIPrep locally or on HPC for the study acquisitions.smooth-3dBlurToFWHM.shandrun_smooth-3dBlurToFWHM.shcreate 5 mm blurred copies of fMRIPrep outputs with AFNI3dBlurToFWHM.rsync_5mm_files.shcopies the 5 mm smoothed fMRIPrep files to the HPC workspace.MakeConfounds.pyextracts FSL-ready nuisance regressors from fMRIPrep confounds tables.genTedanaConfounds.pycombines tedana rejected-component information with fMRIPrep confounds to create tedana-plus-confounds design files.ApplyTransformAndTedanaConfounds.pylooks like an older notebook-export script that both warps tedana outputs and builds tedana confounds, so it should probably be split, renamed, or archived.compare_confounds.shcompares confounds files across versions for a requested acquisition.regenerate_fd_mean.shrecomputes framewise-displacement means for selected subjects and acquisitions.
tedana.shis a subject-specific local tedana runner hard-coded tosub-10777sp, so it looks like a one-off script rather than a general pipeline entry point.tedana-hpc.sh,tedana-rf1-hpc.sh,run_tedana_mbme.sh, andrun_tedana-rf1-hpc.share batch wrappers for tedana execution, with some scripts targeting this repository and others still pointing to older project layouts.run_tedana.shandrun_tedana-hpc.shstill point torf1-sra-datarather thanmultiecho-pilot, so they look like legacy carryovers that should be archived or deleted unless still needed elsewhere.my_tedana_mbme.pyruns tedana across multi-echo acquisitions in parallel and appears to be an older Python entry point.tedana-multi.pyruns tedana for one subject by discovering all multi-echo acquisitions in that subject's fMRIPrep output.
L1stats.shis the main first-level FSL script for activation, seed-based PPI, and network PPI analyses across acquisitions and denoising options.run_L1stats.shis the main local wrapper that fansL1stats.shacross subjects, acquisitions, and denoising modes.run_L1stats-copy.shrepeats the same wrapper pattern for alternative first-level models.L1stats-hpc.shis an HPC-oriented first-level command generator that appears to represent a variant pipeline rather than the current default local workflow.run_L1stats-hpc.shlooks incomplete or broken and should be reviewed before anyone relies on it.run_L1stats-hpc-test.shis another HPC submission wrapper that referencessublist-final.txt, which is not present here, so it also needs review.cleanL1-linuxbox.shrepairs FEAT registration links and removes bulky intermediate files after first-level runs.L2stats.shcombines the acquisition-specific first-level FEAT directories within subject to estimate within-subject sequence effects.run_L2stats.sh,run_L2stats_model-2.sh, andrun_L2stats_model-3.shbatch the second-level script across subjects for different first-level model families.copy-model-4.shmoves model outputs from an HPC derivative tree back into the mainderivatives/fsltree.L3stats.shruns group-level FEAT analyses and optionalrandomisepermutation tests on selected copes.run_L3stats.shbatches the group-level script across cope numbers and contrast names.
computeTSNRandSmoothness.sh,computeTSNRandSmoothness_ROIs.sh, andrun_computeTSNRandSmoothness.shbuild special FEAT runs for estimating tSNR and AFNI smoothness across acquisitions.multiecho-inputs.shmerges coil information with.feat-level tSNR summaries into a CSV for downstream statistics.extract_signal.shextracts ROI means for beta, variance, z-statistic, or tSNR images across subjects, acquisitions, and masks.extract-coil.shandget_coil.share two versions of the same basic coil-extraction utility and could likely be consolidated.tsnr-compile.shwrites a list of FEAT directories for laterfslstatssummarization.tsnr-fslstats.shreads that directory list and prints FEAT-derived summary values.make_r-squared_diff.sh,compile_r-square_diff.sh,print_r-squared_diff.sh, andanalyze_diff.shsupport comparison of base versus tedana model fit images and inspect differences between output files.
Outliers-motion.pyis the clearest acquisition-level MRIQC outlier script for this repository and writes outlier tables and group covariates.OutlierID.pyappears to be an older adaptation of the outlier workflow and may be buggy because it referencesoutlier_run_Custom1even though the script defines acquisition-level outliers.IDoutliers.pycombines behavioral misses, motion, and MRIQC summaries into an exclusions table.IDoutliers_test.ipynbis a notebook version or test bed for the exclusions logic and is probably archival.SRNDNA_OutlierID.pyis explicitly labeled as project-specific to another study and should probably be archived or deleted from this repository.
gen_anova-inputs.shgenerates lists of first-level PPI cope files that feed into AFNI mixed-effects analyses.anova-inputs_ppi_20ch.txtandanova-inputs_ppi_64ch.txtare generated file lists for AFNI modeling rather than reusable source code.afni-3dLMEr_copes.shruns AFNI3dLMErmodels on cope images and then performs smoothness estimation, cluster simulation, and thresholding.afni-3dLMEr_zstats.shruns parallel AFNI3dLMErmodels on z-stat images and then performs cluster-thresholded follow-up maps..3dLMEr.dbg.AFNI.argsis an AFNI debug artifact and should probably be deleted or moved out of versioned source code.
multiecho-plots.Rmdis an R Markdown analysis of tSNR and smoothness by acquisition, echo structure, and coil.plot_figures.ipynbappears to be a notebook for study figures and summary visualizations.print_statistics.ipynb,print_statistics-clean.ipynb, andprint_statistics-update.ipynbare successive notebook-based statistical reporting workflows, and only the most current version should probably stay in the main code area.multiecho-pilot_Demographics.xlsxis an analysis input or summary table rather than executable code and likely belongs inderivatives/orreports/.smoothness-all.csv,smoothness-all-zero.csv, andsmoothness_multi_echo_table.csvare generated summary tables rather than source code and would fit better underderivatives/orreports/.age_distribution_by_headcoil.png,dlpfc_motion_tedana_mb6me4.png, andipl_motion_hc_interaction_mb1me4.pngare figure outputs and would be cleaner in a plots or reports folder instead ofcode/.
sublist-20ch.txt,sublist-64ch.txt,sublist-all.txt,sublist-complete.txt,sublist-deriv.txt,sublist-fix.txt,sublist-headcoils.txt,sublist-included.txt,sublist-loc.txt,sublist-openneuro.txt,sublist-randomise.txt,sublist-source.txt,sublist-sp.txt, andsublist-test.txtdefine analysis cohorts or convenience subsets for different pipeline steps.
.RDatais a saved R workspace and should probably be deleted from source control.Untitled1.ipynbappears empty and should probably be deleted.design_matrices/is currently empty and can either be populated intentionally or removed.outputs/is currently empty and can either be populated intentionally or removed.