Table of Contents


Drug Cleaner

Clean up a flat file with PEGs in it.

This script runs through a tab-delimited text file, removing duplicate entries and entries for features not in the Sprout database. The positional parameters should be the names of the files to clean.

The currently-supported command-line options are as follows.

user

Name suffix to be used for log files. If omitted, the PID is used.

trace

Numeric trace level. A higher trace level causes more messages to appear. The default trace level is 2. Tracing will be directly to the standard output as well as to a traceUser.log file in the FIG temporary directory, where User is the value of the user option above.

sql

If specified, turns on tracing of SQL activity.

macFile

If specified, the file is presumed to be in Macintosh format.

background

Save the standard and error output to files. The files will be created in the FIG temporary directory and will be named errUser.log and outUser.log, respectively, where User is the value of the user option above.

h

Display this command's parameters and options.

col

Column in the input file that contains feature IDs. The default is 6. The column count is 1-based.

phone

Phone number to message when the script is complete.