1
1
# neurocaps
2
2
[ ![ Latest Version] ( https://img.shields.io/pypi/v/neurocaps.svg )] ( https://pypi.python.org/pypi/neurocaps/ )
3
3
[ ![ Python Versions] ( https://img.shields.io/pypi/pyversions/neurocaps.svg )] ( https://pypi.python.org/pypi/neurocaps/ )
4
- [ ![ DOI] ( https://img.shields.io/badge/DOI-10.5281%2Fzenodo.11642615-teal )] ( https://doi.org/10.5281/zenodo.14174119 )
4
+ [ ![ DOI] ( https://img.shields.io/badge/DOI-10.5281%2Fzenodo.11642615-teal )] ( https://doi.org/10.5281/zenodo.14178104 )
5
5
[ ![ Github Repository] ( https://img.shields.io/badge/Source%20Code-neurocaps-purple )] ( https://github.com/donishadsmith/neurocaps )
6
6
[ ![ Test Status] ( https://github.com/donishadsmith/neurocaps/actions/workflows/testing.yaml/badge.svg )] ( https://github.com/donishadsmith/neurocaps/actions/workflows/testing.yaml )
7
7
[ ![ codecov] ( https://codecov.io/github/donishadsmith/neurocaps/graph/badge.svg?token=WS2V7I16WF )] ( https://codecov.io/github/donishadsmith/neurocaps )
@@ -119,7 +119,7 @@ from neurocaps.extraction import TimeseriesExtractor
119
119
from neurocaps.analysis import CAP
120
120
121
121
# Set specific confounds for nuisance regression
122
- confounds = [' Cosine*' , ' Rot*' ]
122
+ confounds = [" Cosine*" , " aComp* " , " Rot*" ]
123
123
124
124
# Set parcellation
125
125
parcel_approach = {" Schaefer" : {" n_rois" : 100 , " yeo_networks" : 7 , " resolution_mm" : 2 }}
@@ -131,18 +131,17 @@ extractor = TimeseriesExtractor(parcel_approach=parcel_approach,
131
131
detrend = True ,
132
132
low_pass = 0.15 ,
133
133
high_pass = 0.01 ,
134
- confound_names = confounds,
135
- n_acompcor_separate = 2 )
134
+ confound_names = confounds)
136
135
137
136
bids_dir = " tests/ds000031_R1.0.4_ses001-022/ds000031_R1.0.4"
138
137
139
138
# If there are multiple pipelines in the derivatives folder, you can specify a specific pipeline
140
- pipeline_name = fmriprep_1.0.0/ fmriprep
139
+ pipeline_name = " fmriprep_1.0.0/fmriprep"
141
140
142
141
# Extract timeseries for subjects in the BIDS directory
143
142
extractor.get_bold(bids_dir = bids_dir,
144
143
task = " rest" ,
145
- session = ' 002' ,
144
+ session = " 002" ,
146
145
pipeline_name = pipeline_name
147
146
verbose = True ,
148
147
flush = True )
@@ -277,16 +276,15 @@ radialaxis={"showline": True,
277
276
" tickvals" : [0.1 ," " ," " ,0.4 , " " ," " , 0.6 ]}
278
277
279
278
legend = {" yanchor" : " top" ,
280
- " y" : 0.99 ,
281
- " x" : 0.99 ,
282
- " title_font_family" : " Times New Roman" ,
283
- " font" : {" size" : 12 , " color" : " black" }}
279
+ " y" : 0.99 ,
280
+ " x" : 0.99 ,
281
+ " title_font_family" : " Times New Roman" ,
282
+ " font" : {" size" : 12 , " color" : " black" }}
284
283
285
- colors = {" High Amplitude" : " black" , " Low Amplitude" : " orange" }
284
+ colors = {" High Amplitude" : " black" , " Low Amplitude" : " orange" }git c
286
285
287
-
288
- kwargs = {" radialaxis" : radial, " fill" : " toself" , " legend" : legend,
289
- " color_discrete_map" : colors, " height" : 400 , " width" : 600 }
286
+ kwargs = {" radialaxis" : radial, " fill" : " toself" , " legend" : legend, " color_discrete_map" : colors,
287
+ " height" : 400 , " width" : 600 }
290
288
291
289
cap_analysis.caps2radar(output_dir = output_dir, ** kwargs)
292
290
```
0 commit comments