Skip to content

Commit

Permalink
Add test for when gene is not provided and when transcript is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jarbesfeld committed Feb 21, 2024
1 parent ad35cd7 commit 3525877
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/mappers/test_exon_genomic_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,10 @@ async def test_genomic_to_transcript_fusion_context(
== "Gene or strand must be provided to select the adjacent transcript junction"
)

inputs = { # Test when transcript is provided
inputs = { # Test when gene and strand are not provided
"chromosome": "5",
"start": 69645879,
"transcript": "NR_027386.2",
"strand": Strand.NEGATIVE,
"get_nearest_transcript_junction": True,
}
resp = await test_egc_mapper.genomic_to_transcript_exon_coordinates(**inputs)
Expand All @@ -502,6 +501,17 @@ async def test_genomic_to_transcript_fusion_context(
== "Gene or strand must be provided to select the adjacent transcript junction"
)

inputs = { # Test when transcript is provided
"chromosome": "5",
"start": 69645879,
"gene": "GUSBP3",
"transcript": "NR_027386.2",
"strand": Strand.NEGATIVE,
"get_nearest_transcript_junction": True,
}
resp = await test_egc_mapper.genomic_to_transcript_exon_coordinates(**inputs)
genomic_data_assertion_checks(resp, gusbp3_exon5_start)


@pytest.mark.asyncio()
async def test_get_alt_ac_start_and_end(
Expand Down

0 comments on commit 3525877

Please sign in to comment.