Skip to content

Commit

Permalink
Merge branch 'main' into fix-connectivity-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo authored Nov 19, 2024
2 parents 77de336 + 64be9d6 commit eaf5705
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions qsirecon/cli/recon_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def recon_plot():
parser.add_argument("--padding", type=int, default=10, help="number of slices to plot")
opts = parser.parse_args()

print(f"TMPDIR={os.getenv('TMPDIR')}")
if opts.mif:
odf_img, directions = mif2amps(opts.mif, os.getcwd())
LOGGER.info("converting %s to plot ODF/peaks", opts.mif)
Expand Down
6 changes: 5 additions & 1 deletion qsirecon/workflows/recon/amico.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ def init_amico_noddi_fit_wf(
]) # fmt:skip

if plot_reports:
plot_peaks = pe.Node(CLIReconPeaksReport(), name="plot_peaks", n_procs=omp_nthreads)
plot_peaks = pe.Node(
CLIReconPeaksReport(environ={"TMPDIR": str(config.execution.work_dir)}),
name="plot_peaks",
n_procs=omp_nthreads,
)
ds_report_peaks = pe.Node(
DerivativesDataSink(
datatype="figures",
Expand Down
12 changes: 10 additions & 2 deletions qsirecon/workflows/recon/dipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ def init_dipy_brainsuite_shore_recon_wf(
]) # fmt:skip

if plot_reports:
plot_peaks = pe.Node(CLIReconPeaksReport(), name="plot_peaks", n_procs=omp_nthreads)
plot_peaks = pe.Node(
CLIReconPeaksReport(environ={"TMPDIR": str(config.execution.work_dir)}),
name="plot_peaks",
n_procs=omp_nthreads,
)
ds_report_peaks = pe.Node(
DerivativesDataSink(
desc="3dSHOREODF",
Expand Down Expand Up @@ -495,7 +499,11 @@ def init_dipy_mapmri_recon_wf(
]) # fmt:skip

if plot_reports:
plot_peaks = pe.Node(CLIReconPeaksReport(), name="plot_peaks", n_procs=omp_nthreads)
plot_peaks = pe.Node(
CLIReconPeaksReport(environ={"TMPDIR": str(config.execution.work_dir)}),
name="plot_peaks",
n_procs=omp_nthreads,
)
ds_report_peaks = pe.Node(
DerivativesDataSink(
desc="MAPLMRIODF",
Expand Down
6 changes: 5 additions & 1 deletion qsirecon/workflows/recon/dsi_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def init_dsi_studio_recon_wf(inputs_dict, name="dsi_studio_recon", qsirecon_suff
if plot_reports:
# Make a visual report of the model
plot_peaks = pe.Node(
CLIReconPeaksReport(subtract_iso=True), name="plot_peaks", n_procs=omp_nthreads
CLIReconPeaksReport(
environ={"TMPDIR": str(config.execution.work_dir)}, subtract_iso=True
),
name="plot_peaks",
n_procs=omp_nthreads,
)
ds_report_peaks = pe.Node(
DerivativesDataSink(
Expand Down
6 changes: 5 additions & 1 deletion qsirecon/workflows/recon/mrtrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ def init_mrtrix_csd_recon_wf(inputs_dict, name="mrtrix_recon", qsirecon_suffix="

if not config.execution.skip_odf_reports:
# Make a visual report of the model
plot_peaks = pe.Node(CLIReconPeaksReport(), name="plot_peaks", n_procs=omp_nthreads)
plot_peaks = pe.Node(
CLIReconPeaksReport(environ={"TMPDIR": str(config.execution.work_dir)}),
name="plot_peaks",
n_procs=omp_nthreads,
)
ds_report_peaks = pe.Node(
DerivativesDataSink(
desc="wmFOD",
Expand Down

0 comments on commit eaf5705

Please sign in to comment.