Skip to content

Commit

Permalink
bionetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
yollct committed Apr 14, 2022
1 parent 90d8f6d commit 1977f67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spycone/BioNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ def __init__(
if gene in g[gene]:
tmp += 1
g.remove_edge(gene, gene)
elif self.path == "mouse":
path = os.path.join(dir_path,f'data/network/10090_biogrid_entrez.tab')
g = nx.read_edgelist(path=path, **self.kwargs)
tmp = 0
for gene in g:
if gene in g[gene]:
tmp += 1
g.remove_edge(gene, gene)
else:
g = nx.read_edgelist(path=path, **self.kwargs)
tmp = 0
Expand Down

0 comments on commit 1977f67

Please sign in to comment.