seppinho / haplogrep-cmd

HaploGrep - mtDNA haplogroup classification. Supporting rCRS and RSRS.
https://haplogrep.i-med.ac.at/
MIT License
74 stars 23 forks source link

Extra space on columns when --extend-report is used #11

Closed nuin closed 6 years ago

nuin commented 6 years ago

Hi

It seems that some columns of the output file (second line, with results) has an extra space on the start of the column

['ID', '1-16569;', '', 'W1+119', '0.9464', '', ' 73G 119C 189G 195C 204C 207A 263G 709A 750G 1243C 1438G 2706G 3505G 4769G 5046A 5460A 7028T 7864T 8251A 8860G 8994A 11674T 11719A 11947G 12414C 12705T 14766T 15326G 15884C 16223T 16292T', ' 94A 103A 118C 198T 16278T 16295T 16519C', '', ' 73G 94A 103A 118C 119C 189G 195C 198T 204C 207A 263G 709A 750G 1243C 1438G 2706G 3505G 4769G 5046A 5460A 7028T 7864T 8251A 8860G 8994A 11674T 11719A 11947G 12414C 12705T 14766T 15326G 15884C 16223T 16278T 16292T 16295T 16519C']

This is string.split('\t') with Python of the second line. Notice the extra space before 73G and 94G.

Is this an artifact from the input? A problem on the output? Or is it there for a reason?

Thanks