Open ClayBirkett opened 1 week ago
Instead of starting with the first line that contains number - slash - number, the parsing should simply start at the line after the line starting with #CHROM ?
The error is when reading in the transposed VCF so there is no #CHROM line. It might be that the problem is with the creation of the transposed file not reading the file.
In the code it actually skips 8 entries, which is correct for the untransposed file, but probably incorrect for the transposed file?
I have it working now. The problem was that the parse_with_plugin() function was reading a fixed number of comment lines which is never true. I changed this to read all lines starting with "##", the comment lines. Then the next_genotype() function then skips the crhom, pos, id, ref, alt correctly
When the VCF has no header then the first few accessions are skipped while loading This modification works on the transposed file
5203
Checklist
/t/data/fixture/patches/
./docs
has been updated./js
to/js/source/legacy
.