Skip to content

Commit

Permalink
fix: handle empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Apr 17, 2024
1 parent 6bb8d07 commit 9750419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/notebook/automlst-wrapper.rpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
" df_antismash[\"complete_bgcs\"] = df_antismash[\"bgcs_count\"] - df_antismash[\"bgcs_on_contig_edge\"]\n",
" \n",
" # Select the 'complete_bgcs' and 'bgcs_on_contig_edge' columns and convert them to integers\n",
" df_antismash_completeness = df_antismash.loc[:, [\"complete_bgcs\", \"bgcs_on_contig_edge\"]].astype(int)\n",
" df_antismash_completeness = df_antismash.loc[:, [\"complete_bgcs\", \"bgcs_on_contig_edge\"]].fillna(0).astype(int)\n",
" \n",
" # Define the output file path\n",
" outfile = Path(f\"assets/iTOL_annotation/iTOL_antismash_{antismash_version}_completeness.txt\")\n",
Expand Down

0 comments on commit 9750419

Please sign in to comment.