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
3f3996b9
Commit
3f3996b9
authored
9 years ago
by
Christopher Schmied
Browse files
Options
Downloads
Patches
Plain Diff
Tested and debugged rename-zeiss-files
parent
7e98edc7
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/tools/master_preprocessing.sh
+6
-6
6 additions, 6 deletions
spim_registration/tools/master_preprocessing.sh
spim_registration/tools/rename-zeiss-files.sh
+5
-6
5 additions, 6 deletions
spim_registration/tools/rename-zeiss-files.sh
with
11 additions
and
12 deletions
spim_registration/tools/master_preprocessing.sh
+
6
−
6
View file @
3f3996b9
...
...
@@ -21,7 +21,7 @@
# c=0,1 etc
# spim_TL{tt}_Angle{a}_Channel{c}.tif
#===============================================================================
image_file_directory
=
"/projects/pilot_spim/Christopher/
T
est_pipeline
_3.0/czi
/"
image_file_directory
=
"/projects/pilot_spim/Christopher/
t
est_pipeline
/single_channel/resave_test
/"
# --- jobs directory -----------------------------------------------------------
job_directory
=
"/projects/pilot_spim/Christopher/snakemake-workflows/spim_registration/tools/"
...
...
@@ -32,17 +32,17 @@ job_directory="/projects/pilot_spim/Christopher/snakemake-workflows/spim_registr
# carry the index (0)
#-------------------------------------------------------------------------------
pad
=
"
3
"
# for padded zeros
angle_prep
=
"1"
# angles format: "1 2 3"
pad
=
"
2
"
# for padded zeros
angle_prep
=
"1
2 3 4 5
"
# angles format: "1 2 3"
#--- Renaming ------------------------------------------------------------------
first_index
=
"0"
# First index of czi files
last_index
=
"
391"
# Last index of czi files
last_index
=
"
9"
# Last index of czi files
first_timepoint
=
"0"
# Starts with 0
angles_renaming
=(
1 2 3 4 5
)
# Angles format: (1 2 3)
source_pattern
=
201
4-10-23_H2A_gsb_G
3
\(\{
index
\}\)
.czi
# Name of .czi files
source_pattern
=
201
5-02-21_LZ1_Stock68_
3
\(\{
index
\}\)
.czi
# Name of .czi files
target_pattern
=
spim_TL
\{
timepoint
\}
_Angle
\{
angle
\}
.czi
# The output pattern of renaming
#-------------------------------------------------------------------------------
...
...
@@ -50,7 +50,7 @@ target_pattern=spim_TL\{timepoint\}_Angle\{angle\}.czi # The output pattern of r
#-------------------------------------------------------------------------------
XVFB_RUN
=
"/sw/bin/xvfb-run"
# virtual frame buffer
Fiji_resave
=
"/sw/users/schmied/
lifeline/
Fiji.app
.
lifeline
2
/ImageJ-linux64"
# Fiji that works for resaving
Fiji_resave
=
"/sw/users/schmied/
packages/2014-06-02_
Fiji.app
_
lifeline/ImageJ-linux64"
# Fiji that works for resaving
#-------------------------------------------------------------------------------
# Pre-processing
#-------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
spim_registration/tools/rename-zeiss-files.sh
+
5
−
6
View file @
3f3996b9
#!/bin/bash
# path of master file
source
../
master_preprocessing.sh
source
master_preprocessing.sh
# path of source and target files
source_pattern
=
${
image_file_directory
}${
source_pattern
}
...
...
@@ -15,19 +15,18 @@ t=`printf "%0${pad}d" "${t}"`
while
[
$i
-le
$last_index
]
;
do
for
a
in
"
${
angles_renaming
[@]
}
"
;
do
source
=
${
source_pattern
/\{index\
}
/
${
i
}
}
tmp
=
${
target_pattern
/\{timepoint\
}
/
${
t
}
}
target
=
${
tmp
/\{angle\
}
/
${
a
}
target
=
${
tmp
/\{angle\
}
/
${
a
}
}
echo
${
source
}
${
target
}
# displays source file and target file with path
mv
${
source
}
${
target
}
# renames source file into target pattern
#
cp ${source} ${target} # alternatively copy source file and resave into target pattern
#
mv ${source} ${target} # renames source file into target pattern
cp
${
source
}
${
target
}
# alternatively copy source file and resave into target pattern
let
i
=
i+1
done
t
=
$((
10
#${t} ))
let
t
=
t+1
t
=
`
printf
"%0
${
pad
}
d"
"
${
t
}
"
`
...
...
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