biocore / metagenomics_pooling_notebook

Jupyter notebooks to assist with sample processing
MIT License
8 stars 16 forks source link

read_plate_map_csv edgecase: numeric samples will be read as numbers #108

Open wasade opened 1 year ago

wasade commented 1 year ago

Please see https://github.com/biocore/metagenomics_pooling_notebook/blob/f573aaeee992afb7c570546d6624fd188110d70c/metapool/metapool.py#L217. dtype=str should be used on load, and specific columns cast to numeric as needed. As it stands, this parse will treat "000111" as a numeric entry and truncate the leading zeros.

antgonza commented 1 year ago

@wasade, thank you!

@charles-cowart, could you make sure that all read_csv have the dtype=str param? Thanks.