Jhsmit / PyHDX

Derive ΔG for single residues from HDX-MS data
http://pyhdx.readthedocs.io
MIT License
28 stars 12 forks source link

Updated fileio functions #205

Closed Jhsmit closed 2 years ago

Jhsmit commented 2 years ago

Specifically the ones for reading/writing pandas dataframes to .csv files or StringIO objects.

Updated functions in this PR save metadata in json format alongside the data. The field is used to readout the file again such that index/multiindex in the read dataframe is identical to the original dataframe.

An additional field is used to store metadata in df['attrs'].metadata or in pyhdx.models.Protein.metadata

Additional features: