def tileset_info(bwpath, chromsizes=None):
    "\n    Get the tileset info for a bigWig file\n\n    Parameters\n    ----------\n    bwpath: string\n        The path to the bigwig file from which to retrieve data\n    chromsizes: [[chrom, size],...]\n        A list of chromosome sizes associated with this tileset.\n        Typically passed in to specify in what order data from\n        the bigwig should be returned.\n\n    Returns\n    -------\n    tileset_info: {'min_pos': [],\n                    'max_pos': [],\n                    'tile_size': 1024,\n                    'max_zoom': 7\n                    }\n    "
    TILE_SIZE = 1024
    if (chromsizes is None):
        chromsizes = get_chromsizes(bwpath)
        chromsizes_list = []
        for (chrom, size) in chromsizes.iteritems():
            chromsizes_list += [[chrom, int(size)]]
    else:
        chromsizes_list = chromsizes
    min_tile_cover = np.ceil((sum([int(c[1]) for c in chromsizes_list]) / TILE_SIZE))
    max_zoom = int(np.ceil(np.log2(min_tile_cover)))
    tileset_info = {'min_pos': [0], 'max_pos': [(TILE_SIZE * (2 ** max_zoom))], 'max_width': (TILE_SIZE * (2 ** max_zoom)), 'tile_size': TILE_SIZE, 'max_zoom': max_zoom, 'chromsizes': chromsizes_list, 'aggregation_modes': aggregation_modes, 'range_modes': range_modes}
    return tileset_info
Get the tileset info for a bigWig file

Parameters
----------
bwpath: string
    The path to the bigwig file from which to retrieve data
chromsizes: [[chrom, size],...]
    A list of chromosome sizes associated with this tileset.
    Typically passed in to specify in what order data from
    the bigwig should be returned.

Returns
-------
tileset_info: {'min_pos': [],
                'max_pos': [],
                'tile_size': 1024,
                'max_zoom': 7
                }
def tileset_info(bwpath, chromsizes=None):
    "\n    Get the tileset info for a bigWig file\n\n    Parameters\n    ----------\n    bwpath: string\n        The path to the bigwig file from which to retrieve data\n    chromsizes: [[chrom, size],...]\n        A list of chromosome sizes associated with this tileset.\n        Typically passed in to specify in what order data from\n        the bigwig should be returned.\n\n    Returns\n    -------\n    tileset_info: {'min_pos': [],\n                    'max_pos': [],\n                    'tile_size': 1024,\n                    'max_zoom': 7\n                    }\n    "
    TILE_SIZE = 1024
    if (chromsizes is None):
        chromsizes = get_chromsizes(bwpath)
        chromsizes_list = []
        for (chrom, size) in chromsizes.iteritems():
            chromsizes_list += [[chrom, int(size)]]
    else:
        chromsizes_list = chromsizes
    min_tile_cover = np.ceil((sum([int(c[1]) for c in chromsizes_list]) / TILE_SIZE))
    max_zoom = int(np.ceil(np.log2(min_tile_cover)))
    tileset_info = {'min_pos': [0], 'max_pos': [(TILE_SIZE * (2 ** max_zoom))], 'max_width': (TILE_SIZE * (2 ** max_zoom)), 'tile_size': TILE_SIZE, 'max_zoom': max_zoom, 'chromsizes': chromsizes_list, 'aggregation_modes': aggregation_modes, 'range_modes': range_modes}
    return tileset_info