- Switch to your admin account #Skip if your user already has sudo permissions
su wag002adm
# replace with your admin account name
- Start postgres
pg_ctl -D /opt/homebrew/var/postgres start
ps aux | grep postgres
#to make sure that this process is running
- Start psql and open database postgres, which is the database postgres uses itself to store roles, permissions, and structure:
psql postgres
- Create roles for the application, give login and CREATEDB permissions:
CREATE ROLE uta_admin WITH LOGIN CREATEDB;
CREATE ROLE anonymous WITH LOGIN CREATEDB;
- List the users using the command
\du
- Create the UTA Database object
CREATE DATABASE uta;
- Grant privileges to manage the database to uta_admin
GRANT ALL PRIVILEGES ON DATABASE uta TO uta_admin;
- Exit postgres
\q
- Download the UTA database and place it in the uta database object that you created before (This step takes around 5 hours).
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
- Set your UTA path
export UTA_DB_URL=postgresql://uta_admin@localhost:5432/uta/uta_20241220
###Optional installation step
- If you wanted to wait for the 5 hour update till later please follow these steps instead:
- Download the UTA database and place it in the uta database object that you created before.
export UTA_VERSION=uta_20241220.pgd.gz curl -O http://dl.biocommons.org/uta/$UTA_VERSION 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
- Run the refresh materialized view commands
REFRESH MATERIALIZED VIEW uta_20241220.exon_set_exons_fp_mv;
REFRESH MATERIALIZED VIEW uta_20241220.tx_exon_set_summary_mv;
REFRESH MATERIALIZED VIEW uta_20241220.tx_def_summary_mv;
REFRESH MATERIALIZED VIEW uta_20241220.tx_similarity_mv;
#This step will take 5 or more hours