"Dense Amygdala": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals.
The 12 matches
- [1] § Methods › Video feature labeling › Audio features ↔ vidfeats/basic_audio_features/audio_extractor.py, lines 19 to 147 · score 0.97 · zero crossing rate, peak envelope, peak amplitude, hop length, FFmpeg, audio · Report a mismatch
- [2] § Methods › Video feature labeling › Face features ↔ vidfeats/facedetect_bodyparts/facebody_helpers.py, lines 224 to 284 · score 0.78 · facial landmarks, bounding box, face detection, nose, mouth, eye · Report a mismatch
- [3] § Methods › Data preprocessing › Functional data preprocessing ↔ mriphysio/phaseresp.py, lines 1 to 19 · score 0.69 · phase unwrapped, BOLD timeseries, Phase channel, MRI, EPI, brain · Report a mismatch
- [4] § Methods › Data preprocessing › Functional data preprocessing ↔ mriphysio/phaseresp.py, lines 1 to 19 · score 0.68 · temporally unwrapped, phase channel, respiration waveforms, PhaseRespWave, class, mriphysio · Report a mismatch
- [5] § Data Record ↔ mriphysio/bidsphysio.py, lines 14 to 152 · score 0.68 · Heart rate, Respiration waveforms, sidecars, compressed, TSV, Metadata · Report a mismatch
- [6] § Data Record ↔ voxface/__main__.py, lines 1 to 40 · score 0.57 · T2w structural images, Brain Imaging, voxface, T1w, license, MRI · Report a mismatch
- [7] § Methods › Data preprocessing › Functional data preprocessing ↔ mriphysio/bidsphysio.py, lines 14 to 152 · score 0.57 · respiratory transducer waveform, phase, mriphysio, channel · Report a mismatch
- [8] § Technical Validation › fMRI quality metrics › Head motion ↔ mriphysio/ecg.py, lines 46 to 176 · score 0.54 · quality control, 0.15 mm, contamination, median · Report a mismatch
- [9] § Methods › Data preprocessing › Functional data preprocessing ↔ extract_features.py, lines 161 to 205 · score 0.52 · GitHub, preprocessing pipeline, repository · Report a mismatch
- [10] § Methods › Data preprocessing › Functional data preprocessing ↔ vidfeats/basic_visual_features/bvisual_extractor.py, lines 188 to 334 · score 0.52 · GitHub, preprocessing pipeline, repository · Report a mismatch
- [11] § Usage Notes ↔ mriphysio/ecg.py, lines 46 to 176 · score 0.51 · frequency bands, contamination, cardiac, duration, physiological, 0.1 Hz · Report a mismatch
- [12] § Methods › Audiovisual stimuli ↔ vidfeats/basic_visual_features/bvisual_extractor.py, lines 188 to 334 · score 0.51 · GitHub, repository, FPS, filtered, noise, stimuli · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 182 lines · 6.7 KB · MIT · 2 matches
- """
- Class for estimating the respiratory waveform from the phase channel of an EPI timeseries
- - Developed specifically for the Dense Amygdala project, but more widely useful for complex-valued fMRI
- - Required temporally unwrapped complex phase difference BOLD timeseries with critical or better temporal sampling of respiration
- - Do NOT use Laplacian phase unwrapping which removes most of the respiration phase modulation
- AUTHOR : Mike Tyszka
- PLACE : Caltech Brain Imaging Center
- DATES : 2024-12-05 JMT Build from ideas in Calhoun complex phase fMRI
- """
- import json
- import os.path as op
- import numpy as np
- import pandas as pd
- import nibabel as nib
- import scipy as sp
- from sklearn.decomposition import PCA
- from .bidsphysio import save_bids_physio
- class PhaseRespWave:
- def __init__(self, dphi_pname, wmask_pname, method='weighted_mean', n_pca=1):
- """
- :param dphi_pname: str, Pathlike
- Path to the temporally unwrapped complex phase difference 3D x time Nifti image
- :param wmask_pname: str, Pathlike
- Path to weighting mask Nifti image. Contains floats [0, 1]
- :param method: str, optional
- Method for respiration waveform estimation ['weighted_mean' or 'pca']
- :param n_pca: int, optional
- Number of PCA components to retain [1]
- """
- # Load the 4D phase difference image
- self.dphi_nii = nib.load(dphi_pname)
- self.dphi = self.dphi_nii.get_fdata()
- # Create a time vector from the TR and number of timepoints
- self.tr_s = self.dphi_nii.header['pixdim'][4]
- self.nt = self.dphi.shape[3]
- # Time vector for mid-TR of each volume
- self.t_s = (np.arange(0, self.nt) + 0.5) * self.tr_s
- # Load the 3D probabilistic computation mask
- self.wmask_nii = nib.load(wmask_pname)
- self.w = self.wmask_nii.get_fdata()
- # Clamp weights to [0, 1]
- self.w = np.clip(self.w, 0, 1)
- # PCA components to retain
- self.n_pca = n_pca
- assert method in ['weighted_mean', 'pca'], f'Unknown method {method}'
- self.method = method
- def estimate(self):
- """
- Respiratory waveform estimation from phase difference 3D x time image
- """
- print('\nRespiration Waveform Reconstruction')
- print('-------------------------------------')
- print(f' Method: {self.method}')
- if self.method == 'pca':
- print(f' Number of PCA components: {self.n_pca}')
- print(f' TR: {self.tr_s:.3f} s')
- print(f' Number of timepoints: {self.nt}')
- print(f' Voxel dimensions: {self.dphi.shape[0:3]}')
- # Flatten the spatial dimensions and transpose to create temporal-spatial data matrix X
- # X is Nt x Nvox
- X = self.dphi.reshape(-1, self.dphi.shape[3]).T
- match self.method:
- case 'weighted_mean':
- # Weighted mean of signal
- # Calculate the mask weighted spatial mean phase difference for all volumes
- mean_dphi = np.average(X, axis=1, weights=self.w.flatten())
- # High pass filter by subtracting savgol baseline
- # For similarity to typical first PCA component
- k = int(10.0 / self.tr_s)
- bline = sp.signal.savgol_filter(mean_dphi, window_length=k, polyorder=3)
- mean_dphi_hpf = mean_dphi - bline
- respwave = np.zeros([self.nt, 2])
- respwave_dict = {
- 'Time': self.t_s,
- 'Resp': mean_dphi_hpf,
- }
- self.resp_df = pd.DataFrame(respwave_dict)
- # Add peak inhalation/exhalation labels
- self.resp_peaks()
- case 'pca':
- # Weighted temporal PCA of signal
- # Returns temporal components and spatial weights
- temporal_components, spatial_weights, _ = self.weighted_pca(X, self.w.flatten(), self.n_pca)
- # Retain first component as respiration waveform
- respwave = np.zeros([self.nt, 1+self.n_pca])
- respwave[:, 0] = self.t_s
- respwave[:, 1:] = temporal_components
- # Construct respiration waveform dataframe
- resp_headers = [f'Resp{pc+1}' for pc in range(self.n_pca)]
- self.resp_df = pd.DataFrame(respwave, columns=['Time'] + resp_headers)
- # Add peak inhalation/exhalation labels
- self.resp_peaks()
- return self.resp_df
- def resp_peaks(self):
- """
- Find peak inhalation and exhalation in the respiration waveform
- """
- # Find positive peaks in respiration waveform
- min_period = 1.0 / self.tr_s
- pos_peaks, _ = sp.signal.find_peaks(self.resp_df['Resp'], distance=min_period)
- neg_peaks, _ = sp.signal.find_peaks(-self.resp_df['Resp'], distance=min_period)
- # Add peak locations to respiration waveform dataframe
- self.resp_df['Peak'] = 'n/a'
- self.resp_df.loc[pos_peaks, 'Peak'] = 'Inhalation'
- self.resp_df.loc[neg_peaks, 'Peak'] = 'Exhalation'
- return self.resp_df
- def to_bids(self, bids_outdir, bids_stub):
- # Save the respiration waveform to BIDS physio format (tsv.gz + json)
- save_bids_physio(bids_outdir, bids_stub, self.resp_df)
- @staticmethod
- def weighted_pca(X, w, n_pca=1):
- """
- Weighted PCA of temporal (Nt rows) x spatial (Nvox columns) data matrix X
- - spatial weights are applied to each column of X
- :param X: np.ndarray, shape (Nt, Nvox)
- Temporal spatial data matrix
- :param w: np.ndarray, shape (Nvox,)
- Voxel Weights for each column of X
- :param n_pca: int, optional (default = 1)
- Number of PCA components to retain
- """
- # Step 1: Apply spatial weights
- Xw = X * w # Broadcasting
- # Step 2: Standardize the data (optional, depending on your needs)
- mean = np.mean(Xw, axis=0)
- sd = np.std(Xw, axis=0)
- Xstd = np.zeros_like(Xw)
- nonzero = sd > 0.0
- Xstd[:, nonzero] = (Xw[:, nonzero] - mean[nonzero]) / sd[nonzero]
- # Step 3: Perform PCA
- pca = PCA(n_components=n_pca)
- pca.fit(Xstd)
- # Report key PCA results
- print(f' PCA singular values : {pca.singular_values_}')
- print(f' PCA exp var ratio : {pca.explained_variance_ratio_}')
- # Step 4: Retrieve results
- temporal_components = pca.transform(Xstd) # Principal components
- spatial_patterns = pca.components_ # Eigenvectors for spatial patterns
- return temporal_components, spatial_patterns, pca
phaseresp.py at commit 86a8854, under MIT · at the source
Overview
- Division of Humanities and Social Sciences, California Institute of Technology, Pasadena, CA USA
- Division of Biology and Bioengineering, California Institute of Technology, Pasadena, CA USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 12 matches between paragraphs and lines of code.
ukeles/VidFeatureXtract
24efd2c094ae2f5a5023507b70b5f7ce65fdca06, 7 July 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
26 files
- extract_features.py, Python, 462 lines, 1 match
- setup.py, Python, 37 lines
- vidfeats/
basic_audio_features/ , Python, 271 lines, 1 matchaudio_extractor.py - vidfeats/
basic_visual_features/ , Python, 335 lines, 2 matchesbvisual_extractor.py - vidfeats/
basic_visual_features/ , Python, 188 linespygist.py - vidfeats/
clip_features/ , Python, 249 linesclip_extractor.py - vidfeats/
facedetect_bodyparts/ , Python, 161 linesbodyparts_extractor.py - vidfeats/
facedetect_bodyparts/ , Python, 304 linesface_extractor.py - vidfeats/
facedetect_bodyparts/ , Python, 800 lines, 1 matchfacebody_helpers.py - vidfeats/
mediaio.py , Python, 428 lines - vidfeats/
semantic_segmentation/ , Python, 290 lineslabel_cfgs.py - vidfeats/
semantic_segmentation/ , Python, 160 linesoneformer_extractor.py - vidfeats/
semantic_segmentation/ , Python, 427 linesvis_helper.py - vidfeats/
semantic_segmentation/ , Python, 160 linesvis_simple.py - vidfeats/
thirdparty/ , Python, 60 linesmoten/ __init__.py - vidfeats/
thirdparty/ , Python, 133 linesmoten/ colorspace.py - vidfeats/
thirdparty/ , Python, 735 linesmoten/ core.py - vidfeats/
thirdparty/ , Python, 311 linesmoten/ extras.py - vidfeats/
thirdparty/ , Python, 331 linesmoten/ io.py - vidfeats/
thirdparty/ , Python, 726 linesmoten/ pyramids.py - vidfeats/
thirdparty/ , Python, 62 linesmoten/ utils.py - vidfeats/
thirdparty/ , Python, 103 linesmoten/ viz.py - vidfeats/
utils/ , Python, 174 linesio_helpers.py - vidfeats/
utils/ , Python, 63 linesvideo_processing.py - LICENSE, License, 28 lines
- README.md, Text, 266 lines
adolphslab/mriphysio
86a8854ef59fcd48890f53042458797cda4f8d96, 21 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
14 files
- data/
notebooks/ , Jupyter, 142 linesphaseresp.ipynb - matlab/
mpcu.m , MATLAB, 87 lines - matlab/
mpcu_parse.m , MATLAB, 167 lines - mriphysio/
__init__.py , Python, 4 lines - mriphysio/
bidsphysio.py , Python, 186 lines, 2 matches - mriphysio/
conv_physiologs.py , Python, 336 lines - mriphysio/
ecg.py , Python, 183 lines, 2 matches - mriphysio/
epi2resp.py , Python, 67 lines - mriphysio/
phaseresp.py , Python, 182 lines, 2 matches - mriphysio/
physio2bids.py , Python, 90 lines - mriphysio/
physiodicom.py , Python, 427 lines - mriphysio/
test_bidsphysio.py , Python, 27 lines - LICENSE, License, 21 lines
- README.md, Text, 38 lines
jmtyszka/voxface
4a1d49850782509107e035c7f4495990ecc1a49f, 21 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
4 files
- voxface/
__init__.py , Python, 1 line - voxface/
__main__.py , Python, 189 lines, 1 match - LICENSE, License, 21 lines
- README.md, Text, 33 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: adolphslab/
mriphysio , jmtyszka/voxface
Read it in the paper: doi.org/10.1038/s41597-026-07065-x.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 38 scripts, each with its path and the digest of its content;
- 12 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- doi:10.18112/
openneuro.ds006947.v1.0. , at OpenNeuro; found in the references1
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41597-026-07065-x.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 10 MeSH terms, 1 funder, 59 references.
Cite
This paper
Tyszka, J. M., Diamandis, Z., Keles, U., Xu, Y., Kim, N. Y., Zhu, W., Wu, Q., Kahn, D. A., & Adolphs, R. (2026). "Dense Amygdala": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals. Scientific data, 13(1), 738. https://
BibTeX
@article{tyszka2026dense
author = {Tyszka, J Michael and Diamandis, Zachary and Keles, Umit and Xu, Yue and Kim, Na Yeon and Zhu, Wenying and Wu, Qianying and Kahn, David A and Adolphs, Ralph},
title = {{"Dense Amygdala": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals}},
journal = {Scientific data},
year = {2026},
month = mar,
volume = {13},
number = {1},
pages = {738},
publisher = {Nature Publishing Group},
issn = {2052-4463},
doi = {10.1038/
url = {https://
pmid = {41876628},
pmcid = {PMC13179352}
}
RIS
TY - JOUR
AU - Tyszka, J Michael
AU - Diamandis, Zachary
AU - Keles, Umit
AU - Xu, Yue
AU - Kim, Na Yeon
AU - Zhu, Wenying
AU - Wu, Qianying
AU - Kahn, David A
AU - Adolphs, Ralph
TI - "Dense Amygdala": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals
T2 - Scientific data
J2 - Sci Data
PY - 2026
DA - 2026/
VL - 13
IS - 1
SP - 738
SN - 2052-4463
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "\"Dense Amygdala\": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals",
"container-title": "Scientific data",
"author": [
{
"family": "Tyszka",
"given": "J Michael"
},
{
"family": "Diamandis",
"given": "Zachary"
},
{
"family": "Keles",
"given": "Umit"
},
{
"family": "Xu",
"given": "Yue"
},
{
"family": "Kim",
"given": "Na Yeon"
},
{
"family": "Zhu",
"given": "Wenying"
},
{
"family": "Wu",
"given": "Qianying"
},
{
"family": "Kahn",
"given": "David A"
},
{
"family": "Adolphs",
"given": "Ralph"
}
],
"container-title-short":
"volume": "13",
"issue": "1",
"page": "738",
"DOI": "10.1038/
"PMID": "41876628",
"PMCID": "PMC13179352",
"ISSN": "2052-4463",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
24
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41597-023-02471-x [code]
- A large-scale fMRI dataset for the visual processing of naturalistic scenes.Journal: Scientific dataIn common: PyBIDS, Pillow, NiBabel, 5 other tools, methods / tools, fMRI, 10 references
- [2] doi:10.1038/s41597-023-02325-6 [code]
- A large-scale fMRI dataset for human action recognition.Journal: Scientific dataIn common: PyBIDS, Pillow, NiBabel, 5 other tools, methods / tools, fMRI, 7 references
- [3] doi:10.1162/imag.a.117 [code]
- How much is "enough"? Considerations for functional connectivity reliability in pediatric naturalistic fMRI.Journal: Imaging neuroscience (Cambridge, Mass.)In common: ANTs, NiBabel, pandas, 3 other tools, fMRI, 10 references
- [4] doi:10.1038/s41597-024-03390-1 [code]
- Individual Brain Charting dataset extension, third release for movie watching and retinotopy data.Journal: Scientific dataIn common: PyBIDS, ANTs, Pillow, 6 other tools, methods / tools, 6 references
- [5] doi:10.7554/elife.79277 [code]
- Neuroscout, a unified platform for generalizable and reproducible fMRI research.Journal: eLifeIn common: PyBIDS, NiBabel, PyTorch, 5 other tools, methods / tools, fMRI, 6 references
- [6] doi:10.7554/elife.107933 [code]
- Modality-agnostic decoding of vision and language from fMRI.Journal: eLifeIn common: Hugging Face Transformers, OpenCV, Pillow, 7 other tools, fMRI, 5 references
- [7] doi:10.1016/j.neuroimage.2023.120109 [code]
- Benchmarking explanation methods for mental state decoding with deep learning models.Journal: NeuroImageIn common: PyBIDS, pydicom, ANTs, 8 other tools, methods / tools, 3 references
- [8] doi:10.1101/2024.12.03.626542 [code]
- Inter-subject correlations and their behavioral associations vary across movies: Implications for generalizabilityJournal: bioRxiv (preprint)In common: PyBIDS, NiBabel, scikit-learn, 4 other tools, fMRI, 7 references
- [9] doi:10.1038/s41592-025-02599-1 [code]
- DeepPrep: an accelerated, scalable and robust pipeline for neuroimaging preprocessing empowered by deep learning.Journal: Nature methodsIn common: PyBIDS, ANTs, Pillow, 7 other tools, methods / tools, 4 references
- [10] doi:10.1038/s41467-023-39862-y [code]
- The default network dominates neural responses to evolving movie stories.Journal: Nature communicationsIn common: NiBabel, scikit-learn, pandas, 3 other tools, 8 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 3 repositories of the authors' code, each at its verified commit and with its license, 38 scripts, and 12 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:3dbdc9e41c2529b3…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41597-026-07065-x)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41597-026-07065-x.svg
:target: https://openscicode.org/badge/doi/10.1038/s41597-026-07065-x
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41597-026-07065-x"><img src="https://openscicode.org/badge/doi/10.1038/s41597-026-07065-x.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
- ukeles/VidFeatureXtract: README.md on GitHub
- adolphslab/mriphysio: README.md on GitHub
- jmtyszka/voxface: README.md on GitHub
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
