Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snakemake-workflows
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIJI
snakemake-workflows
Commits
7d7dbd95
Commit
7d7dbd95
authored
9 years ago
by
Christopher Schmied
Browse files
Options
Downloads
Patches
Plain Diff
Added resave czi as hdf5
parent
ae9a08f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spim_registration/timelapse/Snakefile
+28
-15
28 additions, 15 deletions
spim_registration/timelapse/Snakefile
spim_registration/timelapse/tomancak_czi.json
+4
-4
4 additions, 4 deletions
spim_registration/timelapse/tomancak_czi.json
with
32 additions
and
19 deletions
spim_registration/timelapse/Snakefile
+
28
−
15
View file @
7d7dbd95
...
...
@@ -67,14 +67,14 @@ rule define_xml_czi:
shell(cmd_string)
# resave .czi dataset as hdf5
rule resave_hdf5:
rule resave_
czi_
hdf5:
input: rules.define_xml_czi.output, glob.glob('*.czi')
output:
glob.glob('*h5')
output:
"hdf5_Stock68.h5", "hdf5_Stock68.xml"
message: "Execute resave_hdf5 on {input}"
threads: int(config["resave_hdf5"]["parallel_timepoints"]) # parallel timepoints should tell me how many timepoints to expect
log: "export.log"
run:
for i in config["resave_hdf5"]["parallel_timepoints"]:
cmd_string = produce_string("""{fiji-prefix} {fiji-app} \
run:
part_string = produce_string("""{fiji-prefix} {fiji-app} \
-Dimage_file_directory={jdir} \
-Dfirst_xml_filename={first_xml_filename} \
-Dhdf5_xml_filename={hdf5_xml_filename} \
...
...
@@ -86,17 +86,30 @@ rule resave_hdf5:
-Dhdf5_chunk_sizes={hdf5_chunk_sizes} \
-Dtimepoints_per_partition={timepoints_per_partition} \
-Dsetups_per_partition={setups_per_partition} \
-Drun_only_job_number=%i \
-- --no-splash {path_bsh}""",
config["common"],
config["define_xml_czi"],
config["resave_hdf5"],
jdir=JOBDIR,
path_bsh=config["common"]["bsh_directory"] + config["resave_hdf5"]["bsh_file"]) % i
i +=1
-Drun_only_job_number={job_number} \
-- --no-splash {path_bsh} > {log}-{job_number}.log 2>&1 &\n""", # the & submits everyting at once
config["common"],
config["define_xml_czi"],
config["resave_hdf5"],
jdir=JOBDIR,
path_bsh=config["common"]["bsh_directory"] + config["resave_hdf5"]["bsh_file"])
cmd_string = ""
for i in range(int(config["resave_hdf5"]["parallel_timepoints"])):
cmd_string += part_string.format(job_number=i)
shell(cmd_string)
rule define_xml_tif:
rule resave_tif_hdf5
cmd_string += "> {log} 2>&1"
shell(cmd_string)
rule registration:
# input: "{xml_base}-{file_id}-00.h5"
...
...
This diff is collapsed.
Click to expand it.
spim_registration/timelapse/tomancak_czi.json
+
4
−
4
View file @
7d7dbd95
...
...
@@ -28,16 +28,16 @@
"bsh_file"
:
"define_czi.bsh"
},
"resave_hdf5"
:
"resave_
czi_
hdf5"
:
{
"parallel_timepoints"
:
"
range(0,2)
"
,
"parallel_timepoints"
:
"
2
"
,
"hdf5_xml_filename"
:
"
\"
hdf5_Stock68
\"
"
,
"resave_angle"
:
"
\"
All angles
\"
"
,
"resave_channel"
:
"
\"
All channels
\"
"
,
"resave_illumination"
:
"
\"
All illuminations
\"
"
,
"resave_timepoint"
:
"
\"
All Timepoints
\"
"
,
"subsampling_factors"
:
"
\"
{
{1,1,1}, {2,2,1}, {4,4,1}, {8,8,1}
}
\"
"
,
"hdf5_chunk_sizes"
:
"
\"
{
{32,32,4}, {32,32,4}, {16,16,16}, {16,16,16}
}
\"
"
,
"subsampling_factors"
:
"
\"
{
{ {
{1,1,1}
}
,
{
{2,2,1}
}
,
{
{4,4,1}
}
,
{
{8,8,1}
} }
}
\"
"
,
"hdf5_chunk_sizes"
:
"
\"
{
{ {
{32,32,4}
}
,
{
{32,32,4}
}
,
{
{16,16,16}
}
,
{
{16,16,16}
} }
}
\"
"
,
"timepoints_per_partition"
:
"1"
,
"setups_per_partition"
:
"0"
,
"bsh_file"
:
"export.bsh"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment