Skip to content

Commit

Permalink
Changed import location
Browse files Browse the repository at this point in the history
  • Loading branch information
dpenfoldbrown committed Oct 5, 2015
1 parent 4170f96 commit e9cfa02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hpf/structure_comparison/domain_structure_representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
## dpb 5/01/2013

import warnings
import networkx
from itertools import combinations
from hpf.graph import max_score_path, path_score
from hpf.structure_comparison.overlap import overlap

# Cutoffs for astral finding
ASTRAL_MCM_CUTOFF = 0.8
Expand Down Expand Up @@ -62,10 +66,6 @@ def structure_representation(domain):
# Build up graph of thresholded astrals.
## Node ID is astral structure key
## Score is # of domain residues covered by astral (astral.overlap * astral.length)
import networkx
from itertools import combinations
from hpf.graph import max_score_path, path_score
from hpf.structure_comparison.overlap import overlap
dag = networkx.DiGraph()
for a in clean_astral_overlaps:
dag.add_node(a.astral.structure_key, score=(a.overlap * (a.astral_stop - a.astral_start + 1)))
Expand Down

0 comments on commit e9cfa02

Please sign in to comment.