Commit f8f1e7c
Fix op.translate HCOP URL after EBI FTP drop (#303)
HGNC removed the entire /pub/databases/genenames/ subtree from the
EBI FTP mirror, so every op.translate call (and every op.resource
call for a non-human organism) was failing with HTTP 404. Point the
download at the new HGNC Google Cloud Storage bucket, which is where
HGNC now publishes the HCOP fifteen-column files.
Also drop a stray pd.read_csv(url, ...) that was re-downloading the
file a second time right after _download + _bytes_to_pandas had
already produced map_df, silently doubling the network cost and
bypassing the retry logic in _download.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6e18630 commit f8f1e7c
3 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
0 commit comments