#!/bin/csh
#$ -S /bin/csh
#$ -cwd
#$ -o /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaavx/Enamine-300-400-xaavx-xgd/CovEnamine-300-400-xaavx-xgd-pattern.out
#$ -e /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaavx/Enamine-300-400-xaavx-xgd/CovEnamine-300-400-xaavx-xgd-pattern.err 
#$ -t 1-1
hostname
date
#cd /scratch
#mkdir -p stefan/CovEnamine-300-400-xaavx-xgd-pattern
#cd stefan/CovEnamine-300-400-xaavx-xgd-pattern
#cp /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaavx/Enamine-300-400-xaavx-xgd/Enamine-300-400-xaavx-xgd.smi .
set name=Enamine-300-400-xaavx-xgd
set num1=`cat Enamine-300-400-xaavx-xgd.smi | wc -l`
cp /nfs/exa/work/stefan/Anions/MWT-300-400/xiaobo-scripts/2019-11-9-xiaobo_combine_version.txt . 
source /nfs/soft/www/apps/zinc15/envs/production/env.csh
setenv molgrep /nfs/soft/tools/apps/molgrep/molgrep.py
$molgrep smarts -f 2019-11-9-xiaobo_combine_version.txt Enamine-300-400-xaavx-xgd.smi filter-Enamine-300-400-xaavx-xgd.smi
rm 2019-11-9-xiaobo_combine_version.txt
set num2=`cat filter-Enamine-300-400-xaavx-xgd.smi | wc -l`
echo "${name}	$num1	$num2 in 50000"
date
#cp -r filter-Enamine-300-400-xaavx-xgd.smi /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaavx/Enamine-300-400-xaavx-xgd/.
#cd ../
#rm -rf CovEnamine-300-400-xaavx-xgd-pattern
