@@ -202,7 +202,25 @@ async def test_mane_c_genomic_data(test_db):
202202@pytest .mark .asyncio
203203async def test_get_genomic_tx_data (test_db , genomic_tx_data ):
204204 """Test that get_genomic_tx_data works correctly."""
205- resp = await test_db .get_genomic_tx_data ("NM_004333.4" , (2145 , 2145 ))
205+ # Positive strand transcript
206+ resp = await test_db .get_genomic_tx_data ("NM_004327.3" , (3595 , 3596 ))
207+ expected_params = {
208+ "gene" : "BCR" ,
209+ "strand" : Strand .POSITIVE ,
210+ "tx_pos_range" : (3476 , 3608 ),
211+ "alt_pos_range" : (23295023 , 23295155 ),
212+ "alt_aln_method" : "splign" ,
213+ "tx_exon_id" : 956565 ,
214+ "alt_exon_id" : 6619783 ,
215+ "tx_ac" : "NM_004327.3" ,
216+ "alt_ac" : "NC_000022.11" ,
217+ "pos_change" : (119 , 12 ),
218+ "alt_pos_change_range" : (23295142 , 23295143 ),
219+ }
220+ assert resp == GenomicTxMetadata (** expected_params )
221+
222+ # Negative strand transcript
223+ resp = await test_db .get_genomic_tx_data ("NM_004333.4" , (2144 , 2145 ))
206224 expected_params = {
207225 "gene" : "BRAF" ,
208226 "strand" : Strand .NEGATIVE ,
@@ -213,8 +231,8 @@ async def test_get_genomic_tx_data(test_db, genomic_tx_data):
213231 "alt_exon_id" : 6619852 ,
214232 "tx_ac" : "NM_004333.4" ,
215233 "alt_ac" : "NC_000007.14" ,
216- "pos_change" : (92 , 43 ),
217- "alt_pos_change_range" : (140739854 , 140739854 ),
234+ "pos_change" : (91 , 43 ),
235+ "alt_pos_change_range" : (140739855 , 140739854 ),
218236 }
219237 assert resp == GenomicTxMetadata (** expected_params )
220238
0 commit comments