[Swift-devel] script that returns bad parameter error

Mike Kubal mikekubal at yahoo.com
Wed Dec 5 14:56:52 CST 2007


Any thoughts on what might cause? 

type file {}

(file score, file docked) run_fred (string
ligand_prefix, file ligand_file, file receptor_file){
        app {
             run_fred "-rec" receptor_file "-dbase"
ligand_file "-prefix" ligand_prefix;
        }
}


string receptor_prefix = "1beh";

file receptor_file
<single_file_mapper;file=@strcat(receptor_prefix,".oeb.gz")>;

file
fls[]<filesys_mapper;pattern="Marsha_lig_*.mol2",location=".">;

foreach ligand_file in fls{

        string ligand_prefix =
@strcut(@ligand_file,"\.\/(.*)\.mol2");
        string score_file_name =
@strcat(ligand_prefix,"_chemgauss3_scores.txt");
        string docked_file_name =
@strcat(ligand_prefix,"_chemgauss3_docked.mol2");
        file score_file
<single_file_mapper;file=@strcat(ligand_prefix,"_chemgauss3_scores.txt")>;
        file docked_file
<single_file_mapper;file=@strcat(ligand_prefix,"_chemgauss3_docked.mol2")>;

        (score_file,docked_file) =
run_fred(ligand_prefix,ligand_file,receptor_file);

}


Thanks,

Mike Kubal


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the Swift-devel mailing list