Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
skip self-loop edges when orthologizing
Browse files Browse the repository at this point in the history
refs #53
  • Loading branch information
abargnesi committed Jun 12, 2013
1 parent d0baeb3 commit f40fe16
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public Map<KamNode, KamNode> orthologousNodes(Kam kam, KAMStore kAMStore,
final KamNode edgeSource = e.getSourceNode();
final KamNode edgeTarget = e.getTargetNode();

// invalid; skip orthologous self edges
if (edgeSource == edgeTarget) {
continue;
}

TermParameter speciesParam = findParameter(kam, kAMStore,
edgeSource, rlocs);
if (speciesParam != null) {
Expand Down

0 comments on commit f40fe16

Please sign in to comment.