Skip to content

Commit

Permalink
filter out bfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Apr 24, 2024
1 parent fed7de1 commit fe758e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scripts/upheno_create_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ def add_upheno_ids_to_fillers_and_filter_out_bfo(pattern_dir):
df = pd.read_csv(tsv, sep="\t")
tsv_name = os.path.basename(tsv)
df = add_upheno_id(df, tsv_name.replace(".tsv$", ""))
# filter out independent continuant rows
# filter out "independent continuant" locations
if 'location' in df.columns:
df = df[~df["location"].str.startswith("http://purl.obolibrary.org/obo/BFO_")]
df.to_csv(tsv, sep="\t", index=False)


Expand Down

0 comments on commit fe758e2

Please sign in to comment.