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