Skip to content

Commit c5e15ba

Browse files
committed
docs: use vectorgraphics for plots and cleanup
1 parent 2c80a77 commit c5e15ba

24 files changed

Lines changed: 14726 additions & 82 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,5 @@ __marimo__/
210210

211211
# Downloaded benchmark data
212212
tests/lung_masks/
213+
214+
*.pdf

analysis/HRF_Feature_Analysis.ipynb

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 1,
21+
"execution_count": 3,
2222
"id": "0aff687b",
2323
"metadata": {},
2424
"outputs": [],
@@ -43,7 +43,7 @@
4343
},
4444
{
4545
"cell_type": "code",
46-
"execution_count": 2,
46+
"execution_count": 4,
4747
"id": "31f770a3",
4848
"metadata": {},
4949
"outputs": [
@@ -190,7 +190,7 @@
190190
},
191191
{
192192
"cell_type": "code",
193-
"execution_count": 3,
193+
"execution_count": 5,
194194
"id": "465e737b",
195195
"metadata": {},
196196
"outputs": [
@@ -432,7 +432,7 @@
432432
"[5 rows x 29 columns]"
433433
]
434434
},
435-
"execution_count": 3,
435+
"execution_count": 5,
436436
"metadata": {},
437437
"output_type": "execute_result"
438438
}
@@ -443,7 +443,7 @@
443443
},
444444
{
445445
"cell_type": "code",
446-
"execution_count": 4,
446+
"execution_count": 6,
447447
"id": "a74f1b6c",
448448
"metadata": {},
449449
"outputs": [
@@ -496,7 +496,7 @@
496496
},
497497
{
498498
"cell_type": "code",
499-
"execution_count": 5,
499+
"execution_count": 7,
500500
"id": "1fbc06f1",
501501
"metadata": {},
502502
"outputs": [
@@ -950,7 +950,7 @@
950950
"mean_surface_area 4062.285612 "
951951
]
952952
},
953-
"execution_count": 5,
953+
"execution_count": 7,
954954
"metadata": {},
955955
"output_type": "execute_result"
956956
}
@@ -969,7 +969,7 @@
969969
},
970970
{
971971
"cell_type": "code",
972-
"execution_count": 6,
972+
"execution_count": 8,
973973
"id": "feae7c2a",
974974
"metadata": {},
975975
"outputs": [
@@ -1129,7 +1129,7 @@
11291129
"[3 rows x 88 columns]"
11301130
]
11311131
},
1132-
"execution_count": 6,
1132+
"execution_count": 8,
11331133
"metadata": {},
11341134
"output_type": "execute_result"
11351135
}
@@ -1153,50 +1153,50 @@
11531153
},
11541154
{
11551155
"cell_type": "code",
1156-
"execution_count": 7,
1156+
"execution_count": 9,
11571157
"id": "5ed06d9e",
11581158
"metadata": {},
11591159
"outputs": [
11601160
{
11611161
"name": "stderr",
11621162
"output_type": "stream",
11631163
"text": [
1164-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1164+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11651165
"\n",
11661166
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11671167
"\n",
11681168
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1169-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1169+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11701170
"\n",
11711171
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11721172
"\n",
11731173
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1174-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1174+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11751175
"\n",
11761176
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11771177
"\n",
11781178
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1179-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1179+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11801180
"\n",
11811181
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11821182
"\n",
11831183
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1184-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1184+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11851185
"\n",
11861186
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11871187
"\n",
11881188
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1189-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1189+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11901190
"\n",
11911191
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11921192
"\n",
11931193
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1194-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1194+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
11951195
"\n",
11961196
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
11971197
"\n",
11981198
" sns.boxplot(data=analysis_df, x=\"phenotype\", y=feature, ax=ax, palette=\"Set2\")\n",
1199-
"/tmp/ipykernel_729112/1446931430.py:10: FutureWarning: \n",
1199+
"/tmp/ipykernel_97727/1446931430.py:10: FutureWarning: \n",
12001200
"\n",
12011201
"Passing `palette` without assigning `hue` is deprecated and will be removed in v0.14.0. Assign the `x` variable to `hue` and set `legend=False` for the same effect.\n",
12021202
"\n",
@@ -1245,7 +1245,7 @@
12451245
},
12461246
{
12471247
"cell_type": "code",
1248-
"execution_count": 8,
1248+
"execution_count": 10,
12491249
"id": "0c0851b9",
12501250
"metadata": {},
12511251
"outputs": [
@@ -1277,13 +1277,13 @@
12771277
"ax.set_title(\"Spearman correlation\")\n",
12781278
"\n",
12791279
"plt.tight_layout()\n",
1280-
"plt.savefig(\"./figures/correlation_heatmap.png\", dpi=300, bbox_inches=\"tight\")\n",
1280+
"plt.savefig(\"./figures/correlation_heatmap.svg\", bbox_inches=\"tight\")\n",
12811281
"plt.show()"
12821282
]
12831283
},
12841284
{
12851285
"cell_type": "code",
1286-
"execution_count": 9,
1286+
"execution_count": 11,
12871287
"id": "5a177659",
12881288
"metadata": {},
12891289
"outputs": [
@@ -1581,7 +1581,7 @@
15811581
"35 std_diameter mean_segment_volume 0.809091"
15821582
]
15831583
},
1584-
"execution_count": 9,
1584+
"execution_count": 11,
15851585
"metadata": {},
15861586
"output_type": "execute_result"
15871587
}
@@ -1604,7 +1604,7 @@
16041604
},
16051605
{
16061606
"cell_type": "code",
1607-
"execution_count": 10,
1607+
"execution_count": 12,
16081608
"id": "858410e8",
16091609
"metadata": {},
16101610
"outputs": [
@@ -1640,13 +1640,13 @@
16401640
"ax.set_ylabel(\"\")\n",
16411641
"ax.grid(axis=\"x\", alpha=0.2)\n",
16421642
"plt.tight_layout()\n",
1643-
"plt.savefig(\"./figures/feature_difference_anova.png\", dpi=300, bbox_inches=\"tight\")\n",
1643+
"plt.savefig(\"./figures/feature_difference_anova.svg\", bbox_inches=\"tight\")\n",
16441644
"plt.show()"
16451645
]
16461646
},
16471647
{
16481648
"cell_type": "code",
1649-
"execution_count": 11,
1649+
"execution_count": 13,
16501650
"id": "174d8977",
16511651
"metadata": {},
16521652
"outputs": [
@@ -1755,7 +1755,7 @@
17551755
"9 mean_tortuosity 8.688907 6.952271e-04"
17561756
]
17571757
},
1758-
"execution_count": 11,
1758+
"execution_count": 13,
17591759
"metadata": {},
17601760
"output_type": "execute_result"
17611761
}
@@ -1766,7 +1766,7 @@
17661766
},
17671767
{
17681768
"cell_type": "code",
1769-
"execution_count": 21,
1769+
"execution_count": 14,
17701770
"id": "ed141974",
17711771
"metadata": {},
17721772
"outputs": [
@@ -1895,7 +1895,7 @@
18951895
"mean_tortuosity 1.097 ± 0.015 "
18961896
]
18971897
},
1898-
"execution_count": 21,
1898+
"execution_count": 14,
18991899
"metadata": {},
19001900
"output_type": "execute_result"
19011901
}
@@ -1949,7 +1949,7 @@
19491949
],
19501950
"metadata": {
19511951
"kernelspec": {
1952-
"display_name": "vesskel (3.14.6.final.0)",
1952+
"display_name": "vesskel (3.14.6)",
19531953
"language": "python",
19541954
"name": "python3"
19551955
},

analysis/HRF_Prediction.ipynb

Lines changed: 38 additions & 38 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)