Skip to content

Commit

Permalink
Check if start and end bounds an exon (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarbesfeld authored Oct 16, 2024
1 parent 88e3078 commit c04c3a0
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 c04c3a0

Please sign in to comment.