Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3931fdc
remove APOE ref in spreadsheet unless it exists
lsaca05 Jul 1, 2026
488a33b
update refs to rawdata to fit new BIDS standard (v1.11.1)
lsaca05 Jul 1, 2026
17dbf22
do not double gaussian normalize a slice if there are too few WM voxe…
lsaca05 Jul 1, 2026
3c343bb
update skip logic to look for gzipped T1map
lsaca05 Jul 1, 2026
d3c8293
Refactor DCE and VFA processing scripts to use updated mask naming co…
lsaca05 Aug 22, 2026
769459d
Add support for Python execution in T1 mapping process
lsaca05 Aug 22, 2026
49a483b
Add Python job to actions
lsaca05 Aug 22, 2026
32e0495
add p to getopts list
lsaca05 Aug 22, 2026
3ee50b8
genericizing a couple calls for env var compat, add ability to limit …
lsaca05 Aug 24, 2026
97ebacf
idk how autoAIF wasn't enabled in runner
lsaca05 Aug 24, 2026
df27f46
update checkout actions
lsaca05 Aug 24, 2026
f82bae6
stupid runner not updating repo
lsaca05 Aug 25, 2026
8baf94a
surely this is the last line i need
lsaca05 Aug 25, 2026
af3f051
forgot it for python run LUL
lsaca05 Aug 25, 2026
2611b69
Fix PR checkout ref handling
Copilot Aug 25, 2026
36178cc
Run workflow on all branches
Copilot Aug 25, 2026
59d2491
another attempt at getting PRs to pull the right thing
lsaca05 Aug 25, 2026
4d8ad76
turns out me just dumb
lsaca05 Aug 25, 2026
60450cf
revert checkout specifying, only do docker on the core branches
lsaca05 Aug 25, 2026
ccf00ed
fail actions if any result files are missing
lsaca05 Aug 25, 2026
73a4c94
use new env for to specify workspace ROCKETSHIP
lsaca05 Aug 25, 2026
e12c6f8
Refactor DCEPrep integration scripts to use environment variables for…
lsaca05 Aug 25, 2026
cc89ab8
correct path search strings
lsaca05 Aug 26, 2026
3209ace
fix actions path to autoAIF weights
lsaca05 Aug 27, 2026
ca307f1
hopeful autoAIF weight path fix for runner
lsaca05 Aug 27, 2026
7979f10
remove PDF gen/upload from actions
lsaca05 Aug 27, 2026
0c01fdf
missed a spot
lsaca05 Aug 27, 2026
73a01b7
Refactor path resolution for ROCKETSHIP and GPUFIT, enhance error han…
lsaca05 Aug 29, 2026
9c08ddb
gzip all DCE nii outputs, fix log output w/ w/o -p, fix plot_anat coo…
lsaca05 Sep 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 84 additions & 34 deletions .github/workflows/DCE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,135 @@ name: Run DCE then build docker

on:
push:
branches: [ "dev", "main" ]
pull_request:
branches: [ "dev", "main" ]

permissions:
contents: read

jobs:
run:
run_case_matlab:

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: self-hosted
env:
ROCKETSHIP_PATH: ${{ github.workspace }}/ROCKETSHIP

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Checkout ROCKETSHIP repo
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
repository: petmri/ROCKETSHIP
ref: dev
path: ROCKETSHIP
clean: true
fetch-depth: 0

#- name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"
- name: Set up ROCKETSHIP venv
working-directory: ROCKETSHIP
run: python3 install.py -G -M

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --upgrade hd-bet
# pip install flake8 pytest


# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

#- name: Test with pytest
# run: |
# pytest

#- name: Set up MATLAB
# uses: matlab-actions/setup-matlab@v1


- name: Preprocess the data
run: ./preprocess_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/rawdata -b -Z -m -c
run: ./preprocess_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/sourcedata/raw -b -Z -m -c -A A -w /home/mrispec/Code/DCEPrep/docker/files/model_weight_huber1.h5

- name: Run DCE
run: ./DCE_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/rawdata -f
run: ./DCE_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/sourcedata/raw -f

- name: Output logs
run: |
date=$(date +"%Y-%m-%d")
cat /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/logs/preprocessing_log_${date}.txt
cat /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/logs/dce_log_${date}.txt

- name: Convert HTML to PDF
run: wkhtmltopdf --enable-local-file-access /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html /media/network_mriphysics/USC-PPG/RUNNER_DATA/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.pdf
continue-on-error: true
# - name: Convert HTML to PDF
# run: wkhtmltopdf --enable-local-file-access /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html /media/network_mriphysics/USC-PPG/RUNNER_DATA/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.pdf
# continue-on-error: true

- name: Validate analysis results
run: |
test -f /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html
test -n "$(find /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/figures/ -type f -print -quit)"

- name: Upload analysis results
uses: actions/upload-artifact@v7
with:
name: HTML_report
path: |
/media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html
/media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/figures/
retention-days: 7
if-no-files-found: error

run_case_python:

if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: self-hosted
env:
ROCKETSHIP_PATH: ${{ github.workspace }}/ROCKETSHIP

steps:
- name: Checkout
uses: actions/checkout@v7

- name: Checkout ROCKETSHIP repo
uses: actions/checkout@v7
with:
repository: petmri/ROCKETSHIP
ref: dev
path: ROCKETSHIP

- name: Set up ROCKETSHIP venv
working-directory: ROCKETSHIP
run: python3 install.py -G -M

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --upgrade hd-bet

- name: Preprocess the data
run: ./preprocess_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/sourcedata/raw -b -Z -m -c -p -A A -w /home/mrispec/Code/DCEPrep/docker/files/model_weight_huber1.h5

- name: Run DCE
run: ./DCE_all.sh -d /media/network_mriphysics/USC-PPG/RUNNER_DATA/sourcedata/raw -f -p

- name: Output logs
run: |
date=$(date +"%Y-%m-%d")
cat /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/logs/preprocessing_log_${date}.txt
cat /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/logs/dce_log_${date}.txt

# - name: Convert HTML to PDF
# run: wkhtmltopdf --enable-local-file-access /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html /media/network_mriphysics/USC-PPG/RUNNER_DATA/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.pdf
# continue-on-error: true

- name: Validate analysis results
run: |
test -f /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html
test -n "$(find /media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/figures/ -type f -print -quit)"

- name: Upload analysis results
uses: actions/upload-artifact@v7
with:
name: HTML_report
path: |
/media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.html
/media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/reports/sub-1101743_ses-01_desc-casereport.pdf
/media/network_mriphysics/USC-PPG/RUNNER_DATA/derivatives/dceprep/sub-1101743/ses-01/figures/
retention-days: 7
if-no-files-found: error

docker:
needs: run
needs: run_case_matlab
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
strategy:
fail-fast: false
matrix:
Expand All @@ -89,7 +139,7 @@ jobs:
runs-on: self-hosted

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Extract branch name
id: extract_branch
Expand Down
Loading