Skip to content

Commit

Permalink
Cast factors values to int (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark authored Nov 19, 2021
1 parent e591e0c commit fb94da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/h5ad-to-arrow/context/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def h5ad_to_json(h5ad_file, **kwargs):
id_to_factors = {
'Leiden Cluster': {
'map': [str(cluster) for cluster in leiden_clusters],
'cells': { k: v['leiden'] for (k,v) in df_items }
'cells': { k: int(v['leiden']) for (k,v) in df_items }
},
**({
'Predicted ASCT Cell Type': {
Expand Down

0 comments on commit fb94da7

Please sign in to comment.