Skip to content

Commit

Permalink
Remove snp_id from data to be added to edge
Browse files Browse the repository at this point in the history
  • Loading branch information
nanglo123 committed Dec 12, 2023
1 parent 248b00c commit e7af087
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/indra_cogex/sources/disgenet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ def get_relations(self): # noqa:D102
for snp_id, dsi, dpi, disease_name, disease_id, papers in self.df[
columns
].values:
data = {"snp_id:str": snp_id, "source": self.name,
"dsi:float": dsi, "dpi:float": dpi,
data = {"dsi:float": dsi,
"dpi:float": dpi,
"source": self.name,
"papers:int": papers}
yield Relation(
"DBSNP", snp_id, disease_name, disease_id, self.relation,
Expand Down Expand Up @@ -181,5 +182,3 @@ def load_disgenet_disease_gene(url, force: bool = False,
df = df[df["DSI"].notna()]
df = df[df["DPI"].notna()]
return df


0 comments on commit e7af087

Please sign in to comment.