Adds a header to the titer table output based on the text fields
requested from each record. This change allows users of the resulting
data to easily determine what data they're looking at instead of having
to guess and manually add a header each time they load these data into
pandas, etc.
Although it would be nice to updated Augur's titer model code to use
these headers instead of indexing titer table values by hardcoded column
indices, it looks like Augur should handle the inclusion of a header
column by skipping the header when its fifth column cannot be converted
to a float.
Testing
Tested locally with WHO titers for HI and FRA assays.
Description of proposed changes
Adds a header to the titer table output based on the text fields requested from each record. This change allows users of the resulting data to easily determine what data they're looking at instead of having to guess and manually add a header each time they load these data into pandas, etc.
Although it would be nice to updated Augur's titer model code to use these headers instead of indexing titer table values by hardcoded column indices, it looks like Augur should handle the inclusion of a header column by skipping the header when its fifth column cannot be converted to a float.
Testing
Tested locally with WHO titers for HI and FRA assays.