Appears to be a bug in handled tab files whereby the header is always treat as the first line of data, using a minimal test file produces the following:
chrom start end field1 field2 field3
1 1252534 1252566 a b c
2 2337465 2337499 d e f
This looks to come from the fact the rows are parsed from the file, the first line is treat as the header but then not removed from the list of rows. With the changes this fixes it and produces a file with expected header:
Appears to be a bug in handled tab files whereby the header is always treat as the first line of data, using a minimal test file produces the following:
This looks to come from the fact the rows are parsed from the file, the first line is treat as the header but then not removed from the list of rows. With the changes this fixes it and produces a file with expected header: