Skip to content

Commit

Permalink
removing unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Aug 21, 2024
1 parent 1ce3846 commit 3a06f55
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/fusor/fusor.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def transcript_segment_element(
:param kwargs:
If ``tx_to_genomic_coords``, possible key word arguments:
(From `cool_seq_tool.transcript_to_genomic_coords <https://coolseqtool.readthedocs.io/stable/reference/api/mappers/cool_seq_tool.mappers.exon_genomic_coords.html>`_)
(From `cool_seq_tool.tx_segment_to_genomic <https://coolseqtool.readthedocs.io/stable/reference/api/mappers/cool_seq_tool.mappers.exon_genomic_coords.html>`_)
* **gene** (``str | None = None``)
* **transcript** (``str | None = None``)
Expand All @@ -242,7 +242,7 @@ async def transcript_segment_element(
else:
(From `cool_seq_tool.genomic_to_transcript_exon_coordinates <https://coolseqtool.readthedocs.io/stable/reference/api/mappers/cool_seq_tool.mappers.exon_genomic_coords.html>`_)
(From `cool_seq_tool.genomic_to_tx_segment <https://coolseqtool.readthedocs.io/stable/reference/api/mappers/cool_seq_tool.mappers.exon_genomic_coords.html>`_)
* **genomic_ac**: (``str``)
* **seg_start_genomic**: (``Optional[int] = None``)
Expand All @@ -265,9 +265,7 @@ async def transcript_segment_element(
_logger.warning(msg)
return None, [msg]
chromosome = kwargs.get("chromosome")
# if chromosome is a string, assume it's an accession, fix it for the kwargs since CST expects this as genomic_ac
if type(chromosome) is str:
kwargs["genomic_ac"] = chromosome
kwargs["genomic_ac"] = chromosome
data = await self.cool_seq_tool.ex_g_coords_mapper.genomic_to_tx_segment(
**kwargs
)
Expand Down

0 comments on commit 3a06f55

Please sign in to comment.