Skip to content

Commit

Permalink
fix!: Remove coordinate correction from fusion catcher translator (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarbesfeld authored Dec 9, 2024
1 parent d143d94 commit 7d54354
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/fusor/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@ async def from_fusion_catcher(
tr_5prime = await self.fusor.transcript_segment_element(
tx_to_genomic_coords=False,
genomic_ac=self._get_genomic_ac(five_prime[0], rb),
seg_end_genomic=int(five_prime[1]) - 1,
seg_end_genomic=int(five_prime[1]),
gene=gene_5prime_element.gene.label,
get_nearest_transcript_junction=True,
)

tr_3prime = await self.fusor.transcript_segment_element(
tx_to_genomic_coords=False,
genomic_ac=self._get_genomic_ac(three_prime[0], rb),
seg_start_genomic=int(three_prime[1]) - 1,
seg_start_genomic=int(three_prime[1]),
gene=gene_3prime_element.gene.label,
get_nearest_transcript_junction=True,
)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_translators.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ async def test_fusion_catcher(
# Test exonic breakpoint
five_prime_partner = "TPM3"
three_prime_partner = "PDGFRB"
five_prime_fusion_point = "1:154170466:-"
three_prime_fusion_point = "5:150126613:-"
five_prime_fusion_point = "1:154170465:-"
three_prime_fusion_point = "5:150126612:-"
predicted_effect = "exonic(no-known-CDS)/exonic(no-known-CDS)"

fusion_catcher_fusor = await translator_instance.from_fusion_catcher(
Expand All @@ -234,8 +234,8 @@ async def test_fusion_catcher(
# Test non-exonic breakpoint
five_prime_partner = "TPM3"
three_prime_partner = "PDGFRB"
five_prime_fusion_point = "1:154173079:-"
three_prime_fusion_point = "5:150127174:-"
five_prime_fusion_point = "1:154173078:-"
three_prime_fusion_point = "5:150127173:-"
predicted_effect = "exonic(no-known-CDS)/exonic(no-known-CDS)"

fusion_catcher_fusor_nonexonic = await translator_instance.from_fusion_catcher(
Expand Down

0 comments on commit 7d54354

Please sign in to comment.