-
Notifications
You must be signed in to change notification settings - Fork 8
Installation
SeqTrace is easy to install on all popular operating systems. On Linux and Windows, installing SeqTrace typically requires nothing more than downloading the appropriate package and unzipping the archive. Installing SeqTrace on macOS requires more effort, but is still straightforward. This document contains detailed installation instructions for all three operating systems.
SeqTrace includes a very fast pairwise alignment module written in C, but you must compile it for your hardware in order to use it. If you would like to read more about this, check out the advanced installation instructions.
SeqTrace requires both Python and GTK+ (and the Python package PyGTK), and will only run properly under the 2.x series of Python, not 3.0. There are significant differences between 2.7 and 3.0 in Python's handling of low-level file I/O, and these differences matter a great deal when reading binary sequence trace file formats. SeqTrace is currently written for the 2.x series of Python because it is widely installed and available just about everywhere. In the future, though, I plan to port SeqTrace to Python 3.0.
Installing SeqTrace on most GNU/Linux distributions is very simple, because they generally already have all necessary software libraries installed. Of course, SeqTrace does require a windowing environment, so it will not work in command shell-only installations.
-
Download SeqTrace: On most GNU/Linux distributions (such as Ubuntu or XUbuntu), installing SeqTrace requires nothing more than downloading and unzipping the SeqTrace archive.
-
Run SeqTrace: Run seqtrace.py to launch SeqTrace.
I provide a binary executable version of SeqTrace for Windows that does not require installing any additional software.
-
Download SeqTrace: Download the SeqTrace package for Windows and unzip the archive wherever you would like to have SeqTrace located on your system.
-
Run SeqTrace: Run seqtrace.exe to launch SeqTrace.
If for some reason you would like to run SeqTrace on Windows using the source package, it is not at all difficult. You will simply need to install a few dependencies first.
SeqTrace requires the Python runtime environment and the GTK+ library to run properly. On Windows, you might need to install one or both of these before installing SeqTrace. Fortunately, both Python and GTK+ are easy to install on Windows. There are many other Windows programs that use Python or GTK+, so it is possible that your Windows environment already includes these packages.
-
Install Python: If your system does not already have Python installed, you will need to download the latest Python 2.7.x installer and install it. Be sure to get the 32-bit version of Python, not the one with "X86-64" in its name. The filename for the installer you want will be "python-2.7.x.msi" or something similar.
-
Install GTK+ and PyGTK: Download the latest release of the PyGTK all-in-one installer for Python 2.7 and install it. At the time of this writing, the latest installer is named pygtk-all-in-one-2.24.2.win32-py2.7.msi.
-
Download SeqTrace: Download the SeqTrace archive file and extract the contents wherever you would like to have SeqTrace located on your system.
-
Run SeqTrace: That's it! To run SeqTrace, you can either double click seqtrace.py in Windows Explorer, or run seqtrace.py from a command prompt.
SeqTrace requires a Python interpreter and the GTK+ library in order to run. macOS includes Python, but not GTK+, so at a minimum, you will need to install the GTK+ environment before you can use SeqTrace. There are two ways to get GTK+ running on macOS. One option is to use the X11 windowing system, and the other is to use the native GTK+ for macOS. Both options work well, but in my (very) informal testing, the SeqTrace interface seemed slightly more responsive running through X11. Using native GTK+ is currently the quickest and easiest way to get SeqTrace running, however. Instructions for both approaches are provided here.
- Download SeqTrace: Either way, you should first download the SeqTrace archive file and extract the contents wherever you would like to have SeqTrace located on your system.
-
Install the latest Python (optional): macOS comes with Python pre-installed, but the included version is usually somewhat outdated. If you are running a recent version of macOS, though, the Python that it came with will probably work just fine. However, you can easily download the latest macOS Python installer and install it, which will ensure that you are running a recent release of Python. Be sure to download the 2.7 series of Python, not the 3.x series.
-
Install GTK+ and PyGTK: Next, you will need to install the GTK+ libraries. Thanks to a package maintained by Anders Björklund, this is now very easy. Download the PyGTK package for macOS and install it on your system.
-
Run SeqTrace: That's it! To launch SeqTrace, run seqtrace.py from a terminal window.
-
Install Xcode: You will need to have Apple's Xcode software development kit installed. For macOS 10.7 ("Lion") you can install it through the "App Store", for previous versions of macOS you can find it on the installation DVD or the Apple Developer website.
-
Install MacPorts (and possibly X11): Next, you will need to make sure that you have the X11 windowing system and MacPorts installed. X11 provides a standard UNIX windowing environment for SeqTrace, and MacPorts provides an easy way to get the GTK+ libraries for X11 on your system. On recent versions of macOS, X11 is installed by default, but not MacPorts, so you will need to download and install the MacPorts installer.
-
Install GTK+ and PyGTK: Now, start a terminal window and run the following commands.
$ sudo port install py27-pygtk
$ sudo port select python python27
The first command installs GTK+ and PyGTK along with any required dependencies, including the MacPorts version of Python 2.7. This will take a few minutes to complete. The second command tells your computer to use the newly-installed version of Python.
- Run SeqTrace: To run SeqTrace, run the following command, replacing
/path/to/seqtrace
with the location of SeqTrace on your system.
$ python /path/to/seqtrace/seqtrace.py
That is all that is required to get SeqTrace running. macOS should automatically launch X11 when you start SeqTrace. If not, try exiting the terminal and opening a new terminal window, then run SeqTrace.
- Install GTK+ themes (optional): If you would like SeqTrace to have a "prettier" look in X11, you can also use MacPorts to install GTK2 engines and themes. For example, one of the macOS screenshots of SeqTrace features the "Clearlooks" theme. The following commands will let you choose a different theme for GTK+.
sudo port install gnome-themes
sudo port install gtk-theme-switch switch2
- Update seqtrace.py (optional): If you would like to run seqtrace.py directly (that is, without explicitly calling the Python interpreter), you can easily do so by editing the first line of seqtrace.py to reflect the location of the MacPorts installation of Python. In the terminal, run the command
which python
, then copy the output and use it to replace everything after#!
in the first line of seqtrace.py.