#!/bin/csh
#$ -S /bin/csh
#$ -cwd
#$ -o /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaayo/Enamine-300-400-xaayo-xez/CovEnamine-300-400-xaayo-xez-pattern.out
#$ -e /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaayo/Enamine-300-400-xaayo-xez/CovEnamine-300-400-xaayo-xez-pattern.err 
#$ -t 1-1
hostname
date
#cd /scratch
#mkdir -p stefan/CovEnamine-300-400-xaayo-xez-pattern
#cd stefan/CovEnamine-300-400-xaayo-xez-pattern
#cp /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaayo/Enamine-300-400-xaayo-xez/Enamine-300-400-xaayo-xez.smi .
set name=Enamine-300-400-xaayo-xez
set num1=`cat Enamine-300-400-xaayo-xez.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-xaayo-xez.smi filter-Enamine-300-400-xaayo-xez.smi
rm 2019-11-9-xiaobo_combine_version.txt
set num2=`cat filter-Enamine-300-400-xaayo-xez.smi | wc -l`
echo "${name}	$num1	$num2 in 50000"
date
#cp -r filter-Enamine-300-400-xaayo-xez.smi /nfs/exa/work/stefan/Anions/MWT-300-400/Enamine-300-400-xaayo/Enamine-300-400-xaayo-xez/.
#cd ../
#rm -rf CovEnamine-300-400-xaayo-xez-pattern
