Skip to content

Commit

Permalink
Merge pull request #46 from invitae/biocommons-sync-2
Browse files Browse the repository at this point in the history
Resolve conflicts with biocommons
  • Loading branch information
bsgiles73 authored Aug 26, 2024
2 parents 2af4ec5 + 6d5e252 commit d33f0d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ aligning the same transcript to multiple references using multiple
alignment methods. Specifically, it facilitates the following:

- Querying for multiple transcript sources through a single interface
- Interpretating variants reported in literature against obsolete
- Interpreting variants reported in literature against obsolete
transcript records
- Identifying regions where transcript and reference genome sequence
assemblies disagree
Expand Down Expand Up @@ -243,11 +243,13 @@ the installation environment.*
uta_admin are likely to ease installation.

$ createuser -U postgres uta_admin
$ createuser -U postgres anonymous
$ createdb -U postgres -O uta_admin uta

3. Restore the database.

$ gzip -cdq uta_20150827.pgd.gz | psql -U uta_admin -1 -v ON_ERROR_STOP=1 -d uta -Eae
$ uta_v=uta_20210129b
$ gzip -cdq $uta_v.pgd.gz | psql -U uta_admin -1 -v ON_ERROR_STOP=1 -d uta -Eae

## Developer Setup

Expand Down
2 changes: 1 addition & 1 deletion misc/docker/load-uta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ gzip -cdq < "${UTA_PGD_FN}" \

gzip -cdq < "${UTA_PGD_FN}" \
| perl -n \
-e 'm/CREATE SCHEMA (uta_\d+)/ && print("ALTER DATABASE :DBNAME SET search_path=$1;\n");' \
-e 'm/CREATE SCHEMA (uta_[\d\w]+)/ && print("ALTER DATABASE :DBNAME SET search_path=$1;\n");' \
-e 'print if s/CREATE MATERIALIZED VIEW (.\S+) AS/REFRESH MATERIALIZED VIEW $1;/' \
| psql -1e -U uta_admin -d uta -v ON_ERROR_STOP=1

Expand Down

0 comments on commit d33f0d0

Please sign in to comment.