-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* removed_crop_z_T1, head mesh, copy_header = false for pad + minimal_reg by default, cmd and version in real params
- Loading branch information
1 parent
f6b4aaf
commit f371932
Showing
5 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,8 @@ | |
# Julien Sein ([email protected]) | ||
# Adam Sghari ([email protected]) | ||
|
||
import sys | ||
|
||
import os | ||
import os.path as op | ||
|
||
|
@@ -92,11 +94,12 @@ | |
rename_all_skull_t1_derivatives, | ||
rename_all_skull_ct_derivatives, rename_all_angio_derivatives) | ||
|
||
from skullTo3d._version import __version__ | ||
|
||
fsl.FSLCommand.set_default_output_type('NIFTI_GZ') | ||
########################################################################## | ||
|
||
def create_main_workflow(data_dir, process_dir, soft, species, subjects, | ||
def create_main_workflow(cmd, data_dir, process_dir, soft, species, subjects, | ||
sessions, brain_dt, skull_dt, acquisitions, | ||
reconstructions, params_file, indiv_params_file, | ||
mask_file, template_path, template_files, nprocs, | ||
|
@@ -880,6 +883,11 @@ def create_main_workflow(data_dir, process_dir, soft, species, subjects, | |
main_workflow.write_graph(graph2use="colored") | ||
main_workflow.config['execution'] = {'remove_unnecessary_outputs': 'false'} | ||
|
||
# saving real params.json | ||
params["skullTo3d"] = __version__ | ||
|
||
params["full_command"] = cmd | ||
|
||
# saving real params.json | ||
real_params_file = op.join(process_dir, wf_name, "real_params.json") | ||
with open(real_params_file, 'w+') as fp: | ||
|
@@ -984,9 +992,12 @@ def main(): | |
|
||
args = parser.parse_args() | ||
|
||
cmd = " ".join(sys.argv) | ||
|
||
# main_workflow | ||
print("Initialising the pipeline...") | ||
create_main_workflow( | ||
cmd=cmd, | ||
data_dir=args.data, | ||
soft=args.soft, | ||
process_dir=args.out, | ||
|