Commit a8525138 authored by Francois Gygi's avatar Francois Gygi
Browse files

Fix qbox_reduce.sh, remove dep on get_atomset.sh

parent 44584376
#!/bin/bash
# reduce qbox restart file to atomset file
# Reduce a qbox restart file to an atomset file
# The original file is removed
# use: qbox_reduce.sh file.xml [file.xml ..]
for f in ${*}
do
name=${f%.xml}
atomset_name=${name}_atomset
echo $name.xml "->" $atomset_name.xml
get_atomset $f > $atomset_name.xml
nlines=$(grep /atomset -m 1 -n $f | cut -f1 -d: - )
head -$nlines $f > $atomset_name.xml
echo "</fpmd:sample>" >> $atomset_name.xml
rm $f
done
Supports Markdown
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