Skip to content

Commit

Permalink
Merge pull request #843 from uclahs-cds/czhu-fix-call-variant
Browse files Browse the repository at this point in the history
fix (callVariant): no reference node issue
  • Loading branch information
zhuchcn authored Feb 7, 2024
2 parents 2dc0ae6 + 8007e53 commit 0ba2f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

- Fixed `parseVEP` to handle insertions in start-inclusion. #840

- Fixed `callVariant` of 'no reference out node found'. #842

## [1.2.1] - 2023-10-05

### Add
Expand Down
2 changes: 1 addition & 1 deletion moPepGen/svgraph/ThreeFrameTVG.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def is_out_bond_to_any_root(self, node:TVGNode):
@staticmethod
def is_reference_edge(in_node:TVGNode, out_node:TVGNode):
""" checks if this is a reference edge """
if out_node.is_reference() and out_node.subgraph_id == in_node.subgraph_id:
if out_node.is_reference() and out_node.subgraph_id == in_node.get_last_subgraph_id():
return True
in_vars = {x.variant for x in in_node.variants}
out_vars = {x.variant for x in out_node.variants}
Expand Down

0 comments on commit 0ba2f84

Please sign in to comment.