canbind2bids - Snakemake workflow for CAN-BIND raw to bids

public public 1yr ago 0 bookmarks

Author: Ali Khan Date: Jan 13, 2022

Run full bids conversion with:

snakemake -j1 all_unzip && snakemake -j1 all_bids"

Update July 5, 2023 - replaced the DTI data from updated CAN-BIND packages

Code Snippets

26
shell: 'unzip -d {output} {input}'
SnakeMake From line 26 of main/Snakefile
46
47
shell:
    'cp {input} {output}'
SnakeMake From line 46 of main/Snakefile
83
84
shell:
    '{params.cp_cmd}'
SnakeMake From line 83 of main/Snakefile
91
92
shell:
    'cp {input} {output}'
SnakeMake From line 91 of main/Snakefile
113
114
shell:
    'cp {input} {output}'
SnakeMake From line 113 of main/Snakefile
132
133
134
135
136
137
run:
    with open(output.json,'w') as jsonfile:
        dd_dict=config['dataset_description']
        for key in dd_dict.keys():
            dd_dict[key] = dd_dict[key].format(**wildcards)
        jsonfile.write(json.dumps(dd_dict, indent=4))
SnakeMake From line 132 of main/Snakefile
142
143
144
145
run:
    with open(output.json,'w') as jsonfile:
        dd_dict=config['bold_json']
        jsonfile.write(json.dumps(dd_dict, indent=4))
SnakeMake From line 142 of main/Snakefile
157
shell: 'unzip -d {output} {input}'
SnakeMake From line 157 of main/Snakefile
164
165
shell:
    'cp {input}/*/*.csv {output}'
SnakeMake From line 164 of main/Snakefile
ShowHide 9 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/akhanf/canbind2bids
Name: canbind2bids
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: None
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...