From c1edf3ac71a502d748b294bf783513db60514699 Mon Sep 17 00:00:00 2001 From: Jonathan Moody Date: Sun, 10 Apr 2022 16:17:10 +0900 Subject: [PATCH] add fix for no specific label --- cello/cello_predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cello/cello_predict.py b/cello/cello_predict.py index 39e5f21..bcb5894 100644 --- a/cello/cello_predict.py +++ b/cello/cello_predict.py @@ -189,7 +189,7 @@ def main(): for x in finalized_binary_results_df.columns ] ms_results_df['most_specific_cell_type'] = [ - ou.cell_ontology().id_to_term[x].name + ou.cell_ontology().id_to_term[x].name if x != '' else 'Unknown' for x in ms_results_df['most_specific_cell_type'] ]