Skip to content

Commit

Permalink
Test analysis stage with --nativespace_analysis on
Browse files Browse the repository at this point in the history
  • Loading branch information
Gab-D-G committed Sep 22, 2023
1 parent 7c4237d commit 5605dd9
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions scripts/error_check_rabies.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,21 @@
shell=True,
)

#command = f"rabies --verbose 1 analysis {tmppath}/outputs {tmppath}/outputs --data_diagnosis"
#process = subprocess.run(
# command,
# check=True,
# shell=True,
# )
# rerunning confound correction without censoring, which removes all scans
os.remove(f'{tmppath}/outputs/rabies_confound_correction.pkl')
command = f"rabies --verbose 1 confound_correction {tmppath}/outputs {tmppath}/outputs --nativespace_analysis"
process = subprocess.run(
command,
check=True,
shell=True,
)

command = f"rabies --verbose 1 analysis {tmppath}/outputs {tmppath}/outputs --data_diagnosis"
process = subprocess.run(
command,
check=True,
shell=True,
)

shutil.rmtree(f'{tmppath}/inputs/')
generate_token_data(tmppath, number_scans=3)
Expand Down

0 comments on commit 5605dd9

Please sign in to comment.