Skip to content

Commit

Permalink
Trying out float format for entropy
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Jan 26, 2024
1 parent a1321ba commit 316b981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anglerfish/explore/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def run_explore(
entropy_file = os.path.join(
outdir, f"{adaptor.name}_{adaptor_end_name}.entropy.csv"
)
pd.Series(entropies).to_csv(entropy_file)
pd.Series(entropies).to_csv(entropy_file, float_format="%.2f")
log.info(
f"{adaptor.name}:{adaptor_end_name}, relative entropy for k={kmer_length}, over the index saved to {entropy_file}"
)
Expand Down

0 comments on commit 316b981

Please sign in to comment.