Al-Murphy / MungeSumstats

Rapid standardisation and quality control of GWAS or QTL summary statistics
https://doi.org/doi:10.18129/B9.bioc.MungeSumstats
75 stars 16 forks source link

Fix NA representation for tabular outputs #126

Closed BEFH closed 2 years ago

BEFH commented 2 years ago

By default, data.table::fread() leaves NAs blank instead of including a literal NA. That's fine for CSVs and if the output is read in by fread, but it breaks other tools for TSVs and is hard to read.

I have updated that and added a message when the table is switched to uncompressed for indexing.

I also replaced a | with a || for a scalar OR in a conditional, and I did some code formatting. If possible, I would love if the literal NA could be integrated. The other stuff is more optional.