Macaque brain reconstruction snakemake workflow

public public 1yr ago 0 bookmarks

Macaque brain reconstruction snakemake workflow

Code Snippets

32
33
shell:
    'node {params.script} --base-url {params.in_url} --subject {wildcards.subject} --stain {wildcards.stain} --dspow  {params.dspow} --out-dir {output.raw_dir}'
SnakeMake From line 32 of main/Snakefile
40
41
shell:
    'ls {input}/*.jpg | wc -l > {output}'
SnakeMake From line 40 of main/Snakefile
49
50
shell:
    '{input.conform_script} {input.slice_dir} {output.slice_dir}'
SnakeMake From line 49 of main/Snakefile
63
64
shell:
    'mkdir -p {output.slice_dir} && c3d {input.slice_dir}/* -slice-all z 0:-1 -oo {output.slice_dir}/%03d.nii'
74
75
shell:
    'c3d {input.slice_dir}/* -tile z -spacing {params.spacing} -orient {params.orient} {output.stack}' 
82
83
shell:
    'c3d {input.stack} -threshold 230 Inf 0 1 {output.mask}' 
103
104
shell:
    'c3d {input.template} -cmv -pop -pop  -thresh 50% inf 0 1 -as MASK {input.template} -times -o {output.hemi}'
120
121
shell:
    'greedy -threads {threads} -d 3 -i {input.fixed} {input.moving} -o {output.xfm} {params.reg_opts}  > {log}'
129
130
shell:
    'c3d_affine_tool {input} -inv -o {output}'
143
144
shell:
    'greedy -threads {threads} -d 3 -r {input.xfm} -rf {input.fixed} -rm {input.moving} {output.warped} > {log}'
152
153
shell:
    'c3d {input} -slice z {wildcards.slice} -o {output}'
160
161
shell:
    'c3d {input} -slice z {wildcards.slice} -o {output}'
192
193
194
195
196
shell:
    'greedy -threads {threads} -d 2 -i {input.template_slice} {input.hist_slice} -o {output.moment_xfm} {params.moment_opts} > {log} && ' 
    'greedy -threads {threads} -d 2 -i {input.template_slice} {input.hist_slice} -o {output.affine_xfm} -ia {output.moment_xfm} {params.affine_opts} >> {log} && ' 
    'greedy -threads {threads} -d 2 -i {input.template_slice} {input.hist_slice} -o {output.nlin_warp} -it {output.affine_xfm} {params.nlin_opts} >> {log} && '
    'greedy -threads {threads} -d 2 -r {output.nlin_warp} {output.affine_xfm} -rf {input.template_slice} -rm {input.hist_slice} {output.hist_warped} >> {log} '
218
219
shell:
    'c3d {input.hist_slices} -tile z -spacing {params.spacing} -orient {params.orient} {output.hist_stack}' 
ShowHide 12 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/macbrain-recon
Name: macbrain-recon
Version: 1
Badge:
workflow icon

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

Downloaded: 0
Copyright: Public Domain
License: MIT License
  • 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 ...