def check_names(treat, control, error_stream):
    tchrnames = set(treat.get_chr_names())
    cchrnames = set(control.get_chr_names())
    commonnames = tchrnames.intersection(cchrnames)
    if len(commonnames)==0:
        error_stream("No common chromosome names can be found from treatment and control! Check your input files! MACS will quit...")
        error_stream("Chromosome names in treatment: %s" % ",".join(sorted(tchrnames)))
        error_stream("Chromosome names in control: %s" % ",".join(sorted(cchrnames)))
        sys.exit()
Register a layer.
dataset/ETHPy150Open taoliu/MACS/MACS2/callpeak_cmd.py/check_names--crossover with--dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/models/_common.py/layer_register