Skip to content

Commit

Permalink
fix: fix guard condition in aminoAcidChange()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Jun 19, 2020
1 parent f7bb198 commit 1d9df44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/algorithms/getAllAminoAcidChanges.ts
Expand Up @@ -7,7 +7,7 @@ import { Base } from './run'

export function aminoAcidChange(pos: number, queryAllele: string, refSequence: string, gene: GeneMapDatum) {
// check that the positions is infact part of this gene
if (inRange(pos, gene.start, gene.end)) {
if (!inRange(pos, gene.start, gene.end)) {
return undefined
}

Expand Down

0 comments on commit 1d9df44

Please sign in to comment.