Carrot root and DNA VCRU Bioinformatics USDA ARS Vegetable Crops Research Unit

This page was last updated on Wednesday, 16-Nov-2016 11:56:23 CST

Installation notes for Structure version 2.3.4 Jul 2012

Home Page

Prerequisites

Support for running 32-bit executables reference
$ sudo apt-get install libc6-i386

Installation

  1. Download from http://pritchardlab.stanford.edu/structure_software/release_versions/v2.3.4/html/structure.html
    I manually renamed the downloaded file with the version number, i.e.
    $ mv structure_linux_frontend.tar.gz structure_linux_frontend.2.3.4.tar.gz
    and I saved this file in /programinstallers/
    Note that the console version is a subset of the frontend version, so we don't need to download it.
  2. $ tar -zxvf /programinstallers/structure_linux_frontend.2.3.4.tar.gz
  3. $ cd frontend
  4. $ sudo ./install
    Testing default java virtual machine in the system ... OK
    Copy files to /usr/local/Structure/ ... 
    structure v2.3.3 is installed successfully ← I suppose this is a bug, it should say v2.3.4 ☹
  5. It doesn't tell you that the launcher is still in the current directory, so we need to move it somewhere, and also rename it to avoid conflict with the command line version
    $ sudo cp -puv structure /usr/local/Structure/structurefrontend
  6. Create a launcher for all users
    $ sudo nano /usr/share/applications/Bioinformatics/Structure.desktop
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Type=Application
    Terminal=false
    Name=Structure
    Exec=/usr/local/Structure/structurefrontend
    Comment=Investigate population structure with multi-locus genotype data
    Icon=structure_32.png
    Categories=Bioinformatics
  7. Link to the icon referenced in the launcher, copy to /usr/share/pixmaps/
  8. Make a symlink in case we want to run command-line version, i.e. structure is a command in the default PATH for all users
    $ ln -s /usr/local/Structure/bin/structure /usr/local/bin/structure
  9. Copy manual for local web page
    $ cp -puv doc/structure_doc.pdf ../web/programs/structure/
  10. Cleanup
    $ cd ..
  11. $ rm frontend -rf