Skip to content

Commit

Permalink
sdlfkj
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Jul 9, 2024
1 parent c10a07c commit 5e8ec0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cool_seq_tool/mappers/exon_genomic_coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ async def transcript_to_genomic_coordinates(
# Get all exons and associated start/end coordinates for transcript
tx_exons, warning = await self.uta_db.get_tx_exons(transcript)
if not tx_exons:
return self._return_warnings(resp, [warning] if warning else [""])
return self._return_warnings(resp, [warning] if warning else [])

# Get exon start and exon end coordinates
tx_exon_coords, warning = self.get_tx_exon_coords(
transcript, tx_exons, exon_start, exon_end
)
if not tx_exon_coords:
return self._return_warnings(resp, [warning] if warning else [""])
return self._return_warnings(resp, [warning] if warning else [])
tx_exon_start_coords, tx_exon_end_coords = tx_exon_coords

if gene:
Expand All @@ -176,7 +176,7 @@ async def transcript_to_genomic_coordinates(
transcript, tx_exon_start_coords, tx_exon_end_coords, gene=gene
)
if not alt_ac_start_end:
return self._return_warnings(resp, [warning] if warning else [""])
return self._return_warnings(resp, [warning] if warning else [])
alt_ac_start_data, alt_ac_end_data = alt_ac_start_end

# Get gene and chromosome data, check that at least one was retrieved
Expand Down

0 comments on commit 5e8ec0e

Please sign in to comment.