Skip to content

Commit

Permalink
Merge pull request #886 from uclahs-cds/czhu-fix-call-variant
Browse files Browse the repository at this point in the history
Fix callVariant, apply max_variant_per_node to cleavage graph
  • Loading branch information
zhuchcn authored Jan 19, 2025
2 parents 0608def + 925d07d commit 78b1335
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

## [1.4.3] - 2025-01-18

### Fixed

- Fixed `VariantPeptideIdentifier` that ORF ID was added before variant IDs.

- Fixed `callVariant` that failed on small circRNA with a lot of variants at the step that creates the cleavage graph. #885

### Changed

- Changed variant IDs for circRNAs to use backsplicing site instead of listing all exons/introns. #878
Expand Down
5 changes: 5 additions & 0 deletions moPepGen/svgraph/PeptideVariantGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ def merge_nodes_routes(self, routes:Set[Tuple[PVGNode]],
inbridge_list:Dict[PVGNode,List[PVGNode]] = {}

for route in routes:
if self.nodes_have_too_many_variants(route):
for i, node in enumerate(route):
if i > 0:
trash.add((route[i-1], node))
continue
for i,node in enumerate(route):
node_is_bridge = node.is_bridge()
if i == 0:
Expand Down

0 comments on commit 78b1335

Please sign in to comment.