Commit 8727dc39 authored by samuel hanot's avatar samuel hanot

allow passing the same types of arguments for get_maps.sh and recursive_gmconvert.sh

parent d66c0e6b
......@@ -11,12 +11,13 @@ do
echo $f
rsync -a -v -z --delete rsync.ebi.ac.uk::pub/databases/emdb/structures/EMD-${f}/ $f
cd $f
curl http://www.ebi.ac.uk/pdbe/entry/emdb/EMD-$f/analysis > header/map_analysis.html
cutoff=$(awk '/contour/{print $4}' < header/map_analysis.html)
#curl http://www.ebi.ac.uk/pdbe/entry/emdb/EMD-$f/analysis > header/map_analysis.html
#cutoff=$(awk '/contour/{print $4}' < header/map_analysis.html)
cutoff=$(tr '<>' ' ' < header/emd-$f.xml | awk '/contour/{print $3}')
resolution=$(sed -ne 's/[<>/ ]//g' -ne 's/resolutionByAuthor//gp' header/emd-${f}.xml)
echo ${cutoff} > cutoff.txt
echo ${resolution} > resolution.txt
gunzip -c map/emd_${f}.map.gz > emd_${f}.map
${rec_gmconvert} -f emd_${f}.map -t $cutoff -n $1 -N $2
${rec_gmconvert} -f emd_${f}.map -t $cutoff $@
cd -
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment