Skip to content

Commit

Permalink
Merge pull request #50 from CBICA/ag-dev
Browse files Browse the repository at this point in the history
Ag dev force push
  • Loading branch information
AlexanderGetka-cbica authored Dec 11, 2024
2 parents 6988e89 + af78dbb commit 99cbdbf
Show file tree
Hide file tree
Showing 1,109 changed files with 6,045 additions and 4,698 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.github
.git
test
test_data
output_folder
**/*.nii.gz
build
**/build
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ test/test_output
# ignore test dicom folder
10089_short/

# make sure no data go to the repo
*.nii.gz
## make sure no data go to the repo
##*.nii.gz
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ ARG MAMBA_DOCKERFILE_ACTIVATE=1
ARG CUDA_VERSION

COPY --chown=$MAMBA_USER:$MAMBA_USER requirements.txt /tmp/requirements.txt
RUN grep -v -E '^(torch)' /tmp/requirements.txt > /tmp/requirements2.txt
USER root
RUN apt-get update && apt-get install -y python3-tk git
USER $MAMBA_USER
RUN pip install --verbose -r /tmp/requirements.txt && pip uninstall -y torch && pip install --verbose torch==2.3.1 --index-url https://download.pytorch.org/whl/cu${CUDA_VERSION}
RUN pip install --verbose -r /tmp/requirements2.txt && pip uninstall -y torch && pip install --verbose torch==2.3.1 --index-url https://download.pytorch.org/whl/cu${CUDA_VERSION}
RUN mkdir ~/dummyinput && mkdir ~/dummyoutput
RUN git clone https://github.com/CBICA/PredCRD.git && cd PredCRD && pip install -e .
RUN git clone https://github.com/CBICA/DLWMLS.git && cd DLWMLS && pip install -e . && DLWMLS -i ~/dummyinput -o ~/dummyoutput
Expand Down
1 change: 0 additions & 1 deletion TestData/README.txt

This file was deleted.

6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ spare-scores
NiChartHarmonize
DLICV
DLMUSE
NiChart_DLMUSE
NiChart_DLMUSE>=1.0.9
DLWMLS @ git+https://github.com/CBICA/DLWMLS

# general python dependencies
torch>=2.2.1,<=2.3.1
torch==2.3.1
argparse
nibabel
pulp==2.7.0
Expand All @@ -18,7 +18,9 @@ sphinx
streamlit==1.39.0
st_pages==1.0.1
streamlit_plotly_events
streamlit-base-extras
chart_studio
Jinja2
plotly-express
stqdm
pyjwt
146 changes: 73 additions & 73 deletions resources/centiles/istag_centiles_CN_ICV_Corrected.csv
Original file line number Diff line number Diff line change
@@ -1,77 +1,77 @@
VarName,Age,centile_5,centile_25,centile_50,centile_75,centile_95
DLICV,21,1247547.40509021,1373399.94312893,1465994.7465368,1562917.29383891,1710181.73844323
DLICV,22,1246113.9263479,1371737.62596967,1464255.60379667,1561179.12606269,1708600.53646779
DLICV,23,1244634.48462531,1370025.10701728,1462462.79483735,1559383.66174817,1706957.09695525
DLICV,24,1243087.04948715,1368238.13787161,1460590.42924708,1557503.28169683,1705221.1580793
DLICV,25,1241451.38845793,1366354.28461403,1458614.5155183,1555512.41933488,1703364.87113169
DLICV,26,1239713.19867196,1364357.05809417,1456517.2830641,1553392.25961205,1701368.41794641
DLICV,27,1237859.5333868,1362231.3476718,1454282.40532915,1551125.54957211,1699213.82806954
DLICV,28,1235878.00609948,1359962.67892035,1451894.23537215,1548695.75553094,1696883.91055329
DLICV,29,1233776.78126234,1357559.4075542,1449361.54144761,1546112.33934555,1694389.72708839
DLICV,30,1231592.23583385,1355061.21610687,1446726.59704859,1543420.44837177,1691781.14833742
DLICV,31,1229362.58092126,1352509.8217013,1444033.85682216,1540667.56631587,1689110.62658523
DLICV,32,1227126.39701455,1349947.49675318,1441328.40543278,1537901.83006682,1686431.1986608
DLICV,33,1224928.46391119,1347424.88738758,1438664.60253683,1535180.94417658,1683804.61244463
DLICV,34,1222817.02701569,1344997.32544125,1436102.00592594,1532567.97640016,1681297.46239165
DLICV,35,1220840.07186552,1342719.81880096,1433699.83189061,1530125.64576024,1678975.97220418
DLICV,36,1219041.43217356,1340642.75803122,1431512.36794892,1527911.42947525,1676900.64095008
DLICV,37,1217450.64787086,1338800.75854879,1429577.05647506,1525964.84334525,1675112.28597615
DLICV,38,1216094.00701037,1337224.82784747,1427927.48911565,1524321.30221214,1673647.22078825
DLICV,39,1214996.8814455,1335944.93614561,1426596.15127969,1523015.04882265,1672540.47143133
DLICV,40,1214138.37753193,1334939.631191,1425560.50432554,1522021.70848147,1671763.33131687
DLICV,41,1213430.95147913,1334113.40907307,1424718.76196647,1521232.45882109,1671195.23387022
DLICV,42,1212782.13191814,1333365.31567079,1423963.29584021,1520532.21859706,1670708.70573716
DLICV,43,1212099.6450254,1332594.43402199,1423186.46282272,1519805.90272418,1670176.42325969
DLICV,44,1211291.23844795,1331697.71008883,1422277.85542027,1518935.94101137,1669470.96037823
DLICV,45,1210264.81406517,1330570.94675569,1421125.54354258,1517803.41438276,1668465.02394399
DLICV,46,1208928.67273416,1329110.37331725,1419618.03065827,1516289.84639963,1667031.81037744
DLICV,47,1207220.23430058,1327243.56907995,1417677.14438881,1514312.48589953,1665084.61335931
DLICV,48,1205186.11592527,1325015.64081396,1415349.69252031,1511922.66201036,1662687.37621302
DLICV,49,1202898.73726892,1322499.50287597,1412712.06781126,1509203.46517629,1659939.81897081
DLICV,50,1200430.29337986,1319767.94004755,1409840.55456379,1506237.8794193,1656941.57665352
DLICV,51,1197859.22543943,1316903.4794988,1406822.47250283,1503120.05053869,1653801.11146551
DLICV,52,1195273.45970626,1314003.3295302,1403761.75725891,1499960.92501659,1650640.11305485
DLICV,53,1192760.99504648,1311165.12672708,1400762.89101093,1496871.98514645,1647580.52338614
DLICV,54,1190406.57327346,1308483.29811564,1397927.02171952,1493961.09430923,1644739.91647598
DLICV,55,1188265.72675239,1306024.54127315,1395326.64352187,1491304.48073324,1642195.37040242
DLICV,56,1186375.56645078,1303837.99866149,1393016.10384247,1488958.33286989,1639998.20887875
DLICV,57,1184772.86766338,1301972.34957369,1391049.25715404,1486978.31321676,1638199.0286729
DLICV,58,1183487.59231321,1300468.72173734,1389471.8975018,1485411.46099865,1636838.73518039
DLICV,59,1182522.45536243,1299338.44081286,1388298.02556568,1484270.77003996,1635920.27237562
DLICV,60,1181873.591576,1298585.63221179,1387533.96717452,1483560.99877904,1635437.25017074
DLICV,61,1181537.0120499,1298214.31689028,1387185.94985587,1483286.78062688,1635382.97827218
DLICV,62,1181485.97339646,1298203.19438296,1387233.07249763,1483423.82043621,1635719.32076729
DLICV,63,1181657.75855376,1298490.94238116,1387611.54465509,1483902.0930374,1636358.55694584
DLICV,64,1181986.41404322,1299012.86428228,1388253.98369566,1484647.71350426,1637208.79879258
DLICV,65,1182406.90015167,1299705.21645221,1389093.977557,1485587.89702122,1638179.9860739
DLICV,66,1182867.90967266,1300515.42479296,1390076.14027768,1486662.67519746,1639202.23410062
DLICV,67,1183327.14177115,1301398.2750494,1391152.34673329,1487820.53826727,1640219.1667056
DLICV,68,1183742.11524069,1302308.56117967,1392274.48166632,1489010.015268,1641174.90221336
DLICV,69,1184071.51880155,1303201.90905539,1393395.17401701,1490180.6181137,1642015.9544279
DLICV,70,1184280.14905714,1304037.90383721,1394470.64200369,1491286.41625933,1642698.03395608
DLICV,71,1184334.34365705,1304777.10151236,1395457.95352912,1492282.59626542,1643179.3348336
DLICV,72,1184200.43085119,1305380.03109485,1396314.11938775,1493124.308349,1643418.18653601
DLICV,73,1183847.33947479,1305810.47924114,1396999.6977362,1493770.41772524,1643376.57707784
DLICV,74,1183248.28973276,1306037.65165314,1397481.17033614,1494185.97814625,1643022.48792224
DLICV,75,1182377.01955924,1306031.32172563,1397725.60593,1494336.67865246,1642324.58594836
DLICV,76,1181207.16939895,1305761.08986332,1397699.8568537,1494187.99072213,1641251.28928356
DLICV,77,1179708.81505103,1305192.99639061,1397367.02676138,1493701.29263874,1639765.97300996
DLICV,78,1177849.72361711,1304290.74570129,1396687.74462006,1492835.26678441,1637828.69178246
DLICV,79,1175598.06133736,1303018.33336784,1395622.90155329,1491548.89873661,1635399.84514797
DLICV,80,1172927.95692402,1301345.79591557,1394139.72880167,1489808.04724898,1632447.73538711
DLICV,81,1169837.9361684,1299268.30211973,1392231.99238345,1487607.26668324,1628973.6325466
DLICV,82,1166333.68253455,1296788.21635986,1389901.03484559,1484949.28924279,1624987.90986992
DLICV,83,1162421.68912467,1293908.50511171,1387148.80959374,1481837.48134387,1620501.2643653
DLICV,84,1158122.96388737,1290648.89600388,1383995.38072196,1478294.37323426,1615544.19562764
DLICV,85,1153482.49874338,1287057.28131567,1380491.30754045,1474374.76344939,1610180.77644041
DLICV,86,1148547.37119491,1283184.08651135,1376689.92436989,1470136.34800925,1604477.73159247
DLICV,87,1143364.09039681,1279079.22110316,1372644.05460188,1465636.2271156,1598500.71498159
DLICV,88,1137976.09199696,1274789.91500087,1368403.80225891,1460928.44872794,1592311.19855255
DLICV,89,1132424.37073019,1270361.2919068,1364017.13615858,1456064.66616755,1585967.38495575
DLICV,90,1126749.25768762,1265837.90478009,1359531.45415934,1451095.88469985,1579526.48448992
DLICV,91,1120986.87326221,1261259.77633407,1354989.33454229,1446067.92393285,1573039.77539431
DLICV,92,1115156.40493202,1256648.17741348,1350413.27072996,1441005.11349639,1566534.82912498
DLICV,93,1109272.04983806,1252018.85537473,1345819.84363609,1435925.44516336,1560032.1366764
ICV,21,1247547.40509021,1373399.94312893,1465994.7465368,1562917.29383891,1710181.73844323
ICV,22,1246113.9263479,1371737.62596967,1464255.60379667,1561179.12606269,1708600.53646779
ICV,23,1244634.48462531,1370025.10701728,1462462.79483735,1559383.66174817,1706957.09695525
ICV,24,1243087.04948715,1368238.13787161,1460590.42924708,1557503.28169683,1705221.1580793
ICV,25,1241451.38845793,1366354.28461403,1458614.5155183,1555512.41933488,1703364.87113169
ICV,26,1239713.19867196,1364357.05809417,1456517.2830641,1553392.25961205,1701368.41794641
ICV,27,1237859.5333868,1362231.3476718,1454282.40532915,1551125.54957211,1699213.82806954
ICV,28,1235878.00609948,1359962.67892035,1451894.23537215,1548695.75553094,1696883.91055329
ICV,29,1233776.78126234,1357559.4075542,1449361.54144761,1546112.33934555,1694389.72708839
ICV,30,1231592.23583385,1355061.21610687,1446726.59704859,1543420.44837177,1691781.14833742
ICV,31,1229362.58092126,1352509.8217013,1444033.85682216,1540667.56631587,1689110.62658523
ICV,32,1227126.39701455,1349947.49675318,1441328.40543278,1537901.83006682,1686431.1986608
ICV,33,1224928.46391119,1347424.88738758,1438664.60253683,1535180.94417658,1683804.61244463
ICV,34,1222817.02701569,1344997.32544125,1436102.00592594,1532567.97640016,1681297.46239165
ICV,35,1220840.07186552,1342719.81880096,1433699.83189061,1530125.64576024,1678975.97220418
ICV,36,1219041.43217356,1340642.75803122,1431512.36794892,1527911.42947525,1676900.64095008
ICV,37,1217450.64787086,1338800.75854879,1429577.05647506,1525964.84334525,1675112.28597615
ICV,38,1216094.00701037,1337224.82784747,1427927.48911565,1524321.30221214,1673647.22078825
ICV,39,1214996.8814455,1335944.93614561,1426596.15127969,1523015.04882265,1672540.47143133
ICV,40,1214138.37753193,1334939.631191,1425560.50432554,1522021.70848147,1671763.33131687
ICV,41,1213430.95147913,1334113.40907307,1424718.76196647,1521232.45882109,1671195.23387022
ICV,42,1212782.13191814,1333365.31567079,1423963.29584021,1520532.21859706,1670708.70573716
ICV,43,1212099.6450254,1332594.43402199,1423186.46282272,1519805.90272418,1670176.42325969
ICV,44,1211291.23844795,1331697.71008883,1422277.85542027,1518935.94101137,1669470.96037823
ICV,45,1210264.81406517,1330570.94675569,1421125.54354258,1517803.41438276,1668465.02394399
ICV,46,1208928.67273416,1329110.37331725,1419618.03065827,1516289.84639963,1667031.81037744
ICV,47,1207220.23430058,1327243.56907995,1417677.14438881,1514312.48589953,1665084.61335931
ICV,48,1205186.11592527,1325015.64081396,1415349.69252031,1511922.66201036,1662687.37621302
ICV,49,1202898.73726892,1322499.50287597,1412712.06781126,1509203.46517629,1659939.81897081
ICV,50,1200430.29337986,1319767.94004755,1409840.55456379,1506237.8794193,1656941.57665352
ICV,51,1197859.22543943,1316903.4794988,1406822.47250283,1503120.05053869,1653801.11146551
ICV,52,1195273.45970626,1314003.3295302,1403761.75725891,1499960.92501659,1650640.11305485
ICV,53,1192760.99504648,1311165.12672708,1400762.89101093,1496871.98514645,1647580.52338614
ICV,54,1190406.57327346,1308483.29811564,1397927.02171952,1493961.09430923,1644739.91647598
ICV,55,1188265.72675239,1306024.54127315,1395326.64352187,1491304.48073324,1642195.37040242
ICV,56,1186375.56645078,1303837.99866149,1393016.10384247,1488958.33286989,1639998.20887875
ICV,57,1184772.86766338,1301972.34957369,1391049.25715404,1486978.31321676,1638199.0286729
ICV,58,1183487.59231321,1300468.72173734,1389471.8975018,1485411.46099865,1636838.73518039
ICV,59,1182522.45536243,1299338.44081286,1388298.02556568,1484270.77003996,1635920.27237562
ICV,60,1181873.591576,1298585.63221179,1387533.96717452,1483560.99877904,1635437.25017074
ICV,61,1181537.0120499,1298214.31689028,1387185.94985587,1483286.78062688,1635382.97827218
ICV,62,1181485.97339646,1298203.19438296,1387233.07249763,1483423.82043621,1635719.32076729
ICV,63,1181657.75855376,1298490.94238116,1387611.54465509,1483902.0930374,1636358.55694584
ICV,64,1181986.41404322,1299012.86428228,1388253.98369566,1484647.71350426,1637208.79879258
ICV,65,1182406.90015167,1299705.21645221,1389093.977557,1485587.89702122,1638179.9860739
ICV,66,1182867.90967266,1300515.42479296,1390076.14027768,1486662.67519746,1639202.23410062
ICV,67,1183327.14177115,1301398.2750494,1391152.34673329,1487820.53826727,1640219.1667056
ICV,68,1183742.11524069,1302308.56117967,1392274.48166632,1489010.015268,1641174.90221336
ICV,69,1184071.51880155,1303201.90905539,1393395.17401701,1490180.6181137,1642015.9544279
ICV,70,1184280.14905714,1304037.90383721,1394470.64200369,1491286.41625933,1642698.03395608
ICV,71,1184334.34365705,1304777.10151236,1395457.95352912,1492282.59626542,1643179.3348336
ICV,72,1184200.43085119,1305380.03109485,1396314.11938775,1493124.308349,1643418.18653601
ICV,73,1183847.33947479,1305810.47924114,1396999.6977362,1493770.41772524,1643376.57707784
ICV,74,1183248.28973276,1306037.65165314,1397481.17033614,1494185.97814625,1643022.48792224
ICV,75,1182377.01955924,1306031.32172563,1397725.60593,1494336.67865246,1642324.58594836
ICV,76,1181207.16939895,1305761.08986332,1397699.8568537,1494187.99072213,1641251.28928356
ICV,77,1179708.81505103,1305192.99639061,1397367.02676138,1493701.29263874,1639765.97300996
ICV,78,1177849.72361711,1304290.74570129,1396687.74462006,1492835.26678441,1637828.69178246
ICV,79,1175598.06133736,1303018.33336784,1395622.90155329,1491548.89873661,1635399.84514797
ICV,80,1172927.95692402,1301345.79591557,1394139.72880167,1489808.04724898,1632447.73538711
ICV,81,1169837.9361684,1299268.30211973,1392231.99238345,1487607.26668324,1628973.6325466
ICV,82,1166333.68253455,1296788.21635986,1389901.03484559,1484949.28924279,1624987.90986992
ICV,83,1162421.68912467,1293908.50511171,1387148.80959374,1481837.48134387,1620501.2643653
ICV,84,1158122.96388737,1290648.89600388,1383995.38072196,1478294.37323426,1615544.19562764
ICV,85,1153482.49874338,1287057.28131567,1380491.30754045,1474374.76344939,1610180.77644041
ICV,86,1148547.37119491,1283184.08651135,1376689.92436989,1470136.34800925,1604477.73159247
ICV,87,1143364.09039681,1279079.22110316,1372644.05460188,1465636.2271156,1598500.71498159
ICV,88,1137976.09199696,1274789.91500087,1368403.80225891,1460928.44872794,1592311.19855255
ICV,89,1132424.37073019,1270361.2919068,1364017.13615858,1456064.66616755,1585967.38495575
ICV,90,1126749.25768762,1265837.90478009,1359531.45415934,1451095.88469985,1579526.48448992
ICV,91,1120986.87326221,1261259.77633407,1354989.33454229,1446067.92393285,1573039.77539431
ICV,92,1115156.40493202,1256648.17741348,1350413.27072996,1441005.11349639,1566534.82912498
ICV,93,1109272.04983806,1252018.85537473,1345819.84363609,1435925.44516336,1560032.1366764
TotalBrain,21,1272916.87633068,1295969.8205078,1310356.62136667,1323695.6541929,1341423.47254941
TotalBrain,22,1271406.34476039,1294693.98843156,1309226.95328749,1322706.25918351,1340635.72154964
TotalBrain,23,1269897.42595918,1293423.34486688,1308104.20181107,1321725.69832835,1339860.92600001
Expand Down
4 changes: 2 additions & 2 deletions resources/lists/dict_var_categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"FieldStrength"
],
"MUSE-TopPicks": [
"DLICV",
"ICV",
"TotalBrain",
"GM",
"WM",
Expand Down Expand Up @@ -195,7 +195,7 @@
"TransverseTemporalGyrus_L"
],
"MUSE-CompositeROIs": [
"DLICV",
"ICV",
"TotalBrain",
"GM",
"WM",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VarName
DLICV
ICV
TotalBrain
GM
WM
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VarName
DLICV
ICV
TotalBrain
GM
WM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"DX_Diabates"
],
"MUSE-Essential": [
"DLICV",
"ICV",
"TotalBrain",
"GM",
"WM",
Expand Down Expand Up @@ -185,7 +185,7 @@
"TransverseTemporalGyrus_L"
],
"MUSE-Composite": [
"DLICV",
"ICV",
"TotalBrain",
"GM",
"WM",
Expand Down
Binary file added resources/videos/nichart_vtutorial_smri_1.webm
Binary file not shown.
Binary file added resources/videos/nichart_vtutorial_smri_2.webm
Binary file not shown.
1 change: 0 additions & 1 deletion src/viewer/pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,5 @@ def set_pipeline() -> None:
unsafe_allow_html=True,
)


# FIXME: For DEBUG
utilst.add_debug_panel()
2 changes: 1 addition & 1 deletion src/viewer/pages/pipeline_dlmuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
st.markdown(
"""
# Structural MRI Biomarkers
### Neuroimaging pipeline for computing AI biomarkers of disease and aging from T1-weighted MRI scan
### Neuroimaging pipeline for computing AI biomarkers of disease and aging from T1-weighted MRI scans
"""
)

Expand Down
Loading

0 comments on commit 99cbdbf

Please sign in to comment.