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.4.0.tar.gz (3.6 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.4.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for conn2combat-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c6b2ad46e26f6148147b291ef6a4491acfe1b9bd41e1aea3b7df6b5f3cff9812
MD5 36840e7d1c8a47f035da4dfa47b1e34f
BLAKE2b-256 22ca3f19a32ae996c293bbc74c35397385abc76835a5eb7b9ab07fd961c646f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conn2combat-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b98d9dd1ff6b32ad3fedee9e8d42270b08803c7fc9f8c1f352891d933ba07f0
MD5 a3c93ec969962d0245e667770a764f60
BLAKE2b-256 d95b681f27e62ca160b883ce6d4028abe37752f6af7d84afb14a5d8dc74939fd

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