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
Metadata
Release files for conn2combat 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| conn2combat-1.0.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| conn2combat-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / conn2combat-1.0.0.tar.gz
| Download URL | conn2combat-1.0.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7f20fa8440bf0c45bad8c149ab401dfa98177585593bcfebe72e1d1fddf37fb
|
|
BLAKE2b-256 checksum How to use checksums |
65eb318a3bb5b286ff9c7bc6d6b76e6d20ca03de1d198354f69fc223c4ee8c4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.11
|
Release files / conn2combat-1.0.0-py3-none-any.whl
| Download URL | conn2combat-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fe32ad458507401cf6a3cb21b4f5ffd494305d2e63fcccec8e4c0a25afb7303
|
|
BLAKE2b-256 checksum How to use checksums |
4a252cfbd174825c4fc677702b1205bed6b158632bf618c63403a21258d8b76b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.11
|