log.setLevel(logging.INFO)
// args.chromosomes
if (args.matrix.endswith(".cool") or ".mcool" in args.matrix) and args.chromosomes is not None and len(args.chromosomes) == 1:
ma = hm.hiCMatrix(args.matrix, chrnameList=toString(args.chromosomes))
else:
ma = hm.hiCMatrix(args.matrix)
After Change
log.setLevel(logging.INFO)
// args.chromosomes
if check_cooler(args.matrix) and args.chromosomes is not None and len(args.chromosomes) == 1:
ma = hm.hiCMatrix(args.matrix, chrnameList=toString(args.chromosomes))
else:
ma = hm.hiCMatrix(args.matrix)