#!/bin/csh -f setenv MOLDIR `pwd` # accept namelist format directory names, 1 line if ( $1 != '' ) then setenv MOLNAME `cut -f1 -d' ' ${1}/names | 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 / ' '` # make raster images if ( -f ${1}/${MOLNAME}-balls.png ) then echo image in place else balls < ${1}/*.pdb | render -png > ${1}/${MOLNAME}-balls.png endif if ( -f ${1}/${MOLNAME}-rods.png ) then echo image in place else rods < ${1}/*.pdb | render -png > ${1}/${MOLNAME}-rods.png endif echo "Molecules@GNU-Darwin.org:"`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-5 -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 -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("babel -isdf "$1"/"$2"/"$3"/"$3".sdf -osmiles > "$1"/"$2"/"$3"/\${MOLNAME}.smiles ; echo \"

\" && echo -n "$3"\" \" && cat "$1"/"$2"/"$3"/names | fold -w 60 | tr \"\\n\" % | sed s/\"%\"/\"
\"/g && echo \"

Smiles: \" && cat "$1"/"$2"/"$3"/\${MOLNAME}.smiles | fold -w 60 | sed s/%%%%$%%%%/\"
\"/ && echo \"
pdb file: "$3".pdb
sdf file: "$3".sdf

\"")}' | sed s/%%%%/"\'"/g | csh -f \ >> ${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 -f ; \ cd ${MOLDIR} 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 "


Image Links

    "\ >> ${1}/index.html \ls $1/ | grep '\.png$' | awk '{print(""$1"
    ")}'\ >> ${1}/index.html echo "


Molecule Name Links

    "\ >> ${1}/index.html \ls $1/ | grep '\.html$' | grep -v index.html | sed s/'\.html$'// | awk '{print(""$1"
    ")}'\ >> ${1}/index.html echo "

More coming soon!

Back to top


RSS News Feed

Add to My Yahoo
Subscribe in NewsGator Online
Add to Google
(syndicate freely:)

" \ >> ${1}/index.html echo "


PubChem Fields


Other Related Links

More coming soon!" \ >> ${1}/index.html echo '


' \ >> ${1}/index.html smiley \ >> ${1}/index.html echo '
' \ >> ${1}/index.html echo inserting header ~/grabHtmlHeader ${1}/index.html ; ~/insertSidebar2 ${1}/index.html else echo argument required endif