Skip to content

Commit

Permalink
Fix URL for rgd (#188)
Browse files Browse the repository at this point in the history
* Fix URL

* Run black

* Set types for globals
  • Loading branch information
kkaris authored Aug 12, 2024
1 parent 1c99683 commit d30271c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pyobo/api/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def get_name_by_curie(curie: str, *, version: Optional[str] = None) -> Optional[

X = TypeVar("X")

NO_BUILD_PREFIXES = set()
NO_BUILD_LOGGED = set()
NO_BUILD_PREFIXES: Set[str] = set()
NO_BUILD_LOGGED: Set = set()


def _help_get(
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/rgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# NOTE unigene id was discontinue in January 18th, 2021 dump

GENES_URL = "https://download.rgd.mcw.edu/data_release/GENES.RAT.txt"
GENES_URL = "https://download.rgd.mcw.edu/data_release/GENES_RAT.txt"
GENES_HEADER = [
"GENE_RGD_ID",
"SYMBOL",
Expand Down
1 change: 1 addition & 0 deletions src/pyobo/xrefdb/sources/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def _removeprefix(s, prefix):
return s[len(prefix) :]
return s


HEADERS = {
"User-Agent": f"pyobo/{get_version()}",
}
Expand Down

0 comments on commit d30271c

Please sign in to comment.