phac-nml / biohansel

Rapidly subtype microbial genomes using single-nucleotide variant (SNV) subtyping schemes
Apache License 2.0
26 stars 7 forks source link

Fix metadata NA value issue #120

Closed peterk87 closed 5 years ago

peterk87 commented 5 years ago

This PR fixes issue #112 (also adds test for metadata merging of "#N/A" subtype value)

Metadata NA value can be any of the following values and will be automatically converted by Pandas into a Pandas NaN value:

‘’, ‘#N/A’, ‘#N/A N/A’, ‘#NA’, ‘-1.#IND’, ‘-1.#QNAN’, ‘-NaN’, ‘-nan’, ‘1.#IND’, ‘1.#QNAN’, ‘N/A’, ‘NA’, ‘NULL’, ‘NaN’, ‘n/a’, ‘nan’, ‘null’.

See pandas.read_table na_values argument