The Molecular Graphics Laboratory Forum

AutoDock, AutoLigand, MGLTools, Vina, PyRx and more.
It is currently Sat Sep 22, 2018 6:58 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Jul 07, 2016 7:12 am 
Millimolar User
Millimolar User
User avatar

Joined: Thu Jul 07, 2016 6:51 am
Posts: 5
Sorry in advance if my questions are very basics. I trying to repeat PDF tutorial files for my small ZINC library and receptor.
# use the UNIX utility csplit to divide the multi-molecule mol2
# file into separate files

cat $VSTROOT/zinc.mol2|csplit –ftmp –n –ks –

Using the above script I have successfully generated the tmp files.
#Rename the tmp file according to ZINC identifier
# Here is the outline of how we do this:
# 1. Extract ZINCn8 from the tmpNNNN file and set to variable
# 2. If the Zn8.mol2 file does not exit, rename tmpNNNN files

foreach f (tmp*)
echo $f
set zid = `grep ZINC $f`
if !(-e “$zid”.mol2) then
set filename = “$zid”.mol2
else foreach n (`seq –w 1 99`)
if !(-e “$zid”_”$n”.mol2) then
set filename = “$zid”_”$n”.mol2
mv –v $f $filename

Now when ever I try the foreach f (tmp*) step, every time I received an error of bash :syntax near unexpected token error '('. Please guide me how I can successfully finish this step or where I am making a mistake?

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Translated by Maël Soucaze © 2009