def __init__(self, filename, blocksize, blockCapacity,<EOL>debug=False, verbose=False):
self.itrees = {}<EOL>self.blocksize = blocksize<EOL>self.blockCapacity = blockCapacity<EOL>self.populatedBlocks = []<EOL>self.blocksByChrom = {}<EOL>self.debug = debug<EOL>self.verbose = verbose<EOL>self.handle = filename<EOL>if type(self.handle).__name__ == "<STR_LIT:str>" :<EOL><INDENT>self.handle = open(self.handle)<EOL><DEDENT>self.build()<EOL>
@summary: Constructor for IndexedWig objects
@param filename: handle, or filename for the wig file
@param blocksize: number of wig elements to store in each block
@param blockCapacity: number of blocks to keep in memory at a time
@param debug: if true, output additional debugging info
@param verbose: if true, output additional run info when building object