Skip to content

Commit

Permalink
Merge pull request #2 from myousif9/dev
Browse files Browse the repository at this point in the history
changing groups and resources for mriqc & input T2 from synthstrip_t2w rule to fmriprep
  • Loading branch information
myousif9 authored Nov 4, 2022
2 parents 4889e49 + bf5b894 commit 327cd68
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/jobs
**/__pycache__
**/*venv*
**/test.txt
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
3 changes: 2 additions & 1 deletion anat_preproc/workflow/rules/fmriprep_ciftify.smk
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ rule reskstripT1w:

rule fmriprep:
input:
skstrip_done=rules.reskstripT1w.output.done,
skstrip_T1w_done = rules.reskstripT1w.output.done,
skstrip_T2w_done = rules.reskstripT2w.output.done if config['use_t2'] else [],
fs_license=os.environ["FS_LICENSE"]
if config["fs_license"] == False
else config["fs_license"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rule mriqc:
bids(root="work", suffix="mriqc.done", **inputs.input_wildcards["uni"])
),
group:
"subj"
"mriqc1"
container:
config["singularity"]["graham"]["mriqc"] if config["graham"] else config[
"singularity"
Expand Down
8 changes: 4 additions & 4 deletions anat_preproc/workflow/rules/mprageise_mriqc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ rule mriqc:
bids(root="work", suffix="mriqc.done", **inputs.input_wildcards["uni"])
),
group:
"subj"
"mriqc1"
container:
config["singularity"]["graham"]["mriqc"] if config["graham"] else config[
"singularity"
]["docker"]["mriqc"]
threads: 8
resources:
mem_mb=16000,
time=1440,
time=180,
log:
bids(root="logs", suffix="mriqc.log", **inputs.input_wildcards["uni"]),
shell:
"""
mriqc {input.bids_dir} {params.mriqc_dir} participant --participant-label {wildcards.subject} &> {log}
mriqc {params.bids_dir} {params.mriqc_dir} group
mriqc {input.bids_dir} {params.mriqc_dir} group
"""


Expand Down Expand Up @@ -51,7 +51,7 @@ rule mprageise:
threads: 8
resources:
mem_mb=16000,
time=1440,
time=180,
log:
bids(root="logs", suffix="3dmprageise.log", **inputs.input_wildcards["uni"]),
shell:
Expand Down
2 changes: 1 addition & 1 deletion anat_preproc/workflow/rules/mriqc_synthstrip_t1w.smk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rule mriqc2:
bids(root="work", suffix="mriqc2.done", **inputs.input_wildcards["uni"])
),
group:
"subj"
"mriqc2"
container:
config["singularity"]["graham"]["mriqc"] if config["graham"] else config[
"singularity"
Expand Down

0 comments on commit 327cd68

Please sign in to comment.