Skip to content

Commit

Permalink
MAINT: Clean up code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 committed Jun 18, 2024
1 parent 796d23d commit 07563da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions phables/workflow/scripts/phables_utils/short_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ def resolve_short(
subpath_count += 1

# Extend subpaths using coverages of successors and predecessors
u_pred = [x for x in G_edge.predecessors(u)]
v_succ = [x for x in G_edge.successors(v)]
# -----------------------------------

# Extend subpath using coverages of predecessors
for u_pred in G_edge.predecessors(u):
Expand Down Expand Up @@ -626,9 +625,9 @@ def resolve_short(
else:
# Extend subpaths of l=3 based on paired-end reads
# aligned to successors and predecessors
u_pred = [x for x in G_edge.predecessors(u)]
v_succ = [x for x in G_edge.successors(v)]
# -----------------------------------

# Extend subpath using coverages of predecessors
for u_pred in G_edge.predecessors(u):
if junction_pe_coverage[(u_pred[:-1], v[:-1])] > 0:
u_pred_name = unitig_names_rev[u_pred[:-1]]
Expand All @@ -648,6 +647,7 @@ def resolve_short(
)
subpath_count += 1

# Extend subpath using coverages of successors
for v_succ in G_edge.successors(v):
if junction_pe_coverage[(u[:-1], v_succ[:-1])] > 0:
v_succ_name = unitig_names_rev[v_succ[:-1]]
Expand Down Expand Up @@ -972,8 +972,7 @@ def resolve_short(
subpath_count += 1

# Extend subpaths using coverages of successors and predecessors
u_pred = [x for x in G_edge.predecessors(u)]
v_succ = [x for x in G_edge.successors(v)]
# -----------------------------------

# Extend subpath using coverages of predecessors
for u_pred in G_edge.predecessors(u):
Expand Down Expand Up @@ -1036,9 +1035,9 @@ def resolve_short(
else:
# Extend subpaths of l=3 based on paired-end reads
# aligned to successors and predecessors
u_pred = [x for x in G_edge.predecessors(u)]
v_succ = [x for x in G_edge.successors(v)]
# -----------------------------------

# Extend subpath using coverages of predecessors
for u_pred in G_edge.predecessors(u):
if junction_pe_coverage[(u_pred[:-1], v[:-1])] > 0:
u_pred_name = unitig_names_rev[u_pred[:-1]]
Expand All @@ -1060,6 +1059,7 @@ def resolve_short(
)
subpath_count += 1

# Extend subpath using coverages of successors
for v_succ in G_edge.successors(v):
if junction_pe_coverage[(u[:-1], v_succ[:-1])] > 0:
v_succ_name = unitig_names_rev[v_succ[:-1]]
Expand Down

0 comments on commit 07563da

Please sign in to comment.