Skip to content

Commit

Permalink
bug fix; locus with 0 votes had no line in the detailed output file, …
Browse files Browse the repository at this point in the history
…causing a shift and making the output wrong
  • Loading branch information
pedrofeijao committed Jan 27, 2018
1 parent 801c8d5 commit ad269b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/build_db_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ function call_alleles(k, kmer_count, votes, loci_votes, loci, loci2alleles, fast
# if locus has no votes (no kmer present), output a zero:
if loci_votes[idx] == 0
push!(best_voted_alleles, "0")
push!(vote_log, ("0","No kmers matches on this locus."))
continue
end
# if it has votes, sort and pick the best;
Expand Down

0 comments on commit ad269b4

Please sign in to comment.