grail.data.dhfilegenerator Module

Version: 16.2

Table of Contents

Overview

This module provides the ability to create and initialize a new interval file (file 11) and survey file (file 12) and add them to an existing Project Control File.

Examples

pcfpath = "C:/test10.dat"
items=[]
items.append(("CHALC", 0, 99, 1))  #name, min, max, precision
items.append(("TCU", 0, 13, .001))
items.append(("%MLT", 0, 100, .01))
dhfilegenerator.addDHFiles(pcfpath, "test11.dat", "test12.dat", items)

Functions

addDHFiles(pcfPath, file11, file12, itemList, overwrite=0)

Adds a new interval and survey file to an existing Project Control File. A report file, "msg102.la", will be created in the project folder summarizing the results.

Arguments:
pcfPath : string
The absolute path to the PCF file.
file11 : string
The filename of the generated assay file (typically named after the PCF).
file12 : string
The filename of the generated survey file (typically named after the PCF).
itemList : list
A list of tuples representing the interval items to be added to the file 11: (name, min, max, precision)
overwrite : integer
If set to 1, any existing files with the same name will be overwritten. Otherwise, an IOError will be raised if the files already exist.