choppa.IO.convert.phylo_json_to_df
- choppa.IO.convert.phylo_json_to_df(json_file, gene=None)[source]
Converts a dataset of phylogenetics fitness data formatted in JSON into a table format as DataFrame as used in choppa.IO.input. This is prone to breaking (depending on how the JSON is formatted). Ideally the JSON has been generated with https://github.com/jbloomlab/SARS2-mut-fitness/blob/main/scripts/export_fitness_to_json.py
gene can be specified to only export a specific gene into the dataframe.