Skip to content

Commit

Permalink
sorted ties output
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofeijao committed Jul 24, 2017
1 parent 0d63c66 commit a42fbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_db_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function write_calls(votes, loci, loci2alleles, sample, filename, profile)
end
# write ties:
open("$filename.ties.txt", "w") do f
for (locus, tied_alleles) in ties
for (locus, tied_alleles) in sort(collect(ties), by=x->x[1])
ties_txt = join(["$t" for t in tied_alleles],", ")
write(f, "$locus\t$ties_txt\n")
end
Expand Down

0 comments on commit a42fbc4

Please sign in to comment.