We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71daa6c commit 3156786Copy full SHA for 3156786
minerva_analysis/server/models/data_model.py
@@ -142,6 +142,9 @@ def load_csv(datasource_name, numpy=False):
142
143
if 'CellType' in df.columns:
144
df = df.rename(columns={'CellType': 'phenotype'})
145
+ if config[datasource_name]['featureData'][0]['celltype'] is not None:
146
+ df = df.rename(columns={config[datasource_name]['featureData'][0]['celltype']: 'phenotype'})
147
+
148
if np.issubdtype(df['phenotype'].dtype, np.number) is False:
149
df['phenotype'] = df['phenotype'].apply(lambda x: x.strip())
150
0 commit comments