Skip to content

Commit

Permalink
test fix - account for float NaN values & other null as blank / no va…
Browse files Browse the repository at this point in the history
…riant annotation.
  • Loading branch information
dustinbleile committed May 12, 2023
1 parent 3f300c1 commit 430205b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ipr/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from graphkb.match import INPUT_COPY_CATEGORIES
from graphkb.types import Variant
from graphkb.util import FeatureNotFoundError, convert_to_rid_list
from pandas import isnull
from progressbar import progressbar
from typing import Any, Dict, List, Sequence, Set, cast

Expand Down Expand Up @@ -329,7 +330,7 @@ def annotate_positional_variants(
for var_key in VARIANT_KEYS:
variant = row.get(var_key)
matches = []
if not variant:
if not variant or isnull(variant):
continue
try:
try:
Expand Down

0 comments on commit 430205b

Please sign in to comment.