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
- Install using pip:
pip install conn2combat - Process files:
python -m combat2conn -d /path/to/conn_directory -o /path/to/output_dir -r ROI1 ROI2 ROI3
Run from source
- Clone the repository:
git clone https://github.com/trevorbryanjackson/CONN_First_Level_Extraction.git - Navigate to the project directory:
cd CONN_First_Level_Extraction - Install the required dependencies:
pip install -r requirements.txt - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conn2combat-0.1.0.tar.gz.
File metadata
- Download URL: conn2combat-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82e0066ecf94af66cf75000c8ca22b283d220673c29895c84573c21b2f987850
|
|
| MD5 |
dc749d099dae6190e07e90c1e908c989
|
|
| BLAKE2b-256 |
c26d55ecd386e40c5192c43f3836d30ca55ff9386f88045bc7774c3adc7305c0
|
File details
Details for the file conn2combat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: conn2combat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee07f6ec0355ce32ba153db7d99d51902e257454651a1cc5702b16ca6e161100
|
|
| MD5 |
4acaa0d7c637f92b7f2590d5a63397e8
|
|
| BLAKE2b-256 |
3a5c7f17499aa0f7daf1faa750f85438a1bc70b3f7ef069e684c13b1e5cd984e
|