#!/bin/tcsh

@ nn = 0

foreach a (*_cond)
	@ nn = $nn + 1
	set nam = chem-${nn}
	set b = `echo $a | sed 's/\_cond//'`
	echo $nn $b

	../ExpandVol.pl < $a > ${b}_exp173 

	mkdir $nn
	mv ${b}* ${nn}/
	cd $nn
	ln -s $a ${nam}.atom-vols.dat
	ln -s ${b}_exp173  ${nam}.vol173predicted.dat
	ln -s ${b}.rd ${nam}.resi-defs.dat
	ln -s ${b}.ad ${nam}.atom-defs.dat
	cd ..
end
