ConTarg
A python package implementing/wrapping methods for functional connectivity personalized targeting of rTMS therapy.
Getting test data
datalad clone ///openneuro/ds002330
cd ds002330/sub-02
datalad get -r .
Example run
contarg hierarchical run \
--bids-dir=data/ds002330 \
--derivatives-dir=data/derivatives/ \
--database-file=data/pybids_0.15.2_db \
--run-name=firsttest \
--space=T1w \
--smoothing-fwhm=3 \
--ndummy=5 \
--tr=1.9 \
--subject=02 \
--run=1 \
--njobs=2
ROIs
Currently we just have spherical ROIs based on Cash et al., 2022 for defining SGC and DLPFC. They were created as follows.
# make SGC mask
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(100-(x+6)*(x+6)-(y+16)*(y+16)-(z+10)*(z+10))' \
-prefix SGCsphere_space-MNI152NLin6Asym_res-02.nii.gz
# make blSGC mask
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(100-(x-6)*(x-6)-(y+16)*(y+16)-(z+10)*(z+10))' \
-prefix leftSGCsphere_space-MNI152NLin6Asym_res-02.nii.gz
3dcalc -a SGCsphere_space-MNI152NLin6Asym_res-02.nii.gz \
-b leftSGCsphere_space-MNI152NLin6Asym_res-02.nii.gz \
-expr 'step(a+b)' \
-prefix bilateralSGCspheres_space-MNI152NLin6Asym_res-02.nii.gz
# BA9 20mm -36, 39, 43
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(400-(x-36)*(x-36)-(y+39)*(y+39)-(z-43)*(z-43))' \
-prefix BA9sphere_space-MNI152NLin6Asym_res-02.nii.gz
# BA46 20mm -44, 40, 29
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(400-(x-44)*(x-44)-(y+40)*(y+40)-(z-29)*(z-29))' \
-prefix BA46sphere_space-MNI152NLin6Asym_res-02.nii.gz
# 5cm 20mm -41, 16, 54
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(400-(x-41)*(x-41)-(y+16)*(y+16)-(z-54)*(z-54))' \
-prefix 5cmsphere_space-MNI152NLin6Asym_res-02.nii.gz
# F3 20mm -37, 26, 49
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-expr 'step(400-(x-37)*(x-37)-(y+26)*(y+26)-(z-49)*(z-49))' \
-prefix F3sphere_space-MNI152NLin6Asym_res-02.nii.gz
# DLPFC
3dcalc -a BA9sphere_space-MNI152NLin6Asym_res-02.nii.gz -b BA46sphere_space-MNI152NLin6Asym_res-02.nii.gz \
-c 5cmsphere_space-MNI152NLin6Asym_res-02.nii.gz -d F3sphere_space-MNI152NLin6Asym_res-02.nii.gz \
-expr 'step(a + b + c + d)' \
-prefix DLPFCspheres_space-MNI152NLin6Asym_res-02.nii.gz
# DLPFC + brainmask
3dcalc -a BA9sphere_space-MNI152NLin6Asym_res-02.nii.gz -b BA46sphere_space-MNI152NLin6Asym_res-02.nii.gz \
-c 5cmsphere_space-MNI152NLin6Asym_res-02.nii.gz -d F3sphere_space-MNI152NLin6Asym_res-02.nii.gz \
-e /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm_brain_mask.nii.gz \
-expr 'and(step(a + b + c + d),e)' \
-prefix DLPFCspheresmasked_space-MNI152NLin6Asym_res-02.nii.gz
# BA46 + brainmask
3dcalc -a /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm.nii.gz \
-b /usr/local/apps/fsl/6.0.4/data/standard/MNI152_T1_2mm_brain_mask.nii.gz \
-expr 'and(a,b)' \
-prefix BA46spheremasked_space-MNI152NLin6Asym_res-02.nii.gz
This is a Python project packaged according to Contemporary Python Packaging - 2023.
Metadata
Release files for contarg 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| contarg-0.0.4.tar.gz | 8.3 MB | Without provenance | Details for contarg-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| contarg-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for contarg-0.0.4-py3-none-any.whl |
Total release size: 8.4 MB
Release files / contarg-0.0.4.tar.gz
| Download URL | contarg-0.0.4.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88be58fc327ca7b58ae73b4d60f558893aadb67db237d12bc394bcfa8efd5d83
|
|
BLAKE2b-256 checksum How to use checksums |
cedbbed6b9244f84c29276763fb0b51e3d40469aec5a5d8c70e0934474467da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / contarg-0.0.4-py3-none-any.whl
| Download URL | contarg-0.0.4-py3-none-any.whl |
|---|---|
| Size | 47.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2eb1eb6c05d8fdc1e7cbe4c5c9559cc9e3b9c03323f8d3d87dc2d4dcddc0f3eb
|
|
BLAKE2b-256 checksum How to use checksums |
b1ee4322bcbec89a1316fb74f4eafd7d34b644632e5e1cd416ecf83530b2860a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for contarg 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.