oceanproc 0.1.0__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.
- oceanproc/__init__.py +1 -0
- oceanproc/bids_wrapper.py +331 -0
- oceanproc/events_long.py +153 -0
- oceanproc/firstlevel/__init__.py +0 -0
- oceanproc/firstlevel/run_glm.py +923 -0
- oceanproc/firstlevel/tests/__init__.py +0 -0
- oceanproc/firstlevel/tests/test_run_glm.py +165 -0
- oceanproc/fmriprep_wrapper.py +222 -0
- oceanproc/group_series.py +228 -0
- oceanproc/grouplevel/__init__.py +0 -0
- oceanproc/grouplevel/computations.py +80 -0
- oceanproc/grouplevel/design_mat_utils.py +54 -0
- oceanproc/grouplevel/dscalar_utils.py +51 -0
- oceanproc/grouplevel/run.py +18 -0
- oceanproc/grouplevel/utils.py +4 -0
- oceanproc/ocean_proc.py +215 -0
- oceanproc/oceanparse.py +107 -0
- oceanproc/utils.py +224 -0
- oceanproc/web/TODO.md +4 -0
- oceanproc/web/__init__.py +0 -0
- oceanproc/web/app.py +78 -0
- oceanproc/web/config.json +7 -0
- oceanproc/web/get_parser_json.py +58 -0
- oceanproc/web/static/components/ArgparseForm.js +9 -0
- oceanproc/web/static/components/ArgparseFormEntry.js +52 -0
- oceanproc/web/static/components/DirIcon.js +11 -0
- oceanproc/web/static/components/FileBrowser.js +85 -0
- oceanproc/web/static/components/FileBrowserOpenBtn.js +12 -0
- oceanproc/web/static/components/FileEntry.js +32 -0
- oceanproc/web/static/components/FileIcon.js +11 -0
- oceanproc/web/static/components/OceanprocForm.js +53 -0
- oceanproc/web/static/components/styles.css +44 -0
- oceanproc/web/templates/filesystem.html +13 -0
- oceanproc/web/templates/filesystem_fail.html +2 -0
- oceanproc/web/templates/oceanproc_form.html +23 -0
- oceanproc/web/templates/react-test.html +0 -0
- oceanproc/web/templates/username_card_component_test.html +39 -0
- oceanproc-0.1.0.dist-info/METADATA +29 -0
- oceanproc-0.1.0.dist-info/RECORD +41 -0
- oceanproc-0.1.0.dist-info/WHEEL +4 -0
- oceanproc-0.1.0.dist-info/entry_points.txt +4 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.argparseFormTextInput {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.argparseFormTextInput > * {
|
|
6
|
+
margin: 10px 10px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.argparseFormTextInput > input {
|
|
10
|
+
max-width: 20rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.fileEntryContainer {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fileEntryContainer > input {
|
|
19
|
+
margin: 0px 20px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.fileLinkContainer {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
padding: 0px 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fileLinkContainer:hover {
|
|
29
|
+
background-color: white;
|
|
30
|
+
color: black;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.fileNonlinkContainer {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: 0px 20px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fileEntryList {
|
|
41
|
+
list-style-type:none;
|
|
42
|
+
width=100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<title>Filesystem test {{ cur_dir }}</title>
|
|
3
|
+
<h1> Current directory: {{ cur_dir }}</h1>
|
|
4
|
+
{% for file in file_list %}
|
|
5
|
+
{% if file.isdir %}
|
|
6
|
+
<a style="display:flex;flex-direction:column;margin:3px 3px" href="/files/{{ file.pathfromroot }}">{{ file.basename|e }}</a>
|
|
7
|
+
{% else %}
|
|
8
|
+
<p style="display:flex;flex-direction:column;margin:3px 3px">{{ file.basename|e }}</p>
|
|
9
|
+
{% endif %}
|
|
10
|
+
{% endfor %}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
|
|
3
|
+
<link rel="stylesheet" href="{{url_for('static', filename='components/styles.css')}}">
|
|
4
|
+
<script type="importmap">
|
|
5
|
+
{
|
|
6
|
+
"imports": {
|
|
7
|
+
"preact": "https://esm.sh/preact@10.19.2",
|
|
8
|
+
"preact/": "https://esm.sh/preact@10.19.2/",
|
|
9
|
+
"htm/preact": "https://esm.sh/htm@3.1.1/preact?external=preact"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
13
|
+
<script src="{{url_for('static', filename='components/OceanprocForm.js')}}"></script>
|
|
14
|
+
<script type="module">
|
|
15
|
+
import { html } from 'htm/preact';
|
|
16
|
+
import { render } from 'preact';
|
|
17
|
+
import { useState, useEffect, useRef } from 'preact/hooks';
|
|
18
|
+
import { OceanprocForm } from '{{url_for('static', filename='components/OceanprocForm.js')}}'
|
|
19
|
+
|
|
20
|
+
render(html`<${OceanprocForm} />`, document.body)
|
|
21
|
+
</script>
|
|
22
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
|
3
|
+
<script type="importmap">
|
|
4
|
+
{
|
|
5
|
+
"imports": {
|
|
6
|
+
"preact": "https://esm.sh/preact@10.19.2",
|
|
7
|
+
"preact/": "https://esm.sh/preact@10.19.2/",
|
|
8
|
+
"htm/preact": "https://esm.sh/htm@3.1.1/preact?external=preact"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script type="module">
|
|
14
|
+
import { html } from 'htm/preact';
|
|
15
|
+
import { render } from 'preact';
|
|
16
|
+
import { useState, useEffect, useRef } from 'preact/hooks';
|
|
17
|
+
|
|
18
|
+
export function UsernameCard() {
|
|
19
|
+
const [submitted, setSubmitted] = useState(false);
|
|
20
|
+
const [username, setUsername] = useState('');
|
|
21
|
+
const usernameRef = useRef('');
|
|
22
|
+
|
|
23
|
+
return html`<div class="card text-white bg-dark mb-3" style="width: 18rem; border-radius:10px;">
|
|
24
|
+
<div class="card-body" style="display: flex; flex-direction: column; justify-content: space-between;">
|
|
25
|
+
<h5 class="card-title">What is your NIL username?</h5>
|
|
26
|
+
<p class="card-text">
|
|
27
|
+
This will be used to run <code>oceanproc</code> so that
|
|
28
|
+
ownership of the derivative files will be under your account.
|
|
29
|
+
</p>
|
|
30
|
+
<input type="text"></input>
|
|
31
|
+
<button>Submit my username</button>
|
|
32
|
+
</div>
|
|
33
|
+
</div>`;
|
|
34
|
+
}
|
|
35
|
+
render(html`<${UsernameCard} />`, document.body)
|
|
36
|
+
</script>
|
|
37
|
+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
|
39
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: oceanproc
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MRI preprocessing for WUSTL Ocean labs
|
|
5
|
+
Author: Ramone Agard
|
|
6
|
+
Author-email: agardr@wustl.edu
|
|
7
|
+
Requires-Python: >=3.10,<3.13
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Dist: asttokens (>=2.4.1,<3.0.0)
|
|
13
|
+
Requires-Dist: beautifulsoup4 (>=4.12.0)
|
|
14
|
+
Requires-Dist: flask (>=3.0.3,<4.0.0)
|
|
15
|
+
Requires-Dist: matplotlib (>=3.9.1,<4.0.0)
|
|
16
|
+
Requires-Dist: nilearn (>=0.10.4,<0.11.0)
|
|
17
|
+
Requires-Dist: numba (>=0.60.0,<0.61.0)
|
|
18
|
+
Requires-Dist: numpy (>=1.26.0)
|
|
19
|
+
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
20
|
+
Requires-Dist: scipy (>=1.13.0)
|
|
21
|
+
Requires-Dist: sphinx-rtd-theme (>=2.0.0,<3.0.0)
|
|
22
|
+
Requires-Dist: torch (>=2.5.1,<3.0.0)
|
|
23
|
+
Requires-Dist: torchaudio (>=2.5.1,<3.0.0)
|
|
24
|
+
Requires-Dist: torchvision (>=0.20.1,<0.21.0)
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# Ocean-Proc
|
|
28
|
+
MRI preprocessing for WUSTL Ocean labs
|
|
29
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
oceanproc/__init__.py,sha256=fxRcdqFdMpptv2szs0lmJcgX3HyzNn7jJgaqHUyvHUE,85
|
|
2
|
+
oceanproc/bids_wrapper.py,sha256=Dquthue_83ql4i8UBRLZv4NMo6VS9VaCLhK_rh62WqE,14906
|
|
3
|
+
oceanproc/events_long.py,sha256=BVOwVU_BSKUrtAuCYeBeqdF1U4pXdBqnwHU1lXaN-TA,5911
|
|
4
|
+
oceanproc/firstlevel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
oceanproc/firstlevel/run_glm.py,sha256=1XCd4Ghrw393svBu8YNunuvsIS_WDU_-kCALW7BTUOk,41701
|
|
6
|
+
oceanproc/firstlevel/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
oceanproc/firstlevel/tests/test_run_glm.py,sha256=6S-vB412Vor7jWMo9edc4FLHRM4-unDJLs5nTz1uSG0,6708
|
|
8
|
+
oceanproc/fmriprep_wrapper.py,sha256=b3LF6COTzdapALc8aIdBXBLR_4h2H5ckOiNWuPFyKbo,10140
|
|
9
|
+
oceanproc/group_series.py,sha256=5e1QMzL2V7XgrL8jQm6ZDu8TCY7uOn6O9J_K6GGYEec,9777
|
|
10
|
+
oceanproc/grouplevel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
oceanproc/grouplevel/computations.py,sha256=TU4obCgLQozQXdmOnvKJPMqSyjVCo_gqKAhIijTzpTg,3290
|
|
12
|
+
oceanproc/grouplevel/design_mat_utils.py,sha256=ko89laflI903kh_e5WmOK_PXq2rNJt37Ztye2VuzXtY,2358
|
|
13
|
+
oceanproc/grouplevel/dscalar_utils.py,sha256=13EvrcP3kEZ3RBuRseB0BoPk4qfep7KWoHB5qHxelAI,2129
|
|
14
|
+
oceanproc/grouplevel/run.py,sha256=N0odmu7Uspr2_T3T7ngRQyGpqc-bjnOlH9YAWwUngzQ,387
|
|
15
|
+
oceanproc/grouplevel/utils.py,sha256=aylaO1U4Ceq1AeJTYtV_dNuYnghKLIuAxHoZRL4b1mc,104
|
|
16
|
+
oceanproc/ocean_proc.py,sha256=bwiD6X-3j6BIGkF_s9acCa5i7XxKC1JiEzyHpOU_2BQ,10922
|
|
17
|
+
oceanproc/oceanparse.py,sha256=dn7d6bWqHJo6roULM0weC8d6RsnfpHMesRyhC_K0Vr0,4560
|
|
18
|
+
oceanproc/utils.py,sha256=cJNp6g5rWJK3A8pl4iBKMevKXs8mhzT3bqC4ZVaylGs,7993
|
|
19
|
+
oceanproc/web/TODO.md,sha256=_vpIWGhU-CGf-uGhC437MP7xf2kDBWcoBP3We-hKySg,284
|
|
20
|
+
oceanproc/web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
oceanproc/web/app.py,sha256=nLB80nz4pj5KMIy6dR6GY3Rb2uVyEtekiMUZpl3gziI,2982
|
|
22
|
+
oceanproc/web/config.json,sha256=SY8l1z673SfN4wBYaOwBbR9AHogxY0sFKf2iXcWRQHE,120
|
|
23
|
+
oceanproc/web/get_parser_json.py,sha256=KZIt6mXZ2kpYiOxeLdLc9qWNlTJpPg9fOsC8-rJ7weE,2711
|
|
24
|
+
oceanproc/web/static/components/ArgparseForm.js,sha256=Rw1jbTuL32MJdczlIL7ct-hAvzm_Wvd1lc_ntc7TSrM,262
|
|
25
|
+
oceanproc/web/static/components/ArgparseFormEntry.js,sha256=yVuUhNsjQYZOKZXpCgSq8o49Yry_MXcyOAgOt9btXd0,1609
|
|
26
|
+
oceanproc/web/static/components/DirIcon.js,sha256=j75onCO5w6wCqAIeM9s35HYh2a5hr8b13FvkBD9RfUc,692
|
|
27
|
+
oceanproc/web/static/components/FileBrowser.js,sha256=EZXmBB9nzzs_LP_IwRbxR-qpS2KaukoAhAsH4taJoqk,2751
|
|
28
|
+
oceanproc/web/static/components/FileBrowserOpenBtn.js,sha256=esEzxdXWD_SuAgsHyo31e2Z24DfMuefWPkS2E5JSGv0,332
|
|
29
|
+
oceanproc/web/static/components/FileEntry.js,sha256=o_ap-F302-_azGg6KpA0LFLtDUTsDHCtScLyaqhzHi0,920
|
|
30
|
+
oceanproc/web/static/components/FileIcon.js,sha256=KOpRAGe0I5JirOj5kYoSf-FPSBOs_F6Vv9YOFK2nYjE,690
|
|
31
|
+
oceanproc/web/static/components/OceanprocForm.js,sha256=7vQKyA1imepMKJq-eKiWOpAR11CvdchaGkjIQuLZvU0,1596
|
|
32
|
+
oceanproc/web/static/components/styles.css,sha256=fVudq221KSrDhwUL_8wX3KQOAKfIUA4LMdTM3oEL1ks,582
|
|
33
|
+
oceanproc/web/templates/filesystem.html,sha256=e0Rr5g7ggSvWD5E0_623Unqyalw3RG15wmJ86Btn0lk,409
|
|
34
|
+
oceanproc/web/templates/filesystem_fail.html,sha256=0JQlkj2PfoF60det6wgMioOd8nYvsIe-j9bu-9R4J_g,88
|
|
35
|
+
oceanproc/web/templates/oceanproc_form.html,sha256=HpKYnoZQPQ0oW-HRxxkhYlQIMGMCMY_tkrMss9GeDlE,1355
|
|
36
|
+
oceanproc/web/templates/react-test.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
+
oceanproc/web/templates/username_card_component_test.html,sha256=HyShfkNtT70UUAcLFQut6n3rMNeLGkwFq3d6chsci0g,1956
|
|
38
|
+
oceanproc-0.1.0.dist-info/METADATA,sha256=mFPnylmWQ_LyCuFuLskbXMfGeBbdXKyT9vsyWILelGg,1003
|
|
39
|
+
oceanproc-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
40
|
+
oceanproc-0.1.0.dist-info/entry_points.txt,sha256=501NEKKMujHnca9ddzy-WT9d5aaLcZgj8pBqkc9jW6U,98
|
|
41
|
+
oceanproc-0.1.0.dist-info/RECORD,,
|