THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing.
The 5 matches
- [1] § Results and discussion › Analysis of large database of synthetic and real-world systems ↔ notebooks/thoi_datasets_analysis.ipynb, lines 156–284 · score 0.69 · std MI, explained variance, syn plets, prop, PCA, components
- [2] § Results and discussion › Analysis of large database of synthetic and real-world systems ↔ notebooks/thoi_datasets_analysis.ipynb, lines 156–284 · score 0.62 · principal component, correlation matrix, PCA, variance, MI, Interdependence
- [3] § Materials and methods › Heuristics › Key characteristics. ↔ thoi/measures/gaussian_copula.py, lines 281–361 · score 0.58 · PyTorch, single batched, batch processing, sequence, efficiently, DTC
- [4] § Materials and methods › Scalable batch-based architecture for higher-order information computation › Parallel evaluation of higher-order information measures. ↔ thoi/measures/gaussian_copula.py, lines 489–574 · score 0.55 · Gaussian entropies, Gaussian copula, batch processing, covariance matrices, PyTorch, plet
- [5] § Materials and methods › Scalable batch-based architecture for higher-order information computation › Parallel evaluation of higher-order information measures. ↔ thoi/measures/gaussian_copula_hot_encoded.py, lines 80–139 · score 0.55 · sub covariance matrices, Gaussian entropies, Gaussian copula, PyTorch, batch
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Jupyter notebook · 284 lines · 10 KB · CC0-1.0 · 2 matches
- # %% [markdown]
- # ### Workflow for analyzing a database with more than 1000 datasets https://zenodo.org/records/7118947
- #
- #
- # It took 1230 seconds to compute all orders (from pairs to N) for:
- # * batch_size = 100000. Used only datasets with 20 or less variables
- # * In a 12th Gen Intel© Core™ i9-12900H × 14
- # * Linux mint 20.3
- # * Using les than 8 GB of RAM
- # %%
- # Import necessary libraries
- import numpy as np
- import pandas as pd
- import matplotlib.pyplot as plt
- from matplotlib.gridspec import GridSpec
- import seaborn as sns
- import time
- from pathlib import Path
- # Import THOI library functions
- from thoi.measures.gaussian_copula import multi_order_measures
- # Import sklearn functions for PCA and data scaling
- from sklearn.decomposition import PCA
- from sklearn.preprocessing import StandardScaler
- # %%
- # Define the data folder and filename
- data_folder = Path('../data/')
- filename = 'database_zenodo.pkl'
- # Load the data from the pickle file
- data_path = data_folder / filename
- data_obj = pd.read_pickle(data_path)
- # Extract dataset names and data
- dataset_names = list(data_obj.keys()) # Names of each dataset
- dataset_data = [data_obj[name]['data'] for name in dataset_names] # Data of each dataset
- # Calculate system sizes
- system_sizes = np.array([data.shape[0] for data in dataset_data]) # System size
- # Filter datasets with 20 or fewer variables
- max_size = 20
- valid_indices = np.where(system_sizes <= max_size)[0]
- filtered_data = [dataset_data[idx] for idx in valid_indices]
- filtered_names = [dataset_names[idx] for idx in valid_indices]
- # Print the number of filtered datasets
- print(f'Number of datasets {len(filtered_data)}')
- print('Number of datasets per size')
- for size, count in zip(*np.unique([np.shape(x)[0] for x in filtered_data], return_counts=True)):
- print('\tsize:', size,'\tamount:', count)
- # %%
- # NOTE: comment this block to avoid reprocessing already processed data
- # Computing high order interactions exhaustively for all the system with maximum 20 variables
- ini_time = time.time()
- batch_size = 100000
- output = [multi_order_measures(x.T, min_order=2, batch_size=batch_size) for x in filtered_data]
- final_time = (time.time() - ini_time)
- print(f'Total processing time for {len(filtered_data)} == {final_time} seconds')
- data_to_save = {
- "hoi_output": output,
- "data_names": filtered_names
- }
- # NOTE: uncomment this block to persist results to disk for later use
- #Path("../results/920_datasets").mkdir(parents=True, exist_ok=True)
- #with open('../results/920_datasets/hoi_output_full.pkl', 'wb') as f:
- # pickle.dump(data_to_save, f)
- # %%
- # NOTE: uncomment this block to read already processed data
- # Loading data
- #output = pd.read_pickle('../results/920_datasets/hoi_output_full.pkl')
- # %%
- # Setting negative S, TC and DTC values, and -+inf to nan, and O-infor for order 2 to Nan
- output_not_nan = [
- df.assign(tc=df['tc'].where(df['tc'] >= 0, np.nan),
- dtc=df['dtc'].where(df['dtc'] >= 0, np.nan),
- s=df['s'].where(df['s'] >= 0, np.nan),
- o=df['o'].where(df['order'] >= 3, np.nan))
- for df in output
- ]
- # %%
- # Computing pairwise metrics
- mi_averages = pd.DataFrame([df['tc'][df['order']==2].mean(skipna=True) for df in output_not_nan], columns=['mean_mi'])
- mi_stds = pd.DataFrame([df['tc'][df['order']==2].std(skipna=True) for df in output_not_nan], columns=['std_mi'])
- # %%
- # Extracting summary statistics for each dataset
- # Extracting the Min, Max and Mean for each measure
- mean_mes = pd.DataFrame([{col: df[col][df['order']>2].mean(skipna=True) for col in ['tc', 'dtc', 'o', 's']} for df in output_not_nan]).add_prefix('mean_')
- max_mes = pd.DataFrame([{col: df[col][df['order']>2].max(skipna=True) for col in ['tc', 'dtc', 'o', 's']} for df in output_not_nan]).add_prefix('max_')
- min_mes = pd.DataFrame([{col: df[col][df['order']>2].min(skipna=True) for col in ['tc', 'dtc', 'o', 's']} for df in output_not_nan]).add_prefix('min_')
- min_o_index = pd.DataFrame([(df['order'].iloc[df['o'].idxmin(skipna=True)])/df['order'].iloc[-1] for df in output_not_nan], columns=['o_min_k/N'])
- max_o_index = pd.DataFrame([(df['order'].iloc[df['o'].idxmax(skipna=True)])/df['order'].iloc[-1] for df in output_not_nan], columns=['o_max_k/N'])
- o_below_zero = pd.DataFrame([(df['o'] < 0).sum() for df in output_not_nan], columns=['num syn-plets'])
- o_above_zero = pd.DataFrame([(df['o'] > 0).sum() for df in output_not_nan], columns=['num red-plets'])
- prop_syn_red = pd.DataFrame([((df['o'] < 0).sum())/((df['o'] > 0).sum() + (df['o'] < 0).sum()) for df in output_not_nan], columns=['prop. syn-plets'])
- prop_syn_red = prop_syn_red.replace([np.inf, -np.inf], np.nan)
- whole_meas = pd.DataFrame([{col: df[col].iloc[-1] for col in ['tc', 'dtc', 'o', 's']} for df in output_not_nan]).add_prefix('whole_')
- sys_size = pd.DataFrame(data=[np.shape(x)[0] for x in filtered_data], columns=['N'])
- combined_df = pd.concat([whole_meas, mean_mes, max_mes, min_mes, mi_averages,
- mi_stds, min_o_index, max_o_index, prop_syn_red, sys_size,
- pd.DataFrame(data=filtered_names, columns=['name'])], axis=1)
- # Replacing infs with nans and removing rows with nans
- combined_df = combined_df.replace([np.inf, -np.inf], np.nan)
- combined_df_not_nan = combined_df.dropna()
- # %% [markdown]
- # ### Plotting results
- # %%
- # Computing correlation between features
- data_cols = combined_df_not_nan.columns[:-2]
- correlation_matrix = combined_df_not_nan[data_cols].corr(method='spearman')
- plt.figure(figsize=(12,8))
- sns.heatmap(correlation_matrix,
- vmin=-1, vmax=1, cmap='coolwarm',
- annot=True, annot_kws={'fontsize': 8},
- cbar_kws={'label': 'Correlation'})
- plt.show()
- # %% [markdown]
- # ### Principal component analysis of features across datasets
- # %%
- # PCA on features
- # Standardize the data if needed
- scaler = StandardScaler()
- scaled_data = scaler.fit_transform(combined_df_not_nan[data_cols])
- # scaled_data = combined_df_not_nan[data_cols]
- # Perform PCA
- pca = PCA()
- pca_result = pca.fit_transform(scaled_data)
- # %%
- plt.rcParams['pdf.fonttype'] = 42
- plt.rcParams['ps.fonttype'] = 42
- # Define titles and parameters
- pc_titles = [
- 'Overall Interdependence',
- 'Overall Independence',
- 'Presence of R-S across orders',
- 'O-information'
- ]
- col_names = ['whole TC','whole DTC',
- 'whole $\\Omega$',
- 'whole S','mean TC','mean DTC','mean $\\Omega$','mean S','max TC',
- 'max DTC','max $\\Omega$','max S','min TC','min DTC','min $\\Omega$',
- 'min S','mean MI','std MI','order min $\\Omega$','order max $\\Omega$','prop. syn-plets'
- ]
- correlation_matrix.columns = col_names
- correlation_matrix.index = col_names
- ncols = len(col_names)
- npcs = 4
- explained_variance = pca.explained_variance_ratio_
- pc_basis = pca.components_[:npcs]
- cols_colors = plt.get_cmap('tab10')(np.linspace(0, 1, 7))
- bar_colors = []
- for name in col_names:
- if name.endswith('MI'):
- bar_colors.append(cols_colors[3])
- elif name.startswith('mean'):
- bar_colors.append(cols_colors[1])
- elif name.startswith('min'):
- bar_colors.append(cols_colors[0])
- elif name.startswith('max'):
- bar_colors.append(cols_colors[2])
- elif name.startswith('order'):
- bar_colors.append(cols_colors[4])
- elif name.startswith('prop.'):
- bar_colors.append(cols_colors[5])
- else:
- bar_colors.append('black') # default color
- fig = plt.figure(figsize=(16, 12))
- gs = GridSpec(2, 4, height_ratios=[1, 1], hspace=0.4, wspace=0.25)
- # First row: Correlation matrix
- ax_corr = fig.add_subplot(gs[0, 0:2])
- sns.heatmap(
- correlation_matrix, vmin=-1, vmax=1, cmap='BrBG',
- annot=False, cbar_kws={'label': 'Correlation'}, ax=ax_corr, xticklabels=col_names, yticklabels=col_names,
- )
- ax_corr.invert_yaxis()
- ax_corr.invert_xaxis()
- ax_corr.set_title('Correlation Matrix')
- for label in ax_corr.get_yticklabels():
- text = label.get_text()
- if text.endswith('MI'):
- label.set_color(cols_colors[3])
- elif text.startswith('mean'):
- label.set_color(cols_colors[1])
- elif text.startswith('min'):
- label.set_color(cols_colors[0])
- elif text.startswith('max'):
- label.set_color(cols_colors[2])
- elif text.startswith('order'):
- label.set_color(cols_colors[4])
- elif text.startswith('prop.'):
- label.set_color(cols_colors[5])
- for label in ax_corr.get_xticklabels():
- text = label.get_text()
- if text.endswith('MI'):
- label.set_color(cols_colors[3])
- elif text.startswith('mean'):
- label.set_color(cols_colors[1])
- elif text.startswith('min'):
- label.set_color(cols_colors[0])
- elif text.startswith('max'):
- label.set_color(cols_colors[2])
- elif text.startswith('order'):
- label.set_color(cols_colors[4])
- elif text.startswith('prop.'):
- label.set_color(cols_colors[5])
- # First row: Explained variance
- ax_var = fig.add_subplot(gs[0, 2:4])
- ax_var.plot(range(1, len(explained_variance) + 1), np.cumsum(explained_variance), marker='o', linestyle='-')
- ax_var.set_xlabel('Principal Component')
- ax_var.set_ylabel('Explained Variance')
- ax_var.set_xticks(np.arange(1, len(explained_variance) + 1, 1))
- ax_var.grid(axis='y')
- # Second row: Principal components loadings
- axes_pc = []
- for i in range(npcs):
- ax = fig.add_subplot(gs[1, i])
- ax.barh(np.arange(ncols), pc_basis[i], color=bar_colors)
- ax.axvline(0, color='k', linestyle='--')
- ax.set_xlabel(f'PC{i + 1}')
- ax.set_xlim([-0.6, 0.6])
- ax.grid(axis='x')
- ax.set_title(pc_titles[i])
- if i != 0:
- ax.set_yticks([])
- else:
- ax.set_yticks(np.arange(ncols))
- ax.set_yticklabels(col_names)
- for label in ax.get_yticklabels():
- text = label.get_text()
- if text.endswith('MI'):
- label.set_color(cols_colors[3])
- elif text.startswith('mean'):
- label.set_color(cols_colors[1])
- elif text.startswith('min'):
- label.set_color(cols_colors[0])
- elif text.startswith('max'):
- label.set_color(cols_colors[2])
- elif text.startswith('order'):
- label.set_color(cols_colors[4])
- elif text.startswith('prop.'):
- label.set_color(cols_colors[5])
- plt.show()
thoi_datasets_analysis.ipynb at commit 426b675, under CC0-1.0 · at the source
Overview
- Laboratorio de Inteligencia Artificial Aplicada, Instituto de Ciencias de la Computación, Universidad de Buenos Aires, Buenos Aires, Argentina
- Instituto de Investigación en Ciencias de la Computación (ICC), CONICET-Universidad de Buenos Aires, Buenos Aires, Argentina
- Institut du Cerveau, Paris Brain Institute, ICM, Inserm, CNRS, Sorbonne Université, Paris, France
- Department of Computing, Imperial College London, London, United Kingdom
- Division of Psychology and Language Sciences, University College London, London, United Kingdom
- Universite Côte d’Azur, INRIA CRONOS Team, Sophia Antipolis, France
- Instituto de Física Interdisciplinar y Sistemas Complejos (IFISC, UIB-CSIC), Palma de Mallorca, Spain
- Department of Psychology, University of the Balearic Islands, Palma de Mallorca, Spain
Abstract
Complex systems are characterized by nonlinear dynamics, multi-level interactions, and emergent collective behaviors. Traditional analyses that focus solely on pairwise interactions often oversimplify these systems, neglecting the higher-order interactions critical for understanding their full collective dynamics. Recent advances in multivariate information theory provide a principled framework for quantifying these higher-order interactions, capturing key properties such as redundancy, synergy, shared randomness, and collective constraints. However, two major challenges persist: accurately estimating joint entropies and addressing the combinatorial explosion of interacting terms. To overcome these challenges, we introduce THOI (Torch-based High-Order Interactions), a novel, accessible, and efficient Python library for computing high-order interactions in continuous-valued systems. THOI leverages the well-established Gaussian copula method for joint entropy estimation, combined with state-of-the-art batch and parallel processing techniques to optimize performance across CPU, GPU, and TPU environments. Our results demonstrate that THOI significantly outperforms existing tools in terms of speed and scalability. Specifically, THOI reduces the time required to exhaustively analyze all interactions in small systems (≤ 30 variables). For larger systems, where exhaustive analysis is computationally impractical, THOI integrates optimization strategies that make higher-order interaction analysis feasible. We validate THOI’s accuracy using synthetic datasets with parametrically controlled interactions and further illustrate its utility by analyzing fMRI data from human subjects in wakeful resting states and under deep anesthesia. Finally, we analyzed over 900 real-world and synthetic datasets, establishing a comprehensive framework for applying higher-order interaction (HOI) analysis in complex systems. THOI opens new perspectives for testing both established and novel hypotheses about the multi-level, nonlinear, and multidimensional nature of complex systems.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
laouen/thoi
8a35577268195017e28167f5818b4f8cddbd013f, 9 June 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
40 files
- build_docs.sh, Shell, 4 lines
- docs/
_static/ , JavaScript, 123 lines_sphinx_javascript_frame works_compat.js - docs/
_static/ , JavaScript, 156 linesdoctools.js - docs/
_static/ , JavaScript, 13 linesdocumentation_options.js - docs/
_static/ , JavaScript, 2 linesjquery.js - docs/
_static/ , JavaScript, 1 linejs/ badge_only.js - docs/
_static/ , JavaScript, 1 linejs/ theme.js - docs/
_static/ , JavaScript, 228 linesjs/ versions.js - docs/
_static/ , JavaScript, 199 lineslanguage_data.js - docs/
_static/ , JavaScript, 619 linessearchtools.js - docs/
_static/ , JavaScript, 154 linessphinx_highlight.js - docs/
searchindex.js , JavaScript, 1 line - setup.py, Python, 33 lines
- source/
conf.py , Python, 48 lines - tests/
test_gaussian_copula_cov , Python, 102 linesmat.py - tests/
test_local_measures.py , Python, 347 lines - tests/
test_local_measures_anal , Python, 405 linesytical.py - tests/
test_multi_order_measure , Python, 102 liness.py - tests/
test_nplet_measures.py , Python, 237 lines - tests/
test_time_averaged_local , Python, 77 lines_vs_traditional.py - thoi/
__init__.py , Python, 1 line - thoi/
batch_processing_multi_o , Python, 104 linesrder.py - thoi/
collectors.py , Python, 585 lines - thoi/
commons.py , Python, 224 lines - thoi/
dataset.py , Python, 67 lines - thoi/
heuristics/ , Python, 2 lines__init__.py - thoi/
heuristics/ , Python, 48 linescommons.py - thoi/
heuristics/ , Python, 244 linesgreedy.py - thoi/
heuristics/ , Python, 71 linesscoring.py - thoi/
heuristics/ , Python, 234 linessimulated_annealing.py - thoi/
heuristics/ , Python, 245 linessimulated_annealing_mult i_order.py - thoi/
measures/ , Python, 1 line__init__.py - thoi/
measures/ , Python, 5 linesconstants.py - thoi/
measures/ , Python, 461 linesgaussian_copula.py - thoi/
measures/ , Python, 320 lines, 1 matchgaussian_copula_hot_enco ded.py - thoi/
measures/ , Python, 470 linesgaussian_copula_local.py - thoi/
measures/ , Python, 56 linesutils.py - thoi/
typing.py , Python, 9 lines - LICENSE, License, 21 lines
- README.md, Text, 152 lines
Zenodo 15020522
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
21 files
- setup.py, Python, 33 lines
- tests/
test_multi_order_measure , Python, 92 liness.py - tests/
test_nplet_measures.py , Python, 193 lines - thoi/
__init__.py , Python, 1 line - thoi/
collectors.py , Python, 483 lines - thoi/
commons.py , Python, 116 lines - thoi/
dataset.py , Python, 67 lines - thoi/
heuristics/ , Python, 2 lines__init__.py - thoi/
heuristics/ , Python, 48 linescommons.py - thoi/
heuristics/ , Python, 187 linesgreedy.py - thoi/
heuristics/ , Python, 71 linesscoring.py - thoi/
heuristics/ , Python, 161 linessimulated_annealing.py - thoi/
heuristics/ , Python, 161 linessimulated_annealing_mult i_order.py - thoi/
measures/ , Python, 1 line__init__.py - thoi/
measures/ , Python, 5 linesconstants.py - thoi/
measures/ , Python, 574 lines, 2 matchesgaussian_copula.py - thoi/
measures/ , Python, 317 linesgaussian_copula_hot_enco ded.py - thoi/
measures/ , Python, 62 linesutils.py - thoi/
typing.py , Python, 9 lines - LICENSE, License, 21 lines
- README.md, Text, 124 lines
Laouen/thoi_tutorials
426b67580bad25efdef77ab6a0badb2e6123149a, 22 January 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
34 files
- notebooks/
thoi_anesthesia.ipynb , Jupyter, 478 lines - notebooks/
thoi_benchmarking.ipynb , Jupyter, 187 lines - notebooks/
thoi_datasets_analysis.i , Jupyter, 284 lines, 2 matchespynb - notebooks/
thoi_optimizations.ipynb , Jupyter, 424 lines - notebooks/
thoi_simulated_annealing , Jupyter, 189 lines_stability.ipynb - scripts/
HOI_toolbox/ , Python, 33 linesalternative_codes/ brincolab_oinfo/ data2gaussian.py - scripts/
HOI_toolbox/ , Python, 59 linesalternative_codes/ brincolab_oinfo/ high_order.py - scripts/
HOI_toolbox/ , Python, 57 linesalternative_codes/ brincolab_oinfo/ soinfo_from_covmat.py - scripts/
HOI_toolbox/ , Python, 22 linesalternative_codes/ brincolab_oinfo/ toy_example.py - scripts/
HOI_toolbox/ , Python, 60 linescheck_gcmi_timing.py - scripts/
HOI_toolbox/ , Python, 78 linesmain.py - scripts/
HOI_toolbox/ , Python, 247 linesread_outputs.py - scripts/
HOI_toolbox/ , Python, 135 linestoolbox/ Oinfo.py - scripts/
HOI_toolbox/ , Python, 176 linestoolbox/ dOinfo.py - scripts/
HOI_toolbox/ , Python, 705 linestoolbox/ gcmi.py - scripts/
HOI_toolbox/ , Python, 37 linestoolbox/ lin_est.py - scripts/
HOI_toolbox/ , Python, 111 linestoolbox/ utils.py - scripts/
HOI_toolbox/ , Python, 76 linestoy_example.py - scripts/
go.run_scripts.sh , Shell, 62 lines - scripts/
run_anesthesia.py , Python, 203 lines - scripts/
run_jidt/ , Java, 30 linesCSVReader.java - scripts/
run_jidt/ , Java, 177 linesRandomSystemsGenerator.j ava - scripts/
run_jidt/ , Java, 93 linesRunMeasureTimesJIDT.java - scripts/
run_jidt/ , Java, 78 linesRunOinfoTimeBySampleSize .java - scripts/
run_jidt/ , Java, 34 linesTSVWriter.java - scripts/
run_simulated_annealing_ , Python, 166 linesstability.py - scripts/
run_time_by_order_HOI.py , Python, 83 lines - scripts/
run_time_by_order_HOI_to , Python, 95 linesolbox.py - scripts/
run_time_by_order_THOI.p , Python, 109 linesy - scripts/
run_time_by_sample_size_ , Python, 51 linesHOI.py - scripts/
run_time_by_sample_size_ , Python, 67 linesHOI_toolbox.py - scripts/
run_time_by_sample_size_ , Python, 56 linesTHOI.py - LICENSE, License, 121 lines
- README.md, Text, 35 lines
Zenodo 15020335
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
Code availability
The Python library presented in this study, THOI, is open-source and publicly accessible under the MIT license. It can be found at:
GitHub repository: https://
Python Package Index (PyPI): https://
Archived release on Zenodo: https://
All code necessary to reproduce the analyses demonstrated in this paper is available in the accompanying GitHub repository at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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:
- 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 89 scripts, each with its path and the digest of its content;
- 5 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
- openneuro:ds003171, at OpenNeuro; found in “Data Availability”
- zenodo:7118947, at Zenodo; found in “Data Availability”
Data Availability
All data underlying the results presented in this study are publicly available from external repositories. The anesthesia analysis dataset is available from the OpenNeuro repository at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 3 MeSH terms, 50 references.
Cite
This paper
Belloli, L., Mediano, P. A. M., Cofré, R., Slezak, D. F., & Herzog, R. (2026). THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing. PloS one, 21(5), e0348005. https://
BibTeX
@article{belloli2026thoi
author = {Belloli, Laouen and Mediano, Pedro A M and Cofré, Rodrigo and Slezak, Diego Fernandez and Herzog, Rubén},
title = {{THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing}},
journal = {PloS one},
year = {2026},
month = may,
volume = {21},
number = {5},
pages = {e0348005},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/
url = {https://
pmid = {42113765},
pmcid = {PMC13160338}
}
RIS
TY - JOUR
AU - Belloli, Laouen
AU - Mediano, Pedro A M
AU - Cofré, Rodrigo
AU - Slezak, Diego Fernandez
AU - Herzog, Rubén
TI - THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/
VL - 21
IS - 5
SP - e0348005
SN - 1932-6203
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"type": "article-journal",
"title": "THOI: An efficient and accessible library for computing higher-order interactions enhanced by batch-processing",
"container-title": "PloS one",
"author": [
{
"family": "Belloli",
"given": "Laouen"
},
{
"family": "Mediano",
"given": "Pedro A M"
},
{
"family": "Cofré",
"given": "Rodrigo"
},
{
"family": "Slezak",
"given": "Diego Fernandez"
},
{
"family": "Herzog",
"given": "Rubén"
}
],
"container-title-short":
"volume": "21",
"issue": "5",
"page": "e0348005",
"DOI": "10.1371/
"PMID": "42113765",
"PMCID": "PMC13160338",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
11
]
]
}
}
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/s41467-026-75959-w [code]
- Charting higher-order models of brain function beyond pairwise interactions.Journal: Nature communicationsIn common: NetworkX, seaborn, scikit-learn, 4 other tools, 15 references
- [2] doi:10.1016/j.patter.2026.101619 [code]
- Sampling bias corrections for discrete and Gaussian partial information decompositions.Journal: Patterns (New York, N.Y.)In common: seaborn, scikit-learn, pandas, 3 other tools, 6 references
- [3] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: Pingouin, NetworkX, seaborn, 5 other tools, 2 references
- [4] doi:10.1038/s41467-026-74466-2 [code]
- Neuromorphic hierarchical modular reservoirs.Journal: Nature communicationsIn common: Pingouin, NetworkX, seaborn, 5 other tools, 1 reference
- [5] doi:10.1038/s41398-026-04212-1
- High-order brain interactions during ketamine-induced state changes: A functional marker of response in late-life treatment-resistant depression?Journal: Translational psychiatryIn common: 3 references, author Rubén Herzog
- [6] doi:10.1007/s00422-026-01049-1 [code]
- A three-component dynamical index of consciousness-related neural organisation.Journal: Biological cyberneticsIn common: NetworkX, scikit-learn, pandas, 3 other tools, 3 references
- [7] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: Pingouin, NetworkX, PyTorch, 6 other tools
- [8] doi:10.1002/ana.78203 [code]
- AI-Driven Mapping of Seizure Spread Patterns.Journal: Annals of neurologyIn common: Pingouin, NetworkX, PyTorch, 6 other tools
- [9] doi:10.1162/netn.a.570 [code]
- Higher-order statistics for constructing centered edge functional connectivity.Journal: Network neuroscience (Cambridge, Mass.)In common: seaborn, scikit-learn, pandas, 3 other tools, 3 references
- [10] doi:10.1016/j.isci.2026.117375 [code]
- Motor priming is associated with widespread recruitment into neural ensembles and more rapid ensemble transitions.Journal: iScienceIn common: Pingouin, NetworkX, PyTorch, 6 other tools
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: 4 repositories of the authors' code, each at its verified commit and with its license, 89 scripts, and 5 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:c96c060a9c59b2bd…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
