drugforge.spectrum.fitness.parse_fitness_json

drugforge.spectrum.fitness.parse_fitness_json(target: TargetTags) DataFrame[source]

Read a per-aa fitness JSON’s specified target into a pandas DF.

Parameters:

target (str) – Specifies the target and virus, conforming to drugforge.data.postera.manifold_data_validation.TargetTags

Returns:

fitness_df_abstract

Dataframe where indices are residue numbers, columns are:

”fitness” -> normalized fitness (0 is not mutable, 1 is highly mutable) “wildtype_residue” “most_fit_mutation” “least_fit_mutation” “confidence” -> normalized confidence (0 is not confident, 1 is highly confident)

Return type:

pandas DataFrame