Pregap4 can also be used in an non-interactive environment (in "batch mode"). For this to work it is necessary for Pregap4 to already have a valid configuration file with sufficient information for Pregap4 to successfully complete the required processing steps. The best way generate this is to take a small set of sequences that you wish to work on and to run Pregap4 interactively on these. Once Pregap4 can run and complete and you know that the configuration for that set is correct, use "Save all parameters (in all modules)" from the Modules menu to save the current configuration to disk.
It will then be possible to run Pregap4 with the
-nowin argument on the
full set of sequences and on any other set that require the same processing
steps. It will be necessary to specify the files to process on the command
line. Then Pregap4 will execute the processing steps sending output normally
seen in the output window to the standard output (
It is possible to have several configuration files for different data sets.
These can be specified on the command line using
pregap4 -nowin -config clip_only.conf -fofn files > files.output
The above example runs Pregap4 in batch mode on the files listed in `files'. It will use the previously defined configuration contained in `clip_only.conf' and will save text output to `files.output'. After this processing, the files `files.passed', `files.failed', `files.log' and `files.report' will also have been produced.
If you wish to manually or automatically (via your own script) generate the Pregap4 configuration file instead of using the GUI, please see section Manual Configuration.