Skip to content

Commit 4956daa

Browse files
authored
chore: update seqrepo and uta versions to 2024-12-20 (#514)
close #513 * Also re-ran test cassettes
1 parent 6fdff9c commit 4956daa

33 files changed

Lines changed: 1075 additions & 1050 deletions

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ First, you must install a local [SeqRepo](https://github.com/biocommons/biocommo
8383

8484
```shell
8585
pip install seqrepo
86-
export SEQREPO_VERSION=2024-02-20 # or newer if available -- check `seqrepo list-remote-instances`
86+
export SEQREPO_VERSION=2024-12-20 # or newer if available -- check `seqrepo list-remote-instances`
8787
sudo mkdir -p /usr/local/share/seqrepo
8888
sudo chown $USER /usr/local/share/seqrepo
8989
seqrepo pull -i $SEQREPO_VERSION
@@ -93,7 +93,7 @@ seqrepo update-latest
9393
If you encounter a permission error similar to the one below:
9494

9595
```shell
96-
PermissionError: [Error 13] Permission denied: '/usr/local/share/seqrepo/2024-02-20._fkuefgd' -> '/usr/local/share/seqrepo/2024-02-20'
96+
PermissionError: [Error 13] Permission denied: '/usr/local/share/seqrepo/2024-12-20._fkuefgd' -> '/usr/local/share/seqrepo/2024-12-20'
9797
```
9898

9999
Try moving data manually with `sudo`:
@@ -131,7 +131,7 @@ Check that the containers are running, by running:
131131
$ docker ps
132132
CONTAINER ID IMAGE // NAMES
133133
86e872ab0c69 biocommons/seqrepo-rest-service:latest // vrs-python_seqrepo-rest-service_1
134-
a40576b8cf1f biocommons/uta:uta_20210129b // vrs-python_uta_1
134+
a40576b8cf1f biocommons/uta:uta_20241220 // vrs-python_uta_1
135135
```
136136

137137
Depending on your network and host, the _first_ run is likely to take 5-15
@@ -141,7 +141,7 @@ nearly instantaneous.
141141
You can test UTA and seqrepo installations like so:
142142

143143
```shell
144-
$ psql -XAt postgres://anonymous@localhost/uta -c 'select count(*) from uta_20210129b.transcript'
144+
$ psql -XAt postgres://anonymous@localhost/uta -c 'select count(*) from uta_20241220.transcript'
145145
314227
146146
```
147147

@@ -156,9 +156,9 @@ Here are some things to try.
156156
$ docker-compose up seqrepo-rest-service
157157
Starting vrs-python_seqrepo-rest-service_1 ... done
158158
Attaching to vrs-python_seqrepo-rest-service_1
159-
seqrepo-rest-service_1 | 2022-07-26 15:59:59 seqrepo_rest_service.__main__[1] INFO Using seqrepo_dir='/usr/local/share/seqrepo/2024-02-20' from command line
159+
seqrepo-rest-service_1 | 2022-07-26 15:59:59 seqrepo_rest_service.__main__[1] INFO Using seqrepo_dir='/usr/local/share/seqrepo/2024-12-20' from command line
160160
161-
seqrepo-rest-service_1 | OSError: Unable to open SeqRepo directory /usr/local/share/seqrepo/2024-02-20
161+
seqrepo-rest-service_1 | OSError: Unable to open SeqRepo directory /usr/local/share/seqrepo/2024-12-20
162162
vrs-python_seqrepo-rest-service_1 exited with code 1
163163
```
164164

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
seqrepo:
3-
image: biocommons/seqrepo:2024-02-20
3+
image: biocommons/seqrepo:2024-12-20
44
volumes:
55
- seqrepo_vol:/usr/local/share/seqrepo
66

@@ -11,16 +11,16 @@ services:
1111
- seqrepo_vol:/usr/local/share/seqrepo
1212
depends_on:
1313
- seqrepo
14-
command: seqrepo-rest-service -w /usr/local/share/seqrepo/2024-02-20
14+
command: seqrepo-rest-service -w /usr/local/share/seqrepo/2024-12-20
1515
network_mode: bridge
1616
ports:
1717
- 5000:5000
1818

1919
uta:
2020
# Test:
21-
# psql -XAt postgres://anonymous@localhost/uta -c 'select count(*) from uta_20210129b.transcript'
21+
# psql -XAt postgres://anonymous@localhost/uta -c 'select count(*) from uta_20241220.transcript'
2222
# 314227
23-
image: biocommons/uta:uta_20210129b
23+
image: biocommons/uta:uta_20241220
2424
environment:
2525
- POSTGRES_PASSWORD=some-password-that-you-make-up
2626
volumes:

docs/extras/vcf_annotator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Like other VRS-Python tools, the VCF annotator requires access to [sequence and
2020
For example, to use a local set of SeqRepo data, you can use an absolute file path:
2121

2222
```commandline
23-
vrs-annotate vcf --dataproxy_uri="seqrepo+file:///usr/local/share/seqrepo/2024-02-20/" --vcf_out=out.vcf.gz input.vcf.gz
23+
vrs-annotate vcf --dataproxy_uri="seqrepo+file:///usr/local/share/seqrepo/2024-12-20/" --vcf_out=out.vcf.gz input.vcf.gz
2424
```
2525

2626
Alternative, a relative file path:
2727

2828
```commandline
29-
vrs-annotate vcf --dataproxy_uri="seqrepo+../seqrepo/2024-02-20/" --vcf_out=out.vcf.gz input.vcf.gz
29+
vrs-annotate vcf --dataproxy_uri="seqrepo+../seqrepo/2024-12-20/" --vcf_out=out.vcf.gz input.vcf.gz
3030
```
3131

3232
Or an alternate REST path:

docs/setup_help/uta_installation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
8. Exit postgres
1818
1. `\q`
1919
9. Download the UTA database and place it in the uta database object that you created before (**This step takes around 5 hours**).
20-
1. `export UTA_VERSION=uta_20210129.pgd.gz\ncurl -O http://dl.biocommons.org/uta/$UTA_VERSION\ngzip -cdq ${UTA_VERSION} | psql -h localhost -U uta_admin --echo-errors --single-transaction -v ON_ERROR_STOP=1 -d uta -p 5432`
20+
1. `export UTA_VERSION=uta_20241220.pgd.gz\ncurl -O http://dl.biocommons.org/uta/$UTA_VERSION\ngzip -cdq ${UTA_VERSION} | psql -h localhost -U uta_admin --echo-errors --single-transaction -v ON_ERROR_STOP=1 -d uta -p 5432`
2121
10. Set your UTA path
22-
1. `export UTA_DB_URL=postgresql://uta_admin@localhost:5432/uta/uta_20210129`
22+
1. `export UTA_DB_URL=postgresql://uta_admin@localhost:5432/uta/uta_20241220`
2323
###Optional installation step
2424
11. If you wanted to wait for the 5 hour update till later please follow these steps instead:
2525
12. Download the UTA database and place it in the uta database object that you created before.
26-
1. `export UTA_VERSION=uta_20210129.pgd.gz
26+
1. `export UTA_VERSION=uta_20241220.pgd.gz
2727
curl -O http://dl.biocommons.org/uta/$UTA_VERSION
2828
gzip -cdq ${UTA_VERSION} | grep -v "^REFRESH MATERIALIZED VIEW" | psql -h localhost -U uta_admin --echo-errors --single-transaction -v ON_ERROR_STOP=1 -d uta -p 5432`
2929
13. Run the refresh materialized view commands
30-
1. `REFRESH MATERIALIZED VIEW uta_20210129.exon_set_exons_fp_mv;`
31-
2. `REFRESH MATERIALIZED VIEW uta_20210129.tx_exon_set_summary_mv;`
32-
3. `REFRESH MATERIALIZED VIEW uta_20210129.tx_def_summary_mv;`
33-
4. `REFRESH MATERIALIZED VIEW uta_20210129.tx_similarity_mv;` #**This step will take 5 or more hours**
30+
1. `REFRESH MATERIALIZED VIEW uta_20241220.exon_set_exons_fp_mv;`
31+
2. `REFRESH MATERIALIZED VIEW uta_20241220.tx_exon_set_summary_mv;`
32+
3. `REFRESH MATERIALIZED VIEW uta_20241220.tx_def_summary_mv;`
33+
4. `REFRESH MATERIALIZED VIEW uta_20241220.tx_similarity_mv;` #**This step will take 5 or more hours**

notebooks/getting_started/1_Quick_Start.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"outputs": [],
9393
"source": [
9494
"import os\n",
95-
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20210129b\""
95+
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20241220\""
9696
]
9797
},
9898
{

notebooks/getting_started/4_Exploring_the_AlleleTranslator.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"outputs": [],
113113
"source": [
114114
"import os\n",
115-
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20210129b\""
115+
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20241220\""
116116
]
117117
},
118118
{

notebooks/getting_started/5_Exploring_the_CnvTranslator.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"outputs": [],
123123
"source": [
124124
"import os\n",
125-
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20210129b\""
125+
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20241220\""
126126
]
127127
},
128128
{

notebooks/getting_started/6_Upcoming_features.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"outputs": [],
113113
"source": [
114114
"import os\n",
115-
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20210129b\""
115+
"os.environ[\"UTA_DB_URL\"] = \"postgresql://anonymous:anonymous@uta.biocommons.org:5432/uta/uta_20241220\""
116116
]
117117
},
118118
{

tests/cassettes/test_data_proxies[rest_dataproxy].yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ interactions:
2727
Content-Type:
2828
- application/json
2929
Date:
30-
- Wed, 26 Jun 2024 11:58:54 GMT
30+
- Mon, 10 Mar 2025 16:23:25 GMT
3131
Server:
32-
- Werkzeug/2.2.2 Python/3.10.4
32+
- Werkzeug/2.2.3 Python/3.10.12
3333
status:
3434
code: 200
3535
message: OK
@@ -69,9 +69,9 @@ interactions:
6969
Content-Type:
7070
- application/json
7171
Date:
72-
- Wed, 26 Jun 2024 11:58:54 GMT
72+
- Mon, 10 Mar 2025 16:23:25 GMT
7373
Server:
74-
- Werkzeug/2.2.2 Python/3.10.4
74+
- Werkzeug/2.2.3 Python/3.10.12
7575
status:
7676
code: 200
7777
message: OK
@@ -99,9 +99,9 @@ interactions:
9999
Content-Type:
100100
- text/plain; charset=utf-8
101101
Date:
102-
- Wed, 26 Jun 2024 11:58:54 GMT
102+
- Mon, 10 Mar 2025 16:23:25 GMT
103103
Server:
104-
- Werkzeug/2.2.2 Python/3.10.4
104+
- Werkzeug/2.2.3 Python/3.10.12
105105
status:
106106
code: 200
107107
message: OK
@@ -129,9 +129,9 @@ interactions:
129129
Content-Type:
130130
- text/plain; charset=utf-8
131131
Date:
132-
- Wed, 26 Jun 2024 11:58:54 GMT
132+
- Mon, 10 Mar 2025 16:23:25 GMT
133133
Server:
134-
- Werkzeug/2.2.2 Python/3.10.4
134+
- Werkzeug/2.2.3 Python/3.10.12
135135
status:
136136
code: 200
137137
message: OK

0 commit comments

Comments
 (0)