Skip to main content

A package for parsing .mat files from CONN first-level ROI-to-ROI analyses and preparing data for COMBAT.

Project description

conn2combat - Extract First Level Data From CONN For Use With COMBAT.

This script is designed to parse .mat files generated from CONN first-level ROI-to_ROI analyses (https://web.conn-toolbox.org/resources) and output them in a format that can be used by COMBAT (https://github.com/Jfortin1/ComBatHarmonization).

Inputs are the CONN analysis directory, an output directory where the outputs should be stored, (optional) a list of ROIs of interest, and (optional) whether outputs should be limited to ROI-to-ROI.

Outputs consist of one CSV file per subject containing the correlation data for each ROI, and a combined CSV file containing all subjects' data.

Options

  • -d, --conn_directory: Path to the CONN analysis directory. Required.
  • -o, --output_directory: Path to the directory where the outputs will be saved. Default is the current directory.
  • -r, --rois: List of regions of interest (ROIs) to export. Default is all ROIs.
  • -l, --limit: Limits output to only ROI-to-ROI data (as opposed to ROIs-to-all including atlas and networks).

Example

combat2conn -d /path/to/conn_directory -o /path/to/output_dir -r ROI1 ROI2 ROI3

Requirements

  • Python 3.x (tested with python 3.11.11)

Install as package

  1. Install using pip:
    pip install conn2combat
    
  2. Process files:
    python -m combat2conn -d /path/to/conn_directory -o /path/to/output_dir -r ROI1 ROI2 ROI3
    

Run from source

  1. Clone the repository:
    git clone https://github.com/trevorbryanjackson/CONN_First_Level_Extraction.git
    
  2. Navigate to the project directory:
    cd CONN_First_Level_Extraction
    
  3. Install the required dependencies:
    pip install -r requirements.txt
    
  4. Process CONN directory:
    python conn2combat.py -d /path/to/conn_directory -o /path/to/output_dir -r ROI1 ROI2 ROI3
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conn2combat-0.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conn2combat-0.5.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file conn2combat-0.5.0.tar.gz.

File metadata

  • Download URL: conn2combat-0.5.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for conn2combat-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7c34026d2513e20612c2b6b93816adea8f06de8283a3c633957eed82adaab455
MD5 3246ac790b4976288a876ea0983e66a8
BLAKE2b-256 0d94b7f46544867e3e3356af1c9ebd487ee956c4fc4a52c53d56e92a2c9eef5e

See more details on using hashes here.

File details

Details for the file conn2combat-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: conn2combat-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for conn2combat-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bc53d16422f640c81e137f4de68b4f5bc208a773d3ae1778997a212a7b91112
MD5 d024a03986b5ddc5457b69848b758a1d
BLAKE2b-256 602b0c12add031c1fcec67dd39bb605290d4b048abfd628d8a51e1bd5946f1a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page