Skip to content

Commit

Permalink
build!: update cool-seq-tool version (#159)
Browse files Browse the repository at this point in the history
* build!: update cool-seq-tool version

* tests: updating tests with changes from updated transcript data

* add help comment

* revert test updates - will address in another pr
  • Loading branch information
katiestahl authored Jul 15, 2024
1 parent 821cc13 commit e8f6417
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"ga4gh.vrs ~=0.8.1",
"biocommons.seqrepo",
"gene-normalizer ~=0.1.40-dev1",
"cool-seq-tool ~=0.3.0-dev1",
"cool-seq-tool ~=0.5.0",
]
dynamic=["version"]

Expand Down
8 changes: 6 additions & 2 deletions src/fusor/fusor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from biocommons.seqrepo import SeqRepo
from bioutils.accessions import coerce_namespace
from cool_seq_tool.routers import CoolSeqTool
from cool_seq_tool.app import CoolSeqTool
from cool_seq_tool.schemas import ResidueMode
from ga4gh.core import ga4gh_identify
from ga4gh.vrs import models
Expand Down Expand Up @@ -272,11 +272,15 @@ async def transcript_segment_element(
_logger.warning(msg)
return None, [msg]
residue_mode = kwargs.get("residue_mode")
# TODO: Remove once fixed in cool_seq_tool
# TODO: Remove once fixed in cool_seq_tool - need to verify that this code isn't still needed
if residue_mode != ResidueMode.INTER_RESIDUE:
start = kwargs.get("start")
kwargs["start"] = start - 1 if start is not None else None
kwargs["residue_mode"] = "inter-residue"
chromosome = kwargs.get("chromosome")
# if chromosome is a string, assume it's an accession, fix it for the kwargs since CST expects
if type(chromosome) is str:
kwargs["alt_ac"] = chromosome
data = await self.cool_seq_tool.ex_g_coords_mapper.genomic_to_transcript_exon_coordinates(
**kwargs
)
Expand Down

0 comments on commit e8f6417

Please sign in to comment.