Re: coding for sequential NM-runs

From: Paolo Denti Date: March 15, 2011 technical Source: mail-archive.com
Markus, I don't know if this is what you need, but I was using this code (below) in a batch (.bat) file to run a model, then update the initial estimates, and then run the resulting model. This uses the Perl Speaks NONMEM scripts "execute" and "update_inits", but I guess you can modify the individual commands and run with nmfe. Beware that in this code I was passing the number of the run as first argument calling the script, and in the code it substitutes %1. But obviously you can hard-code the filenames of your model files. Paste the content into a file (e.g. script.bat) To call the script (on run123), type script.bat 123 CALL execute run%1.mod -nm_ver=7 -no-tail_output CALL update_inits run%1.mod run%1.lst -nm_ver=7 -output=run%1a.mod CALL execute run%1a.mod -nm_ver=7 -no-tail_output CALL update_inits run%1a.mod run%1a.lst -nm_ver=7 -output=run%1b.mod CALL execute run%1b.mod -nm_ver=7 -no-tail_output CALL update_inits run%1b.mod run%1b.lst -nm_ver=7 -output=run%1c.mod CALL execute run%1c.mod -nm_ver=7 -no-tail_output Also, if you don't want to update the initial estimates (but you just want to run lots of file) and you are using PsN, you can just type execute run1.mod run2.mod run3.mod run4.mod -thread=1 thread=1 will make sure that the runs are executed sequentially. Hope this helps. Ciao, Paolo
Quoted reply history
On 15/03/2011 10:50, markus joerger wrote: > dear community, > > I wonder if someone can provide me a coding for starting (automatically) sequential NM7-runs from MS-DOS? > > thank you in advance and kind regards > Markus > > -- > Markus Joerger MD PhD > Department of Medical Oncology > Cantonal Hospital > Rorschacherstr. 95 > 9007 St. Gallen > Switzerland > [email protected] <mailto:[email protected]> > [email protected] <mailto:[email protected]> > phone: +41-765591070 > fax: +41-714946368 -- ------------------------------------------------ Paolo Denti, PhD Post-Doctoral Fellow Division of Clinical Pharmacology Department of Medicine University of Cape Town K45 Old Main Building Groote Schuur Hospital Observatory, Cape Town 7925 South Africa phone: +27 21 404 7719 fax: +27 21 448 1989 email: [email protected] ------------------------------------------------ ### UNIVERSITY OF CAPE TOWN This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity. ###
Mar 15, 2011 Markus Joerger coding for sequential NM-runs
Mar 15, 2011 Nick Holford Re: coding for sequential NM-runs
Mar 15, 2011 Paolo Denti Re: coding for sequential NM-runs
Mar 15, 2011 Saik Urien Svp Re: coding for sequential NM-runs
Mar 15, 2011 Alan Xiao RE: coding for sequential NM-runs
Mar 15, 2011 William Bachman RE: coding for sequential NM-runs