diff --git a/docs/index.rst b/docs/index.rst index cee3368a..9e585df8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -44,6 +44,7 @@ The documentation in organized into three sections: local_installation coding_style git_workflow + reload_database .. _about-docs: diff --git a/docs/mutations.rst b/docs/mutations.rst index 5e2410e6..286b0658 100644 --- a/docs/mutations.rst +++ b/docs/mutations.rst @@ -1,8 +1,8 @@ Mutations -======= +========= Mutation browser --------------- +---------------- The mutant browser allows users to view mutant data for a receptor or receptor family and hightlight mutants on receptor diagrams. Using the tool is a two step process. @@ -24,7 +24,7 @@ Below the plots, a table of every residue in the selected receptors and segments highlighted. Mutation data submission ----------------------- +------------------------ The GPCRdb already contains the largest available set of GPCR mutants and the goal is to continuously deposit mutants into GPCRdb, now also capturing the pharmacological effect. diff --git a/docs/reload_database.rst b/docs/reload_database.rst new file mode 100644 index 00000000..16e443da --- /dev/null +++ b/docs/reload_database.rst @@ -0,0 +1,19 @@ +Reload database from dump +========================= + +* Go to the project root directory on your virtual machine:: + + cd /vagrant/protwis + +* Delete the current database:: + + psql -U protwis -h localhost -d protwis -c 'drop schema public cascade; create schema public;' + +* [Optional] Download the newest dump from gpcrdb:: + + curl http://files.gpcrdb.org/protwis.sql.gz > /home/vagrant/protwis.sql.gz + gunzip /home/vagrant/protwis.sql.gz + +* Load the dump [Either from default location or a location of your choosing]:: + + psql -U protwis -h localhost -o protwis < /home/vagrant/protwis.sql; \ No newline at end of file