Closed PhilPalmer closed 4 years ago
Hi Phil, thanks for the question. To fix the issue, we could update the read_snps_csv
parser to catch pandas.errors.ParserError
and then parse the file with tab as the separator. Alternatively, the header could be inspected to determine the separator.
Related, tab does seem like a better choice to use as a default separator when generating these files, since the comments include commas...
If you have a (23AndMe-like) file produced by snps, eg:
And then you try reading this file into snps you get the following error
Too many columns specified: expected 4 and found 1
:This was discovered by @willgdjones who noted that the issue occurs because:
How can this issue be fixed? As long as it's not too difficult or time-consuming I'd be happy to work on a PR to fix this