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.2.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.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conn2combat-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 f435e221667050212221892013c2e48ff16d23b8d0f08aa72e3dd0d4627a019a
MD5 e805e9fba07e82ae658a2d29911226b3
BLAKE2b-256 b1a7f23b2e35b00f877cd2774be90b78fbd1bc3503579c6bad6ba966d294ddef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conn2combat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9822949500bf47e216ee24182abd307b8957b535d1c3e98d9306c81373c87979
MD5 ffb8fc2feeede77bc04a0caf3e21803d
BLAKE2b-256 db14da2d60ecca5ae2bb1a3ade0a756f0d10bc95da2c51a317f1e97c67e746d1

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