tosegwizard

igwn_segments.utils.tosegwizard(fileobj, seglist, header=True, coltype=<class 'int'>)

Write the segmentlist seglist to the file object fileobj in a segwizard compatible format. If header is True, then the output will begin with a comment line containing column names. The segment boundaries will be coerced to type coltype and then passed to str() before output.