Skip to content

Commit

Permalink
Fill NA
Browse files Browse the repository at this point in the history
  • Loading branch information
Abigail Shockey committed Dec 9, 2024
1 parent d36886e commit fb15f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dryad_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def join_dfs_with_quast(df_log, df_excluded, df_quast):
df_log_excluded_quast = pd.merge(df_log_excluded, df_quast, on='Sample', how='outer')

# Change float to int
df_log_excluded_quast[['Sequence Length','Cluster Coverage (bps)','Contigs','N50']] = df_log_excluded_quast[['Sequence Length','Cluster Coverage (bps)','Contigs','N50']].astype(int)
df_log_excluded_quast[['Sequence Length','Cluster Coverage (bps)','Contigs','N50']] = df_log_excluded_quast[['Sequence Length','Cluster Coverage (bps)','Contigs','N50']].fillna(-1).astype(int)

# Rename and Drop columns
df_log_excluded_quast = df_log_excluded_quast.rename(columns={'excluded_from_analysis':'Excluded from Parsnp\'s analysis'})
Expand Down

0 comments on commit fb15f6c

Please sign in to comment.