Skip to content

Commit

Permalink
Changing path to cell type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwarchol committed Jun 27, 2023
1 parent 9904dfe commit 263d390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minerva_analysis/server/models/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def load_csv(datasource_name, numpy=False):

if 'CellType' in df.columns:
df = df.rename(columns={'CellType': 'phenotype'})
if config[datasource_name]['featureData'][0]['celltype'] is not None:
if 'celltype' in config[datasource_name]['featureData'][0]:
df = df.rename(columns={config[datasource_name]['featureData'][0]['celltype']: 'phenotype'})

if np.issubdtype(df['phenotype'].dtype, np.number) is False:
Expand Down

0 comments on commit 263d390

Please sign in to comment.