Skip to content

Commit

Permalink
Merge pull request #5 from DCAN-Labs/develop
Browse files Browse the repository at this point in the history
preBIBSnet minor fix
  • Loading branch information
GregConan authored Apr 29, 2022
2 parents 63dbd1b + a8342cf commit ca28a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ def run_postBIBSnet(j_args, logger):
copy_to_derivatives_dir(each_mask, derivs_dir, sub_ses, "brain_mask") # TODO Can these be symlinks?

# TODO Get dataset_description.json and put it in derivs_dir
# TODO Add padding? No, this is no longer necessary due to RobustFOV

logger.info("PostBIBSnet has completed.")
return j_args
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def crop_image(input_avg_img, output_crop_img, j_args, logger):
crop2full = os.path.join(output_crop_dir, "crop2full.mat") # TODO Define this path outside of stages because it's used by preBIBSnet and postBIBSnet
run_FSL_sh_script(j_args, logger, "robustfov", "-i", input_avg_img,
"-m", crop2full, "-r", output_crop_img,
"-b", j_args["preBIBSnet"]["brain_z_size"])
"-b", j_args["preBIBSnet"]["brain_z_size"]) # TODO Use head radius for -b
return crop2full


Expand Down Expand Up @@ -660,7 +660,7 @@ def registration_T2w_to_T1w(j_args, logger, xfm_vars, reg_input_var, acpc):
if not acpc: # TODO Should this go in its own function?
run_FSL_sh_script( # TODO Should the output image even be created here, or during applywarp?
j_args, logger, "flirt",
"-in", xfm_vars[reg_input_var.format(t)], # Input: Cropped image
"-in", xfm_vars[reg_input_var.format(t)] if t == 1 else registration_outputs["T2w"], # Input: Cropped image
"-ref", xfm_vars["ref_non_ACPC"],
"-applyisoxfm", xfm_vars["resolution"],
"-init", xfm_vars["ident_mx"], # registration_outputs["cropT{}tocropT1".format(t)],
Expand Down

0 comments on commit ca28a5f

Please sign in to comment.