Skip to content

Commit

Permalink
Fix output format in triangle mode (#31)
Browse files Browse the repository at this point in the history
* Fix --full-matrix output format in triangle mode for -o option

---------

Co-authored-by: Florian Plaza Onate <fplazaonate@gmt.bio>
  • Loading branch information
fplazaonate and Florian Plaza Onate authored Jun 28, 2024
1 parent ee3132a commit 9709a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ pub fn write_phyllip_matrix(
write!(&mut af_file, "{}", name).unwrap();
let end = sketches.len();
for j in 0..end {
let full_cond = (full_matrix && i >= j) || (i > j);
let full_cond = full_matrix || (i > j);
if i == j {
if full_cond {
write!(&mut ani_file, "\t{:.2}", perfect).unwrap();
Expand Down

0 comments on commit 9709a52

Please sign in to comment.