Skip to content

Commit

Permalink
Fix to possible_replacement so the list field is standardized after i…
Browse files Browse the repository at this point in the history
…t's actually a list of strings
  • Loading branch information
jaclynbeck-sage committed Nov 22, 2024
1 parent ab1bb82 commit 3a60655
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,11 @@
"source": [
"gene_table_merged[\"possible_replacement\"] = gene_table_merged[\n",
" \"possible_replacement\"\n",
"].apply(preprocessing_utils.standardize_list_item)\n",
"].apply(lambda pr: pr if pr is np.NaN or len(pr) == 0 else [x[\"stable_id\"] for x in pr])\n",
"\n",
"gene_table_merged[\"possible_replacement\"] = gene_table_merged[\n",
" \"possible_replacement\"\n",
"].apply(lambda pr: pr if len(pr) == 0 else [x[\"stable_id\"] for x in pr])\n",
"].apply(preprocessing_utils.standardize_list_item)\n",
"\n",
"gene_table_merged = gene_table_merged[\n",
" [\n",
Expand Down

0 comments on commit 3a60655

Please sign in to comment.