Skip to content

Commit

Permalink
Merge pull request #270 from nextstrain/fix-kde-alignment-frequencies
Browse files Browse the repository at this point in the history
Emit one-based coordinates for KDE-based mutation frequencies
  • Loading branch information
huddlej committed Apr 5, 2019
2 parents edddd72 + 6bcd6ec commit 8043355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion augur/frequency_estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ def estimate(self, alignment, observations):
for sample, base in enumerate(alignment[:, position]):
# Estimate frequencies by current position and base/residue
# at the position for each sample.
key = "%s:%s" % (position, base.upper())
key = "%s:%s" % (position + 1, base.upper())
if key not in frequencies:
frequencies[key] = np.zeros_like(self.pivots)

Expand Down

0 comments on commit 8043355

Please sign in to comment.