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-1.0.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-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conn2combat-1.0.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a7f20fa8440bf0c45bad8c149ab401dfa98177585593bcfebe72e1d1fddf37fb
MD5 ef94482efd6e4e279a7a64249492f06f
BLAKE2b-256 65eb318a3bb5b286ff9c7bc6d6b76e6d20ca03de1d198354f69fc223c4ee8c4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conn2combat-1.0.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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe32ad458507401cf6a3cb21b4f5ffd494305d2e63fcccec8e4c0a25afb7303
MD5 bc1d04ce4720d1d05768053b352a49b0
BLAKE2b-256 4a252cfbd174825c4fc677702b1205bed6b158632bf618c63403a21258d8b76b

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