#!/bin/csh
# generates sorted upl files for input into noe_weeder 
# script and runs noe_weeder script

noe_weeder_finder bc011709.upl > bad_noes
echo 'stored list of bad NOEs in bad_noes'

sort -n bc011709.upl > sort.upl
noe_weeder sort.upl c13no.peaks > temp.peaks
mv c13no.peaks c13no.peaks.unweeded
mv temp.peaks c13no.peaks

noe_weeder sort.upl c13ar.peaks > temp.peaks
mv c13ar.peaks c13ar.peaks.unweeded
mv temp.peaks c13ar.peaks

noe_weeder sort.upl n15no.peaks > temp.peaks
mv n15no.peaks n15no.peaks.unweeded
mv temp.peaks n15no.peaks

echo 'removed bad NOEs from peaklists'
