diff --git a/src/cooler/cli/_util.py b/src/cooler/cli/_util.py index 5c28394..8457a41 100644 --- a/src/cooler/cli/_util.py +++ b/src/cooler/cli/_util.py @@ -98,9 +98,10 @@ def parse_field_param(arg, includes_colnum=True, includes_agg=True): def parse_bins(arg): - # Provided chromsizes and binsize - if ":" in arg: - chromsizes_file, binsize = arg.split(":") + # User provided chromsizes path and binsize + arg_nodrive = op.splitdrive(arg)[1] # Remove drive + colon if on Windows + if ":" in arg_nodrive: + chromsizes_file, binsize = arg.split(":", -1) if not op.exists(chromsizes_file): raise ValueError(f'File "{chromsizes_file}" not found') try: