def chromsizes(filename):
    '\n    Get a list of chromosome sizes from this [presumably] bigwig\n    file.\n\n    Parameters:\n    -----------\n    filename: string\n        The filename of the bigwig file\n\n    Returns\n    -------\n    chromsizes: [(name:string, size:int), ...]\n        An ordered list of chromosome names and sizes\n    '
    try:
        chrom_series = get_chromsizes(filename)
        data = []
        for (chrom, size) in chrom_series.iteritems():
            data.append([chrom, size])
        return data
    except Exception as ex:
        logger.error(ex)
        raise Exception('Error loading chromsizes from bigwig file: {}'.format(ex))
Get a list of chromosome sizes from this [presumably] bigwig
file.

Parameters:
-----------
filename: string
    The filename of the bigwig file

Returns
-------
chromsizes: [(name:string, size:int), ...]
    An ordered list of chromosome names and sizes
def chromsizes(filename):
    '\n    Get a list of chromosome sizes from this [presumably] bigwig\n    file.\n\n    Parameters:\n    -----------\n    filename: string\n        The filename of the bigwig file\n\n    Returns\n    -------\n    chromsizes: [(name:string, size:int), ...]\n        An ordered list of chromosome names and sizes\n    '
    try:
        chrom_series = get_chromsizes(filename)
        data = []
        for (chrom, size) in chrom_series.iteritems():
            data.append([chrom, size])
        return data
    except Exception as ex:
        logger.error(ex)
        raise Exception('Error loading chromsizes from bigwig file: {}'.format(ex))