#!/bin/csh setenv MOLDIR `pwd` # accept namelist format directory names, 1 line if ( $1 != '' ) then setenv MOLNAME `cut -f1 -d' ' ${1}/names` # make raster images balls < ${1}/*.pdb | render -png > ${1}/${MOLNAME}-balls.png rods < ${1}/*.pdb | render -png > ${1}/${MOLNAME}-rods.png echo ""`echo "$*" | \ tr -s ' ' | tr -d ')' | tr -d '(' | tr -d '[' | tr -d ']' | sed s/' -'/' '/ | sed s/' -'/' '/ | sed s/' -'/' '/ | tr -s ' ' | tr -d '*' | tr -d '\"' | tr -d "\'" | tr / ' ' | cut -f1-3 -d ' ' | tr ' ' /`"" \ > ${1}/index.html echo "

"`echo "$*" | \ tr -s ' ' | tr -d ')' | tr -d '(' | tr -d '[' | tr -d ']' | sed s/' -'/' '/ | sed s/' -'/' '/ | sed s/' -'/' '/ | tr -s ' ' | tr -d '*' | tr -d '\"' | tr -d "\'" | tr / ' ' | cut -f2,3 -d ' ' | tr ' ' /`" Index

" \ >> ${1}/index.html echo "Please note: images may show incorrect connectivity due to improper geometry. We will be working to improve this situation. For now, the left image should be correct, and the other two are correct, if they match the first.
" >> ${1}/index.html # # echo -n "${1} " > ${1}/index.html # echo -n `cat ${1}/names` > ${1}/index.html # echo "Index" > ${1}/index.html # echo "

${1} index

" > ${1}/index.html echo "$*" | tr -s ' ' | tr -d ')' | tr -d '(' | tr -d '[' | tr -d ']' | sed s/' -'/' '/ | sed s/' -'/' '/ | sed s/' -'/' '/ | tr -s ' ' | tr -d '*' | tr -d '\"' | tr -d "\'" | tr / ' ' | awk '{print("echo \"
\" && echo -n "$3"\" \" && cat "$1"/"$2"/"$3"/names && echo \"
pdb file: "$3".pdb
sdf file: "$3".sdf

\"")}' | csh \ >> ${1}/index.html cd ${MOLDIR}/$1 && \ echo "$*" | tr / ' ' | cut -f3-104 -d ' ' | tr -s ' ' | tr ' ' '\n' | grep . | \ tr -d ')' | tr -d '(' | tr -d '[' | tr -d ']' | \ sed s/' -'/' '/ | sed s/' -'/' '/ | sed s/' -'/' '/ | tr -s ' ' | tr -d '*' | tr -d '\"' | tr -d "\'" | \ awk '{print("ln -s index.html "$1".html")}' | csh && \ cd ${MOLDIR} echo "


Image Links


Molecule Name Links


PubChem Fields


Other Related Links

More coming soon!"\ >> ${1}/index.html echo inserting header ~/grabHtmlHeader ${1}/index.html ; ~/insertSidebar2 ${1}/index.html else echo argument required endif