[Swift-user] swift script calling procedure
Zhao Zhang
zhaozhang at uchicago.edu
Thu Jul 31 12:41:35 CDT 2008
Hi, Mike
I am using the same structure of the swift script you used to run dock5
in April. The old file is at surveyor:/home/wilde/doc5/run01.
Could some one take a look at this and point out why it failed to
compile with the procedure readdata( ) ? Thanks so much.
best wishes
zhangzhao
My script is like this:
/type DockOut;
type Mol2;
dock (string id, Mol2 mfile, DockOut ofile, string protein)
{
app { rundock @id @mfile @ofile; }
}
type params {
string idname;
string mname;
string oname;
string pname;
};
doall(params pset[])
{
foreach p in pset {
string id=p.idname;
Mol2 mfile=p.mname;
DockOut ofile=p.oname;
string protein=p.pname;
dock(id, mfile, ofile, protein);
}
}
// Main
params p[];
p = readdata("paramlist");
doall(p);/
It failed to be compiled with this message:
/
zzhang at login6.surveyor:~/swift/etc> swift dock2.swift
Could not start execution.
Compile error in procedure invocation at line 30: Procedure
readdata is not declared./
I am also attaching the paramlist file:
/idname mname oname pname
0 /home/zzhang/swift_dock6/run05/000/000/run05_in.0000000.mol2
/home/zzhang/swift_dock6/run05/000/000/run05_out.0000000.tar.gz 1KQP/
More information about the Swift-user
mailing list