8000 ENH: Update PETsurfer interface by mnoergaard · Pull Request #3602 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

ENH: Update PETsurfer interface #3602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 20, 2024
Prev Previous commit
Next Next commit
formatted with black
  • Loading branch information
bendhouseart committed Mar 19, 2024
commit 0df01a757dbd7af25ab05aad5d14ff8c236683c9
2 changes: 1 addition & 1 deletion nipype/interfaces/freesurfer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class GLMFitInputSpec(FSTraitedSpec):
desc="RefTac TimeSec tstar : perform Logan kinetic modeling",
)
bp_clip_neg = traits.Bool(
argstr="--bp-clip-neg",
argstr="--bp-clip-neg",
desc="set negative BP voxels to zero",
)
bp_clip_max = traits.Float(
Expand Down
11 changes: 8 additions & 3 deletions nipype/interfaces/freesurfer/petsurfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ class GTMPVCOutputSpec(TraitedSpec):
)
eres = File(
desc="4D PET file of residual error after PVC (smoothed with PSF)",
)
)
tissue_fraction = File(
desc="4D PET file of tissue fraction before PVC",
)
Expand All @@ -474,6 +474,7 @@ class GTMPVCOutputSpec(TraitedSpec):
desc="Color table file for segmentation file",
)


class GTMPVC(FSCommand):
"""Perform Partial Volume Correction (PVC) to PET Data.

Expand Down Expand Up @@ -551,8 +552,12 @@ def _list_outputs(self):
outputs["reg_pet2anat"] = os.path.join(pvcdir, "aux", "bbpet2anat.lta")
outputs["reg_anat2pet"] = os.path.join(pvcdir, "aux", "anat2bbpet.lta")
outputs["eres"] = os.path.join(pvcdir, "eres.nii.gz")
outputs["tissue_fraction"] = os.path.join(pvcdir, "aux", "tissue.fraction.nii.gz")
outputs["tissue_fraction_psf"] = os.path.join(pvcdir, "aux", "tissue.fraction.psf.nii.gz")
outputs["tissue_fraction"] = os.path.join(
pvcdir, "aux", "tissue.fraction.nii.gz"
)
outputs["tissue_fraction_psf"] = os.path.join(
pvcdir, "aux", "tissue.fraction.psf.nii.gz"
)
outputs["seg"] = os.path.join(pvcdir, "aux", "seg.nii.gz")
outputs["seg_ctab"] = os.path.join(pvcdir, "aux", "seg.ctab")

Expand Down
0