def is_chr_str(chrom):
    """Assume that chromsome in bed/wig files are on format 'chr22' or '22', upon
    which int or str is returned. """
    try:
        int(chrom)
        return "int"
    except:
        return "str"