methylprep icon indicating copy to clipboard operation
methylprep copied to clipboard

Adapting sample_sheets.py to Windows users

Open f-marchi opened this issue 2 years ago • 0 comments

I ran into this error in trying to create sample_sheets:

File "sample_sheets.py", line 198, in create_sample_sheet
    raise ValueError(file_name_error_msg.format(idat))
ValueError: This .idat file does not have the right pattern to auto-generate a sample sheet:

To fix it for Windows users, one simply needs to change the "/" with "\\" like so:

filename = str(idat).split("\\")[-1]

f-marchi avatar May 25 '22 21:05 f-marchi