Skip to content

Commit

Permalink
Fix bug when parsing gene_expr in extract-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
axdanbol committed Nov 10, 2023
1 parent 6e453cd commit 71d3367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/extract-summary/context/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def unique_rows_to_summary_rows(

df["@type"] = "CellSummaryRow"
df["percentage"] = df["count"] / df["count"].sum()
df["gene_expr"] = df["gene_expr"].apply(json.loads)
df["gene_expr"] = df["gene_expr"].astype(object).apply(json.loads)
return df.to_dict("records")


Expand Down

0 comments on commit 71d3367

Please sign in to comment.