Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo PELLARIN
recursive-gmconvert
Commits
df07057e
Commit
df07057e
authored
Mar 12, 2018
by
samuel hanot
Browse files
do not store sub-maps
parent
fba62367
Changes
1
Show whitespace changes
Inline
Side-by-side
recursive_gmconvert.sh
View file @
df07057e
...
...
@@ -50,6 +50,11 @@ then
exit
1
fi
if
[[
-z
"
$n_gaussians0
"
]]
then
n_gaussians0
=
$n_gaussians
fi
MaxArraySize
=
100000
get_max_jobs
(){
echo
${
MaxArraySize
}
...
...
@@ -70,6 +75,7 @@ cd $map_root_dir
mkdir
-p
converged
for
((
i
=
$i0
;
i<
=
N
;
i++
))
do
echo
"i=
$i
"
n
=
$((
i
))
jobname
=
${
map_name
}
_
${
n
}
...
...
@@ -91,8 +97,8 @@ do
n_jobs
=
$((
n_jobs
+
$(
awk
'/NGAUSS/{s+=$3}END{print s}'
${
gmm_file
}
)
))
done
echo echo
${
gmm_name
}
'$((SLURM_ARRAY_TASK_ID-1+offset))'
\>
'tmp_$((SLURM_ARRAY_TASK_ID+offset)).txt'
echo
${
profile_cmd
}
${
gmconvert
}
-imap
${
map_name
}
-gmml
'tmp_$((SLURM_ARRAY_TASK_ID+offset)).txt'
-oimap
$n
/
'sub_$((SLURM_ARRAY_TASK_ID+offset-1)).mrc'
-ogmm
$n
/
${
n
}
_
'$((SLURM_ARRAY_TASK_ID-1+offset))'
.gmm
-ng
${
n_gaussians
}
-zth
${
threshold
}
echo
${
gmconvert
}
-igmm
$n
/
${
n
}
_
'$((SLURM_ARRAY_TASK_ID-1+offset)).gmm'
-imap
$
n
/
'sub
_$((SLURM_ARRAY_TASK_ID+offset
-1
)).
mrc
'
-omap
/dev/null
echo
${
profile_cmd
}
${
gmconvert
}
-imap
${
map_name
}
-gmml
'tmp_$((SLURM_ARRAY_TASK_ID+offset)).txt'
-ogmm
$n
/
${
n
}
_
'$((SLURM_ARRAY_TASK_ID-1+offset))'
.gmm
-ng
${
n_gaussians
}
-zth
${
threshold
}
echo
${
gmconvert
}
-igmm
$n
/
${
n
}
_
'$((SLURM_ARRAY_TASK_ID-1+offset)).gmm'
-imap
$
{
map_name
}
-gmml
'tmp
_$((SLURM_ARRAY_TASK_ID+offset)).
txt
'
-omap
/dev/null
fi
>
commands_
$i
.sh
mkdir
-p
$n
max_jobs
=
$(
get_max_jobs
)
...
...
Samuel HANOT
@shanot
mentioned in issue
#2 (closed)
·
Mar 12, 2018
mentioned in issue
#2 (closed)
mentioned in issue #2
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment