Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix callVariant, apply max_variant_per_node to cleavage graph #886

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading