#!/bin/csh
#
# This UCSF Generation and Cleanup script was created by AGNuS 1.0.
#


# Testing to delete ./pipe_conversion/
if (-e ./pipe_conversion/) then
	echo "Deleteing ./pipe_conversion/"
	rm -fr ./pipe_conversion/ 
endif

# Testing to delete ./pipe_processing/
if (-e ./pipe_processing/) then
	echo "Deleteing ./pipe_processing/"
	rm -fr ./pipe_processing/ 
endif

# Testing to delete ./N15_noesy_xy.pipe
if (-e ./N15_noesy_xy.pipe) then
	echo "Deleteing ./N15_noesy_xy.pipe"
	rm -fr ./N15_noesy_xy.pipe 
endif

# Testing to delete ./N15_noesy_xz.pipe
if (-e ./N15_noesy_xz.pipe) then
	echo "Deleteing ./N15_noesy_xz.pipe"
	rm -fr ./N15_noesy_xz.pipe 
endif

# Generate UCSF if ./N15_noesy.pipe exists
if (-e ./N15_noesy.pipe) then
	echo "Attempting to generate UCSF file ./N15_noesy.ucsf"
	if ( { pipe2ucsf ./N15_noesy.pipe ./N15_noesy.ucsf } ) then 
		echo "Deleteing ./N15_noesy.pipe"
		rm -f ./N15_noesy.pipe 
	endif
endif

