rapidtide 3.0.4__py3-none-any.whl → 3.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rapidtide/_version.py +3 -3
- rapidtide/io.py +4 -2
- rapidtide/workflows/rapidtide_parser.py +2 -2
- rapidtide/workflows/simdata.py +17 -23
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/METADATA +1 -1
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/RECORD +10 -10
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/WHEEL +0 -0
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/entry_points.txt +0 -0
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/licenses/LICENSE +0 -0
- {rapidtide-3.0.4.dist-info → rapidtide-3.0.5.dist-info}/top_level.txt +0 -0
rapidtide/_version.py
CHANGED
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-05-
|
|
11
|
+
"date": "2025-05-07T20:47:14-0400",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "3.0.
|
|
14
|
+
"full-revisionid": "ea9d8f413eaa094534d2da7318765380528980fe",
|
|
15
|
+
"version": "3.0.5"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
rapidtide/io.py
CHANGED
|
@@ -1426,6 +1426,8 @@ def writebidstsv(
|
|
|
1426
1426
|
yaxislabel="arbitrary value",
|
|
1427
1427
|
starttime=0.0,
|
|
1428
1428
|
append=False,
|
|
1429
|
+
samplerate_tolerance=1e-6,
|
|
1430
|
+
starttime_tolerance=1e-6,
|
|
1429
1431
|
colsinjson=True,
|
|
1430
1432
|
colsintsv=False,
|
|
1431
1433
|
omitjson=False,
|
|
@@ -1498,8 +1500,8 @@ def writebidstsv(
|
|
|
1498
1500
|
)
|
|
1499
1501
|
compressed = incompressed
|
|
1500
1502
|
if (
|
|
1501
|
-
(insamplerate
|
|
1502
|
-
and (instarttime
|
|
1503
|
+
np.fabs(insamplerate - samplerate) < samplerate_tolerance
|
|
1504
|
+
and np.fabs(instarttime - starttime) < starttime_tolerance
|
|
1503
1505
|
and reshapeddata.shape[1] == indata.shape[1]
|
|
1504
1506
|
):
|
|
1505
1507
|
startcol = len(incolumns)
|
|
@@ -1916,7 +1916,7 @@ def process_args(inputargs=None):
|
|
|
1916
1916
|
|
|
1917
1917
|
if args["in_file"].endswith("txt") and args["realtr"] == "auto":
|
|
1918
1918
|
raise ValueError(
|
|
1919
|
-
"Either --datatstep or --datafreq must be provided
|
|
1919
|
+
"Either --datatstep or --datafreq must be provided if data file is a text file."
|
|
1920
1920
|
)
|
|
1921
1921
|
|
|
1922
1922
|
if args["realtr"] != "auto":
|
|
@@ -1925,7 +1925,7 @@ def process_args(inputargs=None):
|
|
|
1925
1925
|
if tide_io.checkifcifti(args["in_file"]):
|
|
1926
1926
|
fmri_tr, dummy = tide_io.getciftitr(nib.load(args["in_file"]).header)
|
|
1927
1927
|
else:
|
|
1928
|
-
fmri_tr =
|
|
1928
|
+
fmri_tr, dummy = tide_io.fmritimeinfo(args["in_file"])
|
|
1929
1929
|
args["realtr"] = fmri_tr
|
|
1930
1930
|
|
|
1931
1931
|
if args["inputfreq"] == "auto":
|
rapidtide/workflows/simdata.py
CHANGED
|
@@ -53,46 +53,44 @@ def _get_parser():
|
|
|
53
53
|
|
|
54
54
|
for band in ["lfo", "resp", "cardiac"]:
|
|
55
55
|
parser.add_argument(
|
|
56
|
-
"--
|
|
57
|
-
dest=(band
|
|
56
|
+
f"--{band}pctfile",
|
|
57
|
+
dest=(f"{band}pctfile"),
|
|
58
58
|
action="store",
|
|
59
59
|
type=lambda x: pf.is_valid_file(parser, x),
|
|
60
60
|
metavar="FILE",
|
|
61
|
-
help=(
|
|
62
|
-
"3D NIFTI file with the " + band + " amplitude in percent of mean at every point"
|
|
63
|
-
),
|
|
61
|
+
help=(f"3D NIFTI file with the {band} amplitude in percent of mean at every point"),
|
|
64
62
|
default=None,
|
|
65
63
|
)
|
|
66
64
|
parser.add_argument(
|
|
67
|
-
"--
|
|
68
|
-
dest=(band
|
|
65
|
+
f"--{band}lagfile",
|
|
66
|
+
dest=(f"{band}lagfile"),
|
|
69
67
|
action="store",
|
|
70
68
|
type=lambda x: pf.is_valid_file(parser, x),
|
|
71
69
|
metavar="FILE",
|
|
72
|
-
help=("3D NIFTI file with the
|
|
70
|
+
help=(f"3D NIFTI file with the {band} delay value in seconds at every point"),
|
|
73
71
|
default=None,
|
|
74
72
|
)
|
|
75
73
|
parser.add_argument(
|
|
76
|
-
"--
|
|
77
|
-
dest=(band
|
|
74
|
+
f"--{band}regressor",
|
|
75
|
+
dest=(f"{band}regressor"),
|
|
78
76
|
action="store",
|
|
79
77
|
type=lambda x: pf.is_valid_file(parser, x),
|
|
80
78
|
metavar="FILE",
|
|
81
|
-
help=("The
|
|
79
|
+
help=(f"The {band} regressor text file"),
|
|
82
80
|
default=None,
|
|
83
81
|
)
|
|
84
82
|
parser.add_argument(
|
|
85
|
-
"--
|
|
86
|
-
dest=(band
|
|
83
|
+
f"--{band}samprate",
|
|
84
|
+
dest=(f"{band}samprate"),
|
|
87
85
|
action="store",
|
|
88
86
|
type=float,
|
|
89
87
|
metavar="SAMPRATE",
|
|
90
|
-
help=("The sample rate of the
|
|
88
|
+
help=(f"The sample rate of the {band} regressor file, in Hz"),
|
|
91
89
|
default=None,
|
|
92
90
|
)
|
|
93
91
|
parser.add_argument(
|
|
94
|
-
"--
|
|
95
|
-
dest=(band
|
|
92
|
+
f"--{band}starttime",
|
|
93
|
+
dest=(f"{band}starttime"),
|
|
96
94
|
action="store",
|
|
97
95
|
type=float,
|
|
98
96
|
metavar="STARTTIME",
|
|
@@ -317,7 +315,7 @@ def simdata(args):
|
|
|
317
315
|
sliceoffsettimes *= fmritr
|
|
318
316
|
|
|
319
317
|
nim_fmri, fmridata, fmriheader, fmridims, fmrisizes = tide_io.readfromnifti(args.fmrifilename)
|
|
320
|
-
print("fmri data:
|
|
318
|
+
print(f"fmri data: {numtrs} timepoints, tr = {fmritr}")
|
|
321
319
|
|
|
322
320
|
# prepare the output timepoints
|
|
323
321
|
initial_fmri_x = (
|
|
@@ -328,12 +326,8 @@ def simdata(args):
|
|
|
328
326
|
)
|
|
329
327
|
print("length of fmri after removing skip:", len(initial_fmri_x))
|
|
330
328
|
print(
|
|
331
|
-
"fmri time has length",
|
|
332
|
-
|
|
333
|
-
"and runs runs from ",
|
|
334
|
-
initial_fmri_x[0],
|
|
335
|
-
" to ",
|
|
336
|
-
initial_fmri_x[-1],
|
|
329
|
+
f"fmri time has length {len(initial_fmri_x)}",
|
|
330
|
+
f"and runs runs from {initial_fmri_x[0]} to {initial_fmri_x[-1]}",
|
|
337
331
|
)
|
|
338
332
|
|
|
339
333
|
# read in the immean file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rapidtide
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.5
|
|
4
4
|
Summary: Tools for performing correlation analysis on fMRI data.
|
|
5
5
|
Author: Taylor Salo, Daniel M. Drucker, Ph.D., Jeffrey N Stout, Yaroslav O. Halchenko, Derek Monroe
|
|
6
6
|
Author-email: "Blaise deB. Frederick" <blaise.frederick@gmail.com>
|
|
@@ -12,7 +12,7 @@ rapidtide/OrthoImageItem.py,sha256=w70QNZUelMI7wTWYaqOfkJEb38PdsxgSf0NLdyjlcNs,2
|
|
|
12
12
|
rapidtide/RapidtideDataset.py,sha256=sccBQf8T9zvOMSHHXG7pwEm-sUyzbyZ4i0rFuWMwj3A,52343
|
|
13
13
|
rapidtide/RegressorRefiner.py,sha256=dPG9Vy2nlqxv2Mx9vrYtgYTsNGcVIwWknawDrNdpZxQ,17232
|
|
14
14
|
rapidtide/__init__.py,sha256=cECnPfGNIWXETiummGLjKcNXLROSDiFlLp-RpZSavwc,97
|
|
15
|
-
rapidtide/_version.py,sha256=
|
|
15
|
+
rapidtide/_version.py,sha256=3OU9TRfkXZJGKZEHjxydZN1ypyAIfk88M2iVvYOHK_0,497
|
|
16
16
|
rapidtide/calcandfitcorrpairs.py,sha256=dlKxjKSlgCF9AF_dRoPeIGc9dz1DIluYfKLQzTSQsd0,7397
|
|
17
17
|
rapidtide/calccoherence.py,sha256=VayovUVA5X-eWmjJG0GNxI_Giw7vRjTDFvWcV6NVfq0,4512
|
|
18
18
|
rapidtide/calcnullsimfunc.py,sha256=92q7Yw8VeSjA9UfcD-hHN9MgoaUcoKuR9VGBmt_n45M,7150
|
|
@@ -25,7 +25,7 @@ rapidtide/filter.py,sha256=GySR0UdlrfNzWs9HOdvsIGlfHKThT9KdamNk0Y0JHeU,71647
|
|
|
25
25
|
rapidtide/fit.py,sha256=whveHKtqC-cPWxclCf86-5iBAtXOdXL2G1yg082q6R8,67955
|
|
26
26
|
rapidtide/happy_supportfuncs.py,sha256=NlcZdD7wXQ65xYaB_t035PeSBC-FxbTy6x4B272q5x0,41968
|
|
27
27
|
rapidtide/helper_classes.py,sha256=2m2zcFUgE12JhYL0HQJEafJ1pFa0Zsb46Lpi9iw3Qbg,51470
|
|
28
|
-
rapidtide/io.py,sha256=
|
|
28
|
+
rapidtide/io.py,sha256=A3qFJdFFf1XSVlqPvoOF733OoxrRcbRO-gSEoh_95bE,75037
|
|
29
29
|
rapidtide/linfitfiltpass.py,sha256=fR8vQQrH8yfXyaMNNsELA7xCv_Ro7qpZSXX_PbIFtx0,16142
|
|
30
30
|
rapidtide/makelaggedtcs.py,sha256=XC0-tTKfcV4qQeoOlF3PiAdbvMuDZetrifsmWc0wQTw,3998
|
|
31
31
|
rapidtide/maskutil.py,sha256=IBEgxmHvQ2fnBoTeFu7vw_w3uf91NxpW3IgTDirhWH0,10890
|
|
@@ -325,7 +325,7 @@ rapidtide/workflows/proj2flow.py,sha256=SbkYTRZ_SViVfiM0QJjo20RrICtbsQpEd2i9o9XD
|
|
|
325
325
|
rapidtide/workflows/rankimage.py,sha256=9opJb3OikO69wtN8zgF3XJxgoHy1-erzZiDKs8pDM6U,3482
|
|
326
326
|
rapidtide/workflows/rapidtide.py,sha256=KdSgXM6PFA7ZScSlW3oqV7iD7XNViqul1dSP8V_SWNw,153985
|
|
327
327
|
rapidtide/workflows/rapidtide2std.py,sha256=coxEnRAof6NNpeXjjECPazx5Wotf4l1SJCnaVEvmHQY,10483
|
|
328
|
-
rapidtide/workflows/rapidtide_parser.py,sha256=
|
|
328
|
+
rapidtide/workflows/rapidtide_parser.py,sha256=iBJ1H2VFCqQznRxvMyhDnQEfa9higvZBfUjzqFX0x4M,78244
|
|
329
329
|
rapidtide/workflows/regressfrommaps.py,sha256=2qkD6e3wJ7Wo4M3xsQBHGOlzoZkz6IJv8vT92kv5RZE,5355
|
|
330
330
|
rapidtide/workflows/resamplenifti.py,sha256=GJE7f8bzMRY3QYiMYZOD8bDnga4ah97sp-ZL3yaaIFA,4717
|
|
331
331
|
rapidtide/workflows/resampletc.py,sha256=B4YIKn3qpDaM9dIhYjGwPl-2LtaEhm9fnMBzfBgAUSs,3959
|
|
@@ -339,7 +339,7 @@ rapidtide/workflows/showstxcorr.py,sha256=FulltRbjGaBBIIRF9Wc_4oU2bpmMjfc3tZus5T
|
|
|
339
339
|
rapidtide/workflows/showtc.py,sha256=mddcdbpRzLXIiTqnutVqQapa9fudAeK3uALBVgM-dDE,18835
|
|
340
340
|
rapidtide/workflows/showxcorrx.py,sha256=pPGIUqF7cVuPmq8aaZ-OSup6akeKQC85fJPqUEyG31w,31370
|
|
341
341
|
rapidtide/workflows/showxy.py,sha256=p-1pkE5cKVd2zMQ-kSI3-Xk21jHSLiQPa-ql1DIO-vc,10532
|
|
342
|
-
rapidtide/workflows/simdata.py,sha256=
|
|
342
|
+
rapidtide/workflows/simdata.py,sha256=YahDPmVM-lOV1qgpbfkq6QwrS2Pa99IRlfMglNXDQ1I,13827
|
|
343
343
|
rapidtide/workflows/spatialfit.py,sha256=2p_f7nqYKauLTvwmhyfn7FiJ1BMzFsRxHfCQe2ULoXk,9136
|
|
344
344
|
rapidtide/workflows/spatialmi.py,sha256=_Vvb2lukopzNh9QL9g6XBRvTlartZgq6Fzc2je-sbY8,13407
|
|
345
345
|
rapidtide/workflows/spectrogram.py,sha256=7_CzFgX9ppE_2C4GiSP235BRUoh3YspCR_57_5Lx4HA,6452
|
|
@@ -349,9 +349,9 @@ rapidtide/workflows/tcfrom3col.py,sha256=kV3V-qZ7A7LkD96aHVXabvohA8udsflHXnzsQIw
|
|
|
349
349
|
rapidtide/workflows/tidepool.py,sha256=Cac0zhS2ZT6myY_H2A0dAIox8ZoFyf42iB3flSb0qbw,86612
|
|
350
350
|
rapidtide/workflows/utils.py,sha256=urIN-042oUCRDusVUSjBelVN3Te2JP3svY3ckq-yBMU,5379
|
|
351
351
|
rapidtide/workflows/variabilityizer.py,sha256=h7Hhrxn84MclRfbAvKIZJoNzlcKO-8d9lZ6y6YFStk8,3167
|
|
352
|
-
rapidtide-3.0.
|
|
353
|
-
rapidtide-3.0.
|
|
354
|
-
rapidtide-3.0.
|
|
355
|
-
rapidtide-3.0.
|
|
356
|
-
rapidtide-3.0.
|
|
357
|
-
rapidtide-3.0.
|
|
352
|
+
rapidtide-3.0.5.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
353
|
+
rapidtide-3.0.5.dist-info/METADATA,sha256=T7MB_JdlZs48d-PfR-Xrtv5rOEE_BPrsnRBE-Y_Fhdw,15688
|
|
354
|
+
rapidtide-3.0.5.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
355
|
+
rapidtide-3.0.5.dist-info/entry_points.txt,sha256=9NVvZpIx9U6lTWlTFF2ev-wuPAHJxcXI_901_EcGRYA,3323
|
|
356
|
+
rapidtide-3.0.5.dist-info/top_level.txt,sha256=MnNXGfbrIBc9RnAqzBHOWd3GQO-aIUDnRTz4_5VjH5g,16
|
|
357
|
+
rapidtide-3.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|