Here you will find information on obtaining and setting up a Galaxy instance with default configuration.
You need to download Galaxy if you plan to:
If setting up or running a production Galaxy service or creating your own personal Galaxy instance, use the latest release branch, which only receives stable code updates.
If you do not have a Galaxy repository yet or you do not want to update the existing instance, run:
$ git clone -b release_17.05 https://github.com/galaxyproject/galaxy.git
If you have an existing Galaxy repository and want to update it, run:
$ git checkout release_17.05 && git pull --ff-only origin release_17.05
To obtain Galaxy for development, use the default branch after cloning: dev
.
This is the branch that pull requests should be made against to contribute code (unless you are fixing a bug in a Galaxy release).
$ git clone https://github.com/galaxyproject/galaxy.git
To start Galaxy, simply run the following commands:
$ cd galaxy && sh run.sh
This will start up the Galaxy server on localhost
and port 8080
.
Galaxy can then be accessed from a web browser at http://localhost:8080.
.venv/
.$ source .venv/bin/activate
)8080
on localhost
.All of the above can be configured.
To stop the Galaxy server, use Ctrl-C
in the terminal window from which Galaxy is running.
$ sh run.sh --daemon
...
Activating virtualenv at .venv
Entering daemon mode
$ tail -f paster.log
...
Starting server in PID 1469.
serving on http://127.0.0.1:8080
$ sh run.sh --stop-daemon
config/
.
*.sample
as declared defaults.$ cp config/galaxy.ini.sample config/galaxy.ini
$ nano config/galaxy.ini
message_box_visible = True
message_box_content = "Hey, at least I'm not a popup!"
message_box_class = info
To control Galaxy through the UI (installing tools, managing users, creating groups, etc.), users must become an administrator. Only registered users can become admins. To give a user admin privileges, complete the following steps:
# this should be a comma-separated list of valid Galaxy users
admin_users = user1@example.com,user2@example.com
Welcome page is $GALAXY_ROOT/static/welcome.html
and is the first thing that users see. It is a good idea to extend it with things like:
No restarting is necessary.
Galaxy comes with a small set of basic tools pre-installed. To install additional tools, follow the instructions on Installing tools into Galaxy from the Tool Shed.
To stay up-to-date on new Galaxy features and bug fixes, as well as to discuss future features, consider joining the Galaxy Developers mailing list. See Mailing Lists for other options.
Like any other application, Galaxy directories and Galaxy database tables should be backed up, and any disaster recovery plans should be regularly tested to make sure everything is working as expected.
The above instructions are intended for users wishing to develop Galaxy tools and Galaxy itself. To deploy a production-ready installation of Galaxy, some changes from the default configuration are highly recommended. If nothing else, switching to PostgreSQL or MySQL (from the default SQLite) is heavily endorsed to prevent database locking issues that can arise with multiple users.
Please see the Running Galaxy in a production environment page for more details.
Galaxy development occurs in GitHub.
Changes are stabilized in the release_YY.MM
branches and then merged to master
for each YY.MM.point
release
At any time, you can check to see if a new stable release is available by using the git log
command:
$ git log ..origin/master
commit 3a2ff46c28172ef78510f4bea2f4be75ce660667
Merge: 8b538f17f 90de3f258
Author: Martin Cech <cech.marten@gmail.com>
Date: Wed Feb 22 10:56:57 2017 -0500
Merge branch 'release_17.01'
If git log produces no output, Galaxy is up-to-date. If git log produces a list of commits, a new version is available. You can pull the commits to your local Galaxy clone with:
$ git pull
$ git clone https://github.com/galaxyproject/galaxy.git
$ cd galaxy
$ sh run.sh
http://127.0.0.1:8080/
Login or Register -> Register
User -> Preferences -> Manage API Key -> Create a new key
$ cp config/galaxy.ini.sample config/galaxy.ini
$ nano config/galaxy.ini
# this should be a comma-separated list of valid Galaxy users
admin_users = youremail@example.com
/home/utente/zenodo