Skip to content

Commit

Permalink
Remove FPs and TNs from returned results
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraluebbert authored Nov 14, 2023
1 parent c49a277 commit 96caf22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gget/gget_elm.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ def elm(
ortho_df[col] = np.NaN

ortho_df = ortho_df[ortho_cols]
# Drop duplicate rows
ortho_df = ortho_df.drop_duplicates()
# Remove false positives and true negatives
ortho_df = ortho_df[(ortho_df["InstanceLogic"] != "false positive") & (ortho_df["InstanceLogic"] != "true negative")]

# Build data frame containing regex motif matches
if verbose:
Expand Down Expand Up @@ -418,7 +421,10 @@ def elm(
df_regex_matches[col] = np.NaN

df_regex_matches = df_regex_matches[regex_cols]
# Drop duplicates
df_regex_matches = df_regex_matches.drop_duplicates()
# Remove false positives and true negatives
df_regex_matches = df_regex_matches[(df_regex_matches["InstanceLogic"] != "false positive") & (df_regex_matches["InstanceLogic"] != "true negative")]

# Create out folder if it does not exist
if out:
Expand Down

0 comments on commit 96caf22

Please sign in to comment.