Skip to content

Commit

Permalink
Check if start and end bounds an exon
Browse files Browse the repository at this point in the history
  • Loading branch information
jarbesfeld committed Oct 16, 2024
1 parent 88e3078 commit 26d845a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dcd_mapping/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ async def get_transcripts(
SELECT tx_ac
FROM {uta.schema}.tx_exon_aln_v
WHERE hgnc = '{gene_symbol}'
AND ({start} BETWEEN alt_start_i AND alt_end_i OR {end} BETWEEN alt_start_i AND alt_end_i)
AND ({start} BETWEEN alt_start_i AND alt_end_i OR {end} BETWEEN alt_start_i AND
alt_end_i OR (alt_start_i >= {start} AND alt_end_i <= {end}))
AND alt_ac = '{chromosome_ac}'
AND tx_ac NOT LIKE 'NR_%';
""" # noqa: S608
Expand Down

0 comments on commit 26d845a

Please sign in to comment.