Skip to content

Commit

Permalink
fix -- use cst env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 7, 2024
1 parent a352815 commit 4b66a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dev = [
"pre-commit>=3.7.1",
"gene-normalizer ~= 0.1.39",
"pydantic-to-typescript",
"cool-seq-tool >= 0.4.1"
]

[project.scripts]
Expand Down
5 changes: 3 additions & 2 deletions server/src/curfu/devtools/build_gene_suggest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

import click
from biocommons.seqrepo.seqrepo import SeqRepo
from cool_seq_tool.handlers.seqrepo_access import SEQREPO_ROOT_DIR
from gene.database import create_db
from gene.schemas import RecordType

from curfu import APP_ROOT, SEQREPO_DATA_PATH, logger
from curfu import APP_ROOT, logger


class GeneSuggestionBuilder:
Expand All @@ -22,7 +23,7 @@ class GeneSuggestionBuilder:
def __init__(self) -> None:
"""Initialize class."""
self.gene_db = create_db()
self.sr = SeqRepo(SEQREPO_DATA_PATH)
self.sr = SeqRepo(SEQREPO_ROOT_DIR)
self.genes = []

def _get_chromosome(self, record: dict) -> str | None:
Expand Down

0 comments on commit 4b66a7d

Please sign in to comment.