<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Terry+Gliedt</id>
	<title>Genome Analysis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://genome.sph.umich.edu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Terry+Gliedt"/>
	<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/wiki/Special:Contributions/Terry_Gliedt"/>
	<updated>2026-09-24T07:15:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8862</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8862"/>
		<updated>2013-10-14T13:11:11Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages with root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-bin_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-test_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8861</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8861"/>
		<updated>2013-10-14T13:10:56Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages with root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-bin_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-test_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8860</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8860"/>
		<updated>2013-10-14T13:10:14Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages with root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-bin_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-test_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8859</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8859"/>
		<updated>2013-10-14T13:09:48Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages with root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-bin_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-test_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8858</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8858"/>
		<updated>2013-10-14T13:09:02Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-bin_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 dpkg -x [path_to_deb_file]/gotcloud-test_*_amd64.deb $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8857</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8857"/>
		<updated>2013-10-14T13:07:55Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script. Installing missing packages &amp;lt;b&amp;gt;will&amp;lt;/b&amp;gt; require root access.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8856</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8856"/>
		<updated>2013-10-14T13:07:12Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands shown by the script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8855</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8855"/>
		<updated>2013-10-14T13:06:36Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Debian bin Package */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands provided by the script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8854</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8854"/>
		<updated>2013-10-14T13:05:07Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Installing Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages normally requires root access, however, you &amp;lt;b&amp;gt;can&amp;lt;/b&amp;gt; install as a non-root user (see below).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation normally requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them with the commands provided by the script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;  # For example&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8853</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8853"/>
		<updated>2013-10-14T13:00:42Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Installing Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages as root&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo dpkg -i [path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
  sudo dpkg -i [path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Install Debian packages without root access&amp;lt;/b&amp;gt;&lt;br /&gt;
Installing Debian packages generally requires root access, however, you can install as a non-root user using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them now&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8852</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8852"/>
		<updated>2013-10-14T12:57:24Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Installing Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you &amp;lt;b&amp;gt;can install as a non-root user&amp;lt;/b&amp;gt; using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
 destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
 dpkg -x $pkg $tempdir&lt;br /&gt;
 rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
 rm -rf $tempdir&lt;br /&gt;
 &lt;br /&gt;
 $destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them now&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8851</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=8851"/>
		<updated>2013-10-14T12:56:46Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* GotCloud Debian Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
=GotCloud Binary Releases=&lt;br /&gt;
GotCloud releases with the precompiled binary executables are available for download.&lt;br /&gt;
&lt;br /&gt;
The binaries were compiled on Linux Ubuntu.&lt;br /&gt;
&lt;br /&gt;
If you need the source, see [[GotCloud: Source Releases]] for information on obtaining the source.&lt;br /&gt;
&lt;br /&gt;
The Binary Releases are available as:&lt;br /&gt;
* [[#Debian Packages|debian packages]] - require root access to install&lt;br /&gt;
* [[#Tar Binary Releases|tarballs]] - anyone can untar&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  &lt;br /&gt;
&lt;br /&gt;
There is also a separate package to test the installation. &lt;br /&gt;
&lt;br /&gt;
==GotCloud Debian Packages==&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* tar&#039;d binary packages, see: [[#Tar Binary Releases|Tar Binary Releases]]&lt;br /&gt;
* source (does not require root access), see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing Debian Packages ===&lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
Installing Debian packages generally requires root access, however, you &amp;lt;b&amp;gt;can install as a non-root user&amp;lt;/b&amp;gt; using the following instructions (bash commands shown here):&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
tempdir=/tmp/$$.gotcloud.removeme     # Temp directory&lt;br /&gt;
destdir=$HOME                         # Where you want GotCloud installed&lt;br /&gt;
&lt;br /&gt;
pkg=[path_to_deb_file]/gotcloud-bin_*_amd64.deb&lt;br /&gt;
dpkg -x $pkg $tempdir&lt;br /&gt;
rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
rm -rf $tempdir&lt;br /&gt;
&lt;br /&gt;
pkg=[path_to_deb_file]/gotcloud-test_*_amd64.deb&lt;br /&gt;
dpkg -x $pkg $tempdir&lt;br /&gt;
rsync -av --delete $tempdir/usr/local/gotcloud/* $destdir/gotcloud || exit 1&lt;br /&gt;
rm -rf $tempdir&lt;br /&gt;
&lt;br /&gt;
$destdir/gotcloud/scripts/check_requirements.sh   # Check requirements&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Fetch the GotCloud Debian Packages====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Install the GotCloud Debian bin Package====&lt;br /&gt;
&lt;br /&gt;
Installation requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them now&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tar Binary Releases ==&lt;br /&gt;
&lt;br /&gt;
The tar binary releases contain the precompiled binaries and scripts necessary to run gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you would like to install from:&lt;br /&gt;
* debian packages, see: [[#GotCloud Debian Packages|Debian Packages]]&lt;br /&gt;
* source, see: [[GotCloud: Source Releases]]&lt;br /&gt;
&lt;br /&gt;
=== Installing Tar Releases ===&lt;br /&gt;
&lt;br /&gt;
The tar files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloudBin_latest.tgz          aligner and variant caller&lt;br /&gt;
  gotcloudTest_latest.tgz         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n.tar.gz     version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n.tar.gz    version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
====Fetch the Tar Releases====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud-\*latest\*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud-*latest*.tgz&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Unpack the Tar Release====&lt;br /&gt;
&lt;br /&gt;
Unpack the realeases:&lt;br /&gt;
 tar xf gotcloud-*latest*.tgz&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Release===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you download the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
The test case results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (3 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud align --test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (7 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Creating Your Own Debian Package From the Source=&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=8850</id>
		<title>GotCloud</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=8850"/>
		<updated>2013-10-14T12:45:02Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* GotCloud Dependencies */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Genomes on the Cloud (GotCloud) Introduction=&lt;br /&gt;
&lt;br /&gt;
To handle the increasing volume of next generation sequencing and genotyping data, we created and developed software pipelines called &#039;&#039;&#039;Genomes on the Cloud (GotCloud).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
GotCloud contains Mapping &amp;amp; Variant Calling Pipelines.&lt;br /&gt;
&lt;br /&gt;
Key Features:&lt;br /&gt;
* Connects sequence analysis tools together in automated pipeline&lt;br /&gt;
** Alignment, quality control, variant calling&lt;br /&gt;
* Robust against unexpected system failure using GNU make&lt;br /&gt;
** easy restart after failure&lt;br /&gt;
* Massively parallel, can run hundreds of jobs&lt;br /&gt;
** Splits large jobs into many pieces&lt;br /&gt;
** Simplifies running on clusters&lt;br /&gt;
* Scalable to tens of thousands of samples&lt;br /&gt;
* Easy to use - Automates series of configurable steps&lt;br /&gt;
** user doesn&#039;t have to understand/configure/know the many tools required to create high quality results&lt;br /&gt;
* Available on Amazon Web Services (AWS) Elastic Compute Cloud (EC2)&lt;br /&gt;
* Run on local machines/clusters&lt;br /&gt;
* Available via Debian Packages&lt;br /&gt;
&lt;br /&gt;
GotCloud incorporates the alignment and variant calling pipelines that we have been using at UM into one easy to use, publicly available tool.  GotCloud can run on a user&#039;s computer, on an instance in a &lt;br /&gt;
compute cloud, and/or can split the work up onto a cluster of machines or instances. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Help with GotCloud ==&lt;br /&gt;
&lt;br /&gt;
Please join in the [http://groups.google.com/group/GotCloud GotCloud Google Group] to ask / discuss / comment about these pipelines.&lt;br /&gt;
&lt;br /&gt;
Currently the &amp;quot;join&amp;quot; button appears to be missing.  Click &amp;quot;NEW TOPIC&amp;quot;, then select &amp;quot;Join this group&amp;quot;.  You can then cancel the message post (or post a message).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: FAQs]] if you have any questions.  If your questions are not answered there, join the google group and ask, or email Mary Kate Wing (mktrost@umich.edu).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sequence Analysis Background Information ==&lt;br /&gt;
&lt;br /&gt;
There are many essential steps in the analysis of next generation sequence data. &lt;br /&gt;
&lt;br /&gt;
Next generation sequence data analysis starts with [http://en.wikipedia.org/wiki/FASTQ_format FASTQ files], the typical format provided from your sequencing center containing the sequence &amp;amp; base quality information for your data.&lt;br /&gt;
&lt;br /&gt;
The fastq files are processed using the alignment pipeline which finds the most likely genomic location for each read and stores that information in a [[BAM|BAM (Binary Sequence Alignment/Map format) file]].  In addition to the sequence and base quality information contained in FASTQ files, a BAM file also contains the genomic location and some additional information about the mapping.  As part of the alignment pipeline, the base qualities are adjusted to more accurately reflect the likelihood that the base is correct. &lt;br /&gt;
&lt;br /&gt;
The [[GotCloud: Alignment Pipeline|alignment pipeline]] can be skipped if you already have Deduped and Recalibrated BAM files.&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud: Variant Calling Pipeline|variant calling pipeline]] processes the deduped and recalibrated BAMs file produced by the alignment pipeline or that you provide it, generating an initial list of polymorphic sites and genotypes stored in a [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 VCF (Variant Call Format) file].  The variant calling pipeline then filters the  variants using both hard filters and a [[SVM Filtering|Support Vector Machine (SVM)]].  It then uses haplotype information to refine these genotypes in an updated VCF file.&lt;br /&gt;
&lt;br /&gt;
After completing the GotCloud Variant Calling Pipeline, [[EPACTS|EPACTS (Efficient and Parallelizable Association Container Toolbox)]] can be used to perform statistical tests to identify genome-wide association from sequence data.&lt;br /&gt;
&lt;br /&gt;
[[File:GotCloudDiagram.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
= GotCloud Setup =&lt;br /&gt;
&lt;br /&gt;
You may run the GotCloud software in several modes:&lt;br /&gt;
* On your own hardware running Ubuntu or Redhat/CentOS. See the instructions about installing the software below.&lt;br /&gt;
* On an Amazon Elastic Compute Cloud using Ubuntu or Redhat/CentOS if you do not have your own set of machines.&lt;br /&gt;
** See [[GotCloud: Amazon]] for more information.&lt;br /&gt;
** You can run on an EC2 cluster instance created by StarCluster. &lt;br /&gt;
&lt;br /&gt;
GotCloud has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS.  While it should work on other Linux systems, they have not yet been tested. &lt;br /&gt;
&lt;br /&gt;
== GotCloud Dependencies ==&lt;br /&gt;
&lt;br /&gt;
GotCloud requires certain things to be installed in order to run:&lt;br /&gt;
* perl - gotcloud is a perl script and it calls many other perl scripts&lt;br /&gt;
** Zlib.pm - required for perl scripts to read compressed files.&lt;br /&gt;
* make - GNU make is used to run the pipelines&lt;br /&gt;
* java - required to run the beagle step of the ld-aware genotype refinement&lt;br /&gt;
&lt;br /&gt;
You can check if your system has the proper software installed by invoking the command&lt;br /&gt;
 [gotcloud_path]/scripts/check_requirements.sh&lt;br /&gt;
&lt;br /&gt;
== Install GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
You can install gotCloud on your system as (follow the links for the appropriate instructions):&lt;br /&gt;
* [[GotCloud: Source Releases|source release]] - contains the scripts and uncompiled source&lt;br /&gt;
* [[GotCloud: Binary Releases|binary release]] - contains the scripts and pre-compiled binaries (no source)&lt;br /&gt;
&lt;br /&gt;
[[GotCloud: Versions]] describes the changes added to each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively if you are using Amazon EC2, you can use the following instructions:&lt;br /&gt;
* Create a machine instance based on the AMI we provide. &#039;&#039;Instructions coming soon&#039;&#039;&lt;br /&gt;
** Directions for how we create an AMI: [[Creating an AMI on EC2]]&lt;br /&gt;
&#039;&#039;&#039;or&#039;&#039;&#039; Create an EC2 cluster instance using [[StarCluster|StarCluster]]&lt;br /&gt;
* Prepare your data for processing by GotCloud [[AWS Resources|AWS Resources]]&lt;br /&gt;
&lt;br /&gt;
For more information on Amazon Web Services, see: https://aws.amazon.com/&lt;br /&gt;
&lt;br /&gt;
== GotCloud Reference/Resource Files ==&lt;br /&gt;
In order to run gotCloud, you need to provide Genetic Reference and Resource Files.&lt;br /&gt;
&lt;br /&gt;
These include information about the reference sequence and dbnsp positions.&lt;br /&gt;
&lt;br /&gt;
See: [[GotCloud: Genetic Reference and Resource Files]] for information about the required files.  It contains a description of the required files, information about generating your own versions, as well as a downloadable set of files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure GotCloud ==&lt;br /&gt;
* [[Configure GotCloud|Configure Gotcloud]] for your installation&lt;br /&gt;
&lt;br /&gt;
== Running GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
* [[GotCloud: Alignment Pipeline|Alignment Pipeline]] &lt;br /&gt;
* [[GotCloud: Variant Calling Pipeline|Variant Calling Pipeline]]&lt;br /&gt;
&lt;br /&gt;
[[Tutorial: GotCloud]]&lt;br /&gt;
&lt;br /&gt;
== Development Notes ==&lt;br /&gt;
* [[Creating Packages]]&lt;br /&gt;
* Amazon EC2&lt;br /&gt;
** [[Creating a Snapshot on EC2]]&lt;br /&gt;
** [[Creating an AMI on EC2]]&lt;br /&gt;
** [[Mount S3 Volume]]&lt;br /&gt;
** Notes on sequence data preparation in [[Amazon Storage|Amazon Storage]].&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8849</id>
		<title>GotCloud: Source Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8849"/>
		<updated>2013-10-14T12:40:22Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Test snp calling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
= Where to Find the GotCloud Source =&lt;br /&gt;
&lt;br /&gt;
{{ToolGitRepo|repoName=gotcloud|nolibStatGen=true|noDownload=true|latestReleaseBranch=latest|skipBuild=true}}&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
Released Versions are documented at [[GotCloud: Versions]] with details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Building =&lt;br /&gt;
Prior to running gotcloud, you need to compile the source.&lt;br /&gt;
&lt;br /&gt;
# cd into the gotcloud directory you just created (via clone/unzip/untar)&lt;br /&gt;
# Check that your system has all of the requirements. Install whatever is needed.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;scripts/check_requirements.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build (compile) the source&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd src; make; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* Note: as the source builds, many messages will scroll through your terminal.  You may even see some warnings.  These messages are normal and expected.  As long as the build does not end with an error, you have successfully built the source.&lt;br /&gt;
&lt;br /&gt;
= GotCloud Script =&lt;br /&gt;
The gotcloud script that is the gateway to running GotCloud is found in the directory you created via clone/unzip/untar and is called gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you cloned into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud/gotcloud&lt;br /&gt;
If you downloaded &amp;quot;latest&amp;quot; into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud-latest/gotcloud&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing GotCloud ==&lt;br /&gt;
You can run an automated test that will tell you if it passes or fails.&lt;br /&gt;
&lt;br /&gt;
This test will ensure that everything is setup/installed properly and the expected results are produced.&lt;br /&gt;
&lt;br /&gt;
=== Test the aligner ===&lt;br /&gt;
&lt;br /&gt;
The aligner test takes about 3 minutes +/- 2 minute.&lt;br /&gt;
&lt;br /&gt;
To run:&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testalign with the directory where you want the test results to go&lt;br /&gt;
* To test the software in a cluster environment add the option -batchtype. For instance, using Sun Grid Engine in a Starcluster cluster, use&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign -batchtype sgei&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
 ---------------------------------------------------------------------&lt;br /&gt;
 Waiting while samples are processed...&lt;br /&gt;
 Processing finished in 63 secs with no errors reported&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/home/myuser/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testalign&lt;br /&gt;
&lt;br /&gt;
=== Test snp calling ===&lt;br /&gt;
&lt;br /&gt;
The snp calling test takes about 5 minutes +/- 2 minutes.&lt;br /&gt;
&lt;br /&gt;
To run, replace ~/testsnp with the directory where you want the test results to go:&lt;br /&gt;
 ~/gotcloud/gotcloud snpcall --test ~/testsnp&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testsnp with the directory where you want the test results to go&lt;br /&gt;
* To test the software in a cluster environment add the option -batchtype. For instance, using Sun Grid Engine in a Starcluster cluster, use&lt;br /&gt;
 ~/gotcloud/gotcloud snpcall --test ~/testsnp -batchtype sgei&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/home/myuser/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testsnp&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8848</id>
		<title>GotCloud: Source Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8848"/>
		<updated>2013-10-14T12:39:59Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Test the aligner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
= Where to Find the GotCloud Source =&lt;br /&gt;
&lt;br /&gt;
{{ToolGitRepo|repoName=gotcloud|nolibStatGen=true|noDownload=true|latestReleaseBranch=latest|skipBuild=true}}&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
Released Versions are documented at [[GotCloud: Versions]] with details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Building =&lt;br /&gt;
Prior to running gotcloud, you need to compile the source.&lt;br /&gt;
&lt;br /&gt;
# cd into the gotcloud directory you just created (via clone/unzip/untar)&lt;br /&gt;
# Check that your system has all of the requirements. Install whatever is needed.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;scripts/check_requirements.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build (compile) the source&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd src; make; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* Note: as the source builds, many messages will scroll through your terminal.  You may even see some warnings.  These messages are normal and expected.  As long as the build does not end with an error, you have successfully built the source.&lt;br /&gt;
&lt;br /&gt;
= GotCloud Script =&lt;br /&gt;
The gotcloud script that is the gateway to running GotCloud is found in the directory you created via clone/unzip/untar and is called gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you cloned into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud/gotcloud&lt;br /&gt;
If you downloaded &amp;quot;latest&amp;quot; into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud-latest/gotcloud&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing GotCloud ==&lt;br /&gt;
You can run an automated test that will tell you if it passes or fails.&lt;br /&gt;
&lt;br /&gt;
This test will ensure that everything is setup/installed properly and the expected results are produced.&lt;br /&gt;
&lt;br /&gt;
=== Test the aligner ===&lt;br /&gt;
&lt;br /&gt;
The aligner test takes about 3 minutes +/- 2 minute.&lt;br /&gt;
&lt;br /&gt;
To run:&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testalign with the directory where you want the test results to go&lt;br /&gt;
* To test the software in a cluster environment add the option -batchtype. For instance, using Sun Grid Engine in a Starcluster cluster, use&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign -batchtype sgei&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
 ---------------------------------------------------------------------&lt;br /&gt;
 Waiting while samples are processed...&lt;br /&gt;
 Processing finished in 63 secs with no errors reported&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/home/myuser/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testalign&lt;br /&gt;
&lt;br /&gt;
=== Test snp calling ===&lt;br /&gt;
&lt;br /&gt;
The snp calling test takes about 5 minutes +/- 2 minutes.&lt;br /&gt;
&lt;br /&gt;
To run, replace ~/testsnp with the directory where you want the test results to go:&lt;br /&gt;
 ~/gotcloud/gotcloud snpcall --test ~/testsnp&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testsnp with the directory where you want the test results to go&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/home/myuser/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testsnp&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8847</id>
		<title>GotCloud: Source Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8847"/>
		<updated>2013-10-14T12:39:30Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Test the aligner */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
= Where to Find the GotCloud Source =&lt;br /&gt;
&lt;br /&gt;
{{ToolGitRepo|repoName=gotcloud|nolibStatGen=true|noDownload=true|latestReleaseBranch=latest|skipBuild=true}}&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
Released Versions are documented at [[GotCloud: Versions]] with details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Building =&lt;br /&gt;
Prior to running gotcloud, you need to compile the source.&lt;br /&gt;
&lt;br /&gt;
# cd into the gotcloud directory you just created (via clone/unzip/untar)&lt;br /&gt;
# Check that your system has all of the requirements. Install whatever is needed.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;scripts/check_requirements.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build (compile) the source&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd src; make; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* Note: as the source builds, many messages will scroll through your terminal.  You may even see some warnings.  These messages are normal and expected.  As long as the build does not end with an error, you have successfully built the source.&lt;br /&gt;
&lt;br /&gt;
= GotCloud Script =&lt;br /&gt;
The gotcloud script that is the gateway to running GotCloud is found in the directory you created via clone/unzip/untar and is called gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you cloned into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud/gotcloud&lt;br /&gt;
If you downloaded &amp;quot;latest&amp;quot; into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud-latest/gotcloud&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing GotCloud ==&lt;br /&gt;
You can run an automated test that will tell you if it passes or fails.&lt;br /&gt;
&lt;br /&gt;
This test will ensure that everything is setup/installed properly and the expected results are produced.&lt;br /&gt;
&lt;br /&gt;
=== Test the aligner ===&lt;br /&gt;
&lt;br /&gt;
The aligner test takes about 3 minutes +/- 2 minute.&lt;br /&gt;
&lt;br /&gt;
To run:&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testalign with the directory where you want the test results to go&lt;br /&gt;
* To test the software in a cluster environment add the option -batchtype.&lt;br /&gt;
For instance, using Sun Grid Engine in a Starcluster cluster, use&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign -batchtype sgei&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
 ---------------------------------------------------------------------&lt;br /&gt;
 Waiting while samples are processed...&lt;br /&gt;
 Processing finished in 63 secs with no errors reported&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/home/myuser/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testalign&lt;br /&gt;
&lt;br /&gt;
=== Test snp calling ===&lt;br /&gt;
&lt;br /&gt;
The snp calling test takes about 5 minutes +/- 2 minutes.&lt;br /&gt;
&lt;br /&gt;
To run, replace ~/testsnp with the directory where you want the test results to go:&lt;br /&gt;
 ~/gotcloud/gotcloud snpcall --test ~/testsnp&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testsnp with the directory where you want the test results to go&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/home/myuser/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testsnp&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8846</id>
		<title>GotCloud: Source Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Source_Releases&amp;diff=8846"/>
		<updated>2013-10-14T12:35:19Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Building */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The [[GotCloud]] software has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS. While it should work on other Linux systems, they have not yet been tested.  It is not supported on Windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run into any problems with GotCloud, please check: [[GotCloud: FAQs]] or for problems/solutions for a specific version, [[GotCloud:_FAQs#Version_Problems|Version Problems]].&lt;br /&gt;
&lt;br /&gt;
= Where to Find the GotCloud Source =&lt;br /&gt;
&lt;br /&gt;
{{ToolGitRepo|repoName=gotcloud|nolibStatGen=true|noDownload=true|latestReleaseBranch=latest|skipBuild=true}}&lt;br /&gt;
&lt;br /&gt;
== Releases ==&lt;br /&gt;
Released Versions are documented at [[GotCloud: Versions]] with details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Building =&lt;br /&gt;
Prior to running gotcloud, you need to compile the source.&lt;br /&gt;
&lt;br /&gt;
# cd into the gotcloud directory you just created (via clone/unzip/untar)&lt;br /&gt;
# Check that your system has all of the requirements. Install whatever is needed.&lt;br /&gt;
#: &amp;lt;pre&amp;gt;scripts/check_requirements.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build (compile) the source&lt;br /&gt;
#: &amp;lt;pre&amp;gt;cd src; make; cd ..&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* Note: as the source builds, many messages will scroll through your terminal.  You may even see some warnings.  These messages are normal and expected.  As long as the build does not end with an error, you have successfully built the source.&lt;br /&gt;
&lt;br /&gt;
= GotCloud Script =&lt;br /&gt;
The gotcloud script that is the gateway to running GotCloud is found in the directory you created via clone/unzip/untar and is called gotcloud.&lt;br /&gt;
&lt;br /&gt;
If you cloned into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud/gotcloud&lt;br /&gt;
If you downloaded &amp;quot;latest&amp;quot; into your home directory, it would be:&lt;br /&gt;
 ~/gotcloud-latest/gotcloud&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing GotCloud ==&lt;br /&gt;
You can run an automated test that will tell you if it passes or fails.&lt;br /&gt;
&lt;br /&gt;
This test will ensure that everything is setup/installed properly and the expected results are produced.&lt;br /&gt;
&lt;br /&gt;
=== Test the aligner ===&lt;br /&gt;
&lt;br /&gt;
The aligner test takes about 3 minutes +/- 2 minute.&lt;br /&gt;
&lt;br /&gt;
To run:&lt;br /&gt;
 ~/gotcloud/gotcloud align --test ~/testalign&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testalign with the directory where you want the test results to go&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
 Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
 ---------------------------------------------------------------------&lt;br /&gt;
 Waiting while samples are processed...&lt;br /&gt;
 Processing finished in 63 secs with no errors reported&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/home/myuser/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testalign&lt;br /&gt;
&lt;br /&gt;
=== Test snp calling ===&lt;br /&gt;
&lt;br /&gt;
The snp calling test takes about 5 minutes +/- 2 minutes.&lt;br /&gt;
&lt;br /&gt;
To run, replace ~/testsnp with the directory where you want the test results to go:&lt;br /&gt;
 ~/gotcloud/gotcloud snpcall --test ~/testsnp&lt;br /&gt;
* replace the beginining ~/ with the actual path to where you downloaded gotcloud&lt;br /&gt;
* replace ~/testsnp with the directory where you want the test results to go&lt;br /&gt;
&lt;br /&gt;
Output you should see something like:&lt;br /&gt;
 Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
 Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
 Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
 Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/home/myuser/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
 Successfully ran the test case, congratulations!&lt;br /&gt;
&lt;br /&gt;
You can remove the output directory if there were no errors.&lt;br /&gt;
 rm -rf ~/testsnp&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7517</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7517"/>
		<updated>2013-06-17T17:10:13Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=16384     # 8GB swap on t1.micro   15G=bs=1073741824 count=15&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
 #!/bin/sh &lt;br /&gt;
 #&lt;br /&gt;
 # rc.local&lt;br /&gt;
 #&lt;br /&gt;
 # This script is executed at the end of each multiuser runlevel.&lt;br /&gt;
 # Make sure that the script will &amp;quot;exit 0&amp;quot; on success or any other&lt;br /&gt;
 # value on error.&lt;br /&gt;
 #&lt;br /&gt;
 # In order to enable or disable this script just change the execution&lt;br /&gt;
 # bits.&lt;br /&gt;
 #&lt;br /&gt;
 # By default this script does nothing.&lt;br /&gt;
 USER=ubuntu&lt;br /&gt;
 THOUSANDG=/mnt/1000g&lt;br /&gt;
 FILES3=/etc/passwd-s3fs     # Where s3fs access info will live&lt;br /&gt;
 S3ERR=/tmp/s3fs.err&lt;br /&gt;
 #   These are needed for s3fs access&lt;br /&gt;
 AWSACCESSKEYID=AKIAxxxxxxZ3YCZF2Q&lt;br /&gt;
 AWSSECRETACCESSKEY=ft1eJa3WxxxxxxxNlbA08x/G8iMqkMIkJjFCIGf&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 #    Check that we have swap set up&lt;br /&gt;
 a=`swapon -s | grep -v File`&lt;br /&gt;
 if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
   echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
   echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
   echo &amp;quot;&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
   echo &amp;quot;&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
   echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
   echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 #    Set up for GotCloud&lt;br /&gt;
 gc=/gotcloud.mnt&lt;br /&gt;
 if [ ! -r $gc/release_version.txt ]; then&lt;br /&gt;
   mkdir -p $gc&lt;br /&gt;
   mount /dev/xvdg $gc&lt;br /&gt;
   if [ -d $gc/gotcloud.ref ]; then&lt;br /&gt;
     echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
     echo &amp;quot;#   GotCloud is set up on $gc&amp;quot;&lt;br /&gt;
     echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 #    Set up access to S3 storage as normal filesystem &lt;br /&gt;
 echo &amp;quot;${AWSACCESSKEYID}:$AWSSECRETACCESSKEY&amp;quot; &amp;gt; $FILES3&lt;br /&gt;
 chown root.root $FILES3&lt;br /&gt;
 chmod 640 $FILES3&lt;br /&gt;
 &lt;br /&gt;
 usermod -aG fuse $USER&lt;br /&gt;
 &lt;br /&gt;
 #    Setup 1000genomes&lt;br /&gt;
 mkdir -p $THOUSANDG&lt;br /&gt;
 if [ ! -r $THOUSANDG/release ]; then&lt;br /&gt;
   chown $USER.$USER $THOUSANDG&lt;br /&gt;
   /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
   if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
     echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
     echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot;&lt;br /&gt;
     echo &amp;quot;#   See S3FS errors in $S3ERR&amp;quot;&lt;br /&gt;
     echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
   fi&lt;br /&gt;
   df -h&lt;br /&gt;
 fi&lt;br /&gt;
 exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or larger -&amp;gt; Continue     # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7516</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7516"/>
		<updated>2013-06-17T17:08:56Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=16384     # 8GB swap on t1.micro   15G=bs=1073741824 count=15&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
#!/bin/sh &lt;br /&gt;
#&lt;br /&gt;
# rc.local&lt;br /&gt;
#&lt;br /&gt;
# This script is executed at the end of each multiuser runlevel.&lt;br /&gt;
# Make sure that the script will &amp;quot;exit 0&amp;quot; on success or any other&lt;br /&gt;
# value on error.&lt;br /&gt;
#&lt;br /&gt;
# In order to enable or disable this script just change the execution&lt;br /&gt;
# bits.&lt;br /&gt;
#&lt;br /&gt;
# By default this script does nothing.&lt;br /&gt;
USER=ubuntu&lt;br /&gt;
THOUSANDG=/mnt/1000g&lt;br /&gt;
FILES3=/etc/passwd-s3fs     # Where s3fs access info will live&lt;br /&gt;
S3ERR=/tmp/s3fs.err&lt;br /&gt;
#   These are needed for s3fs access&lt;br /&gt;
AWSACCESSKEYID=AKIAxxxxxxZ3YCZF2Q&lt;br /&gt;
AWSSECRETACCESSKEY=ft1eJa3WxxxxxxxNlbA08x/G8iMqkMIkJjFCIGf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#    Check that we have swap set up&lt;br /&gt;
a=`swapon -s | grep -v File`&lt;br /&gt;
if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
  echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
  echo &amp;quot;&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
  echo &amp;quot;&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
  echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
  echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#    Set up for GotCloud&lt;br /&gt;
gc=/gotcloud.mnt&lt;br /&gt;
if [ ! -r $gc/release_version.txt ]; then&lt;br /&gt;
  mkdir -p $gc&lt;br /&gt;
  mount /dev/xvdg $gc&lt;br /&gt;
  if [ -d $gc/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is set up on $gc&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#    Set up access to S3 storage as normal filesystem &lt;br /&gt;
echo &amp;quot;${AWSACCESSKEYID}:$AWSSECRETACCESSKEY&amp;quot; &amp;gt; $FILES3&lt;br /&gt;
chown root.root $FILES3&lt;br /&gt;
chmod 640 $FILES3&lt;br /&gt;
&lt;br /&gt;
usermod -aG fuse $USER&lt;br /&gt;
&lt;br /&gt;
#    Setup 1000genomes&lt;br /&gt;
mkdir -p $THOUSANDG&lt;br /&gt;
if [ ! -r $THOUSANDG/release ]; then&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   See S3FS errors in $S3ERR&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
fi&lt;br /&gt;
exit 0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or larger -&amp;gt; Continue     # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7515</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7515"/>
		<updated>2013-06-17T17:06:07Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Set Up Swap Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=16384     # 8GB swap on t1.micro   15G=bs=1073741824 count=15&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  #   Make sure we have a swap file&lt;br /&gt;
  a=`swapon -s | grep -v Filename&#039;&lt;br /&gt;
  if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or larger -&amp;gt; Continue     # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7514</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7514"/>
		<updated>2013-06-17T15:57:12Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Test the new AMI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  #  Examples to create swap file&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=16384     # 8GB swap on t1.micro&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  #   Make sure we have a swap file&lt;br /&gt;
  a=`swapon -s | grep -v Filename&#039;&lt;br /&gt;
  if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or larger -&amp;gt; Continue     # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7513</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7513"/>
		<updated>2013-06-17T15:40:17Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Set Up Swap Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  #  Examples to create swap file&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=16384     # 8GB swap on t1.micro&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  #   Make sure we have a swap file&lt;br /&gt;
  a=`swapon -s | grep -v Filename&#039;&lt;br /&gt;
  if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7512</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7512"/>
		<updated>2013-06-17T15:28:02Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Set Up Swap Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  #  Examples to create swap file&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=524288 count=30720     # 8GB swap on t1.micro&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  #   Make sure we have a swap file&lt;br /&gt;
  a=`swapon -s | grep -v Filename&#039;&lt;br /&gt;
  if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7511</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7511"/>
		<updated>2013-06-17T13:54:24Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  #   Make sure we have a swap file&lt;br /&gt;
  a=`swapon -s | grep -v Filename&#039;&lt;br /&gt;
  if [ &amp;quot;$a&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   You have no SWAP file set up&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  swap=/mnt/swapfile&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo dd if=/dev/zero of=$swap bs=1073741824 count=20&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chown root:root $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo mkswap $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo chmod 0600 $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  sudo swapon $swap&amp;quot;&lt;br /&gt;
    echo &amp;quot;#&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  If need be, add to /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7420</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7420"/>
		<updated>2013-05-21T14:30:24Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Configure s3cmd.  This will ask for your AWS ID and Secret Key. If creates a file in ~/.s3cfg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  s3cmd --configure&lt;br /&gt;
 &lt;br /&gt;
  Enter new values or accept defaults in brackets with Enter.&lt;br /&gt;
  Refer to user manual for detailed description of all options.&lt;br /&gt;
 &lt;br /&gt;
  Access key and Secret key are your identifiers for Amazon S3&lt;br /&gt;
  Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
  Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
 &lt;br /&gt;
  Encryption password is used to protect your files from reading&lt;br /&gt;
  by unauthorized persons while in transfer to S3&lt;br /&gt;
  Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
  Path to GPG program [/usr/bin/gpg]: &lt;br /&gt;
 &lt;br /&gt;
  When using secure HTTPS protocol all communication with Amazon S3&lt;br /&gt;
  servers is protected from 3rd party eavesdropping. This method is&lt;br /&gt;
  slower than plain HTTP and can&#039;t be used if you&#039;re behind a proxy&lt;br /&gt;
  Use HTTPS protocol [No]: &lt;br /&gt;
 &lt;br /&gt;
  On some networks all internet access must go through a HTTP proxy.&lt;br /&gt;
  Try setting it here if you can&#039;t conect to S3 directly&lt;br /&gt;
  HTTP Proxy server name: &lt;br /&gt;
 &lt;br /&gt;
  New settings:&lt;br /&gt;
    Access Key: AKI1234QEUWZ3YCZF2Q&lt;br /&gt;
    Secret Key: ft1eJa1234NE8iitNlbA08x/G8iMqkMI1234IGf&lt;br /&gt;
    Encryption password: password_you_do_not_need_to_know&lt;br /&gt;
    Path to GPG program: /usr/bin/gpg&lt;br /&gt;
    Use HTTPS protocol: False&lt;br /&gt;
    HTTP Proxy server name: &lt;br /&gt;
    HTTP Proxy server port: 0&lt;br /&gt;
 &lt;br /&gt;
  Test access with supplied credentials? [Y/n] &lt;br /&gt;
  Please wait...&lt;br /&gt;
  Success. Your access key and secret key worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Now verifying that encryption works...&lt;br /&gt;
  Success. Encryption and decryption worked fine :-)&lt;br /&gt;
 &lt;br /&gt;
  Save settings? [y/N] y&lt;br /&gt;
  Configuration saved to &#039;/home/ubuntu/.s3cfg&#039;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(4)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7419</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7419"/>
		<updated>2013-05-21T14:19:52Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Create the AMI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   GotCLoud 1.06&lt;br /&gt;
    Image Description:  From CSG at University of Michigan&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7418</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7418"/>
		<updated>2013-05-21T14:18:30Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, if it is set up properly. &lt;br /&gt;
Our recent experience is that the 1000 Genomes data is has many files with incorrect permissions.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7417</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7417"/>
		<updated>2013-05-21T14:00:23Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl s3cmd&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7416</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7416"/>
		<updated>2013-05-21T13:52:03Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
 &lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7415</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7415"/>
		<updated>2013-05-21T13:49:42Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install the [[Pipeline Debian Package|&#039;&#039;&#039;GotCloud Debian packages&#039;&#039;&#039;]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7414</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7414"/>
		<updated>2013-05-21T13:48:53Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(1)&#039;&#039;&#039; There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get update&lt;br /&gt;
  sudo apt-get upgrade           # Apply maintenance&lt;br /&gt;
 &lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(2)&#039;&#039;&#039; &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(3)&#039;&#039;&#039; Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7413</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7413"/>
		<updated>2013-05-21T13:47:44Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Make Sure System Has Swap Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set Up Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
(1) There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(2) &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(3) Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7412</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7412"/>
		<updated>2013-05-21T13:47:23Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Make Sure System Has Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
(1) There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(2) &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(3) Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7411</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7411"/>
		<updated>2013-05-21T13:47:06Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Make Sure System Has Swap Space */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
(1) There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(2) &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(3) Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7410</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7410"/>
		<updated>2013-05-21T13:46:42Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install Additional Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the Software ==&lt;br /&gt;
&lt;br /&gt;
(1) There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(2) &#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(3) Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Make Sure System Has Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7409</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7409"/>
		<updated>2013-05-21T13:45:38Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install the GotCloud Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Make Sure System Has Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7408</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7408"/>
		<updated>2013-05-21T13:45:07Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Create the AMI */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Make Sure System Has Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
Once your instance is all ready with the files you want, swap space etc, then create the AMI.&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7407</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7407"/>
		<updated>2013-05-21T13:35:05Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Make Sure System Has Swap Space ==&lt;br /&gt;
&lt;br /&gt;
Issue the command &#039;&#039;&#039;swapon -s&#039;&#039;&#039; to see if there is swap space.&lt;br /&gt;
If there is only a header line, you need to add a swap file like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  df -h          # Be sure there&#039;s enough space, decide on swap size&lt;br /&gt;
  #  Create a file /swap to use (assuming / is large enough)&lt;br /&gt;
  sudo bash      # Run these commands as root&lt;br /&gt;
  swap=/swap&lt;br /&gt;
  dd if=/dev/zero of=$swap bs=1073741824 count=15    # 15GB swap&lt;br /&gt;
  chown root:root $swap&lt;br /&gt;
  mkswap $swap&lt;br /&gt;
  chmod 0600 $swap&lt;br /&gt;
  swapon $swap&lt;br /&gt;
  echo &amp;quot;$swap  none swap sw  0  0&amp;quot; &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;
 &lt;br /&gt;
  swapon -s       # Should show the swap device&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7406</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7406"/>
		<updated>2013-05-20T17:33:00Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host to be Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
 &lt;br /&gt;
  #    Setup 1000g access by s3fs&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  #   It is tempting to use caching with  -o use_cache=/tmp 1000genomes&lt;br /&gt;
  #   But s3fs cache is exceedingly dumb and does not use a least recently used&lt;br /&gt;
  #   mechanism -- which will guarantee your root volume will fill up&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7405</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7405"/>
		<updated>2013-05-20T17:28:58Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Configure the Host so it Usable */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure the Host to be Usable ==&lt;br /&gt;
&lt;br /&gt;
It is useful to configure /etc/rc.local to do most things you need at boot time.&lt;br /&gt;
There are many other ways to do this, but here&#039;s one simple way - create the&lt;br /&gt;
file /etc/rc.local (as root).&lt;br /&gt;
The following example sets up access details for &#039;&#039;&#039;s3cmd&#039;&#039;&#039; and &#039;&#039;&#039;s3fs&#039;&#039;&#039;&lt;br /&gt;
(use your own credentials).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ubuntu@ip-10-254-60-210:~$ sudo more /etc/rc.local&lt;br /&gt;
  #!/bin/sh &lt;br /&gt;
  USER=ubuntu&lt;br /&gt;
  THOUSANDG=/mnt/1000g&lt;br /&gt;
  FILES3=passwd-s3fs&lt;br /&gt;
  S3ERR=/tmp/s3fs.err&lt;br /&gt;
 &lt;br /&gt;
  #    Set up for GotCloud    Assumes /dev/xvdf has reference files for GotCloud&lt;br /&gt;
  mkdir -p /gotcloud&lt;br /&gt;
  mount /dev/xvdf /gotcloud&lt;br /&gt;
  if [ ! -d /gotcloud/gotcloud.ref ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
    echo &amp;quot;#   GotCloud is not set up on /gotcloud&amp;quot;&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot;&lt;br /&gt;
  fi&lt;br /&gt;
  #    Setup 1000g&lt;br /&gt;
  usermod -aG fuse $USER&lt;br /&gt;
  echo &#039;AKIAIW5TQEUWZ3YCZF2Q:ft1eJa3WGzNE8iitNlbA08x/G8iMqkMIkJjFCIGf&#039; &amp;gt; /etc/$FILES3&lt;br /&gt;
  chown root.root /etc/$FILES3&lt;br /&gt;
  chmod 640 /etc/$FILES3&lt;br /&gt;
  mkdir -p $THOUSANDG&lt;br /&gt;
  chown $USER.$USER $THOUSANDG&lt;br /&gt;
  /usr/local/bin/s3fs -o allow_other 1000genomes $THOUSANDG &amp;gt; $S3ERR 2&amp;gt;&amp;amp;1&lt;br /&gt;
  if [ ! -r $THOUSANDG/alignment.index ]; then&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#   1000genomes is not set up on $THOUSANDG&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
    echo &amp;quot;#######################################################&amp;quot; &amp;gt;&amp;gt; $S3ERR&lt;br /&gt;
  fi&lt;br /&gt;
  df -h&lt;br /&gt;
&lt;br /&gt;
  exit 0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7404</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7404"/>
		<updated>2013-05-20T17:22:16Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
== Launch an instance ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
== Install Additional Software ==&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;S3fs&#039;&#039;&#039; allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure the Host so it Usable ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Create the AMI ==&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test the new AMI ==&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7403</id>
		<title>Creating an AMI on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_an_AMI_on_EC2&amp;diff=7403"/>
		<updated>2013-05-20T17:19:15Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Notes About Creating a New EC2 AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating the Amazon Machine Instance used for the CSG pipeline process.&lt;br /&gt;
These notes assume you have already created an EC2 account and have the certificates and keys set up properly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Launch an instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-east-1&#039;&#039;&#039;.&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; Launch Instance&lt;br /&gt;
  Class Wizard&lt;br /&gt;
  Ubuntu Server 12.04.1 LTS   64 bit&lt;br /&gt;
  Instance type -&amp;gt; Micro,  EC2, no preference        # Memory size does not matter&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G -&amp;gt; Save -&amp;gt; Continue           # Storage size does not matter&lt;br /&gt;
  Key Name = GotCloud 1.06a&lt;br /&gt;
  Create Key/Pair if you need to, Name the PEM and save the pem file for access by ssh&lt;br /&gt;
  Choose a Security Group  (take default)&lt;br /&gt;
  Launch&lt;br /&gt;
    No need to Create Status Check Alarms&lt;br /&gt;
    No need to Create EBS Volumes&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Install the GotCloud Software&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Install Additional Software&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There are a number of additional Debian packages that you may well need, so we make&lt;br /&gt;
sure they are all installed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
S3fs allows one to access S3 storage as a conventional file system.&lt;br /&gt;
This can be quite handy, but our recent experience is that accessing S3 data this&lt;br /&gt;
way (at least for 1000 Genomes data) is seldom really usable.&lt;br /&gt;
Still if you&#039;re lucky, your data will be useful.&lt;br /&gt;
Install the software like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  mkdir -p ~/src&lt;br /&gt;
  cd ~/src&lt;br /&gt;
  wget  http://s3fs.googlecode.com/files/s3fs-1.68.tar.gz&lt;br /&gt;
  tar xzvf s3fs-1.68.tar.gz&lt;br /&gt;
  cd s3fs*&lt;br /&gt;
  ./configure&lt;br /&gt;
  sudo make install&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Configure the Host so it Usable&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create the AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Create Image&lt;br /&gt;
    Image Name   csg-biopipe_instance&lt;br /&gt;
    Image Description:  Image for CSG Biopipe instance&lt;br /&gt;
    Volume Size:  30GB&lt;br /&gt;
    Take defaults otherwise&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will take several minutes to complete.&lt;br /&gt;
In the EC2 Dashboard, you can monitor the progress.&lt;br /&gt;
When it is done, you&#039;ll see a new AMI under the list of AMIs.&lt;br /&gt;
&lt;br /&gt;
Your new AMI should look pretty much like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  AMI: 	Ubuntu Cloud Guest AMI ID ami-3d4ff254 (x86_64)&lt;br /&gt;
  Name: 	Ubuntu Server 12.04.1 LTS 	 &lt;br /&gt;
  Description: 	Ubuntu Server 12.04.1 LTS with support available from Canonical (http://www.ubuntu.com/cloud/services).&lt;br /&gt;
  Number of Instances: 	1 	 &lt;br /&gt;
  Availability Zone: 	No Preference 	 &lt;br /&gt;
  Instance Type: 	Micro (t1.micro) 	 &lt;br /&gt;
  Instance Class: 	On Demand 	Edit Instance Details&lt;br /&gt;
  EBS-Optimized: 	No&lt;br /&gt;
  Monitoring: 	Disabled 	Termination Protection: 	Disabled 	 &lt;br /&gt;
  Tenancy: 	Default 	 &lt;br /&gt;
  Kernel ID: 	Use Default 	Shutdown Behavior: 	Stop 	 &lt;br /&gt;
  RAM Disk ID: 	Use Default 	 &lt;br /&gt;
  Network Interfaces: 		 &lt;br /&gt;
  Secondary IP Addresses: 		 &lt;br /&gt;
  User Data: 		 &lt;br /&gt;
  IAM Role: 		Edit Advanced Details&lt;br /&gt;
  Key Pair Name: 	CSG 	Edit Key Pair&lt;br /&gt;
  Security Group(s): 	sg-a098e9c8 	Edit Firewall&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Test the new AMI&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Launch a new AMI instance and check that files are in the correct places.&lt;br /&gt;
In the EC2 Management Console do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  EC2 DashBoard -&amp;gt; AMIs -&amp;gt; Select CSG instance -&amp;gt; Launch Instance&lt;br /&gt;
  Launch Instances  (take defaults)&lt;br /&gt;
  Advanced Instance Options  (take defaults)&lt;br /&gt;
  Storage Device Configuration -&amp;gt; Edit&lt;br /&gt;
  Change volume to 30G or whatever -&amp;gt; Continue       # Defaults are OK&lt;br /&gt;
  Instance Details&lt;br /&gt;
    Key Name = test of instance&lt;br /&gt;
  Create Key/Pair if you need to, most likely you can use one you have created&lt;br /&gt;
  Choose a Security Group -&amp;gt; sg-a098e9c8 - quick-start-1&lt;br /&gt;
  Review -&amp;gt; Launch&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Creating_a_Snapshot_on_EC2&amp;diff=7402</id>
		<title>Creating a Snapshot on EC2</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Creating_a_Snapshot_on_EC2&amp;diff=7402"/>
		<updated>2013-05-20T17:12:48Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We no longer provide a snapshot for GotCLoud&#039;&#039;&#039;. This is no longer used.&lt;br /&gt;
&lt;br /&gt;
The following are notes taken when creating a Snapshot of a volume where the GotCloud &lt;br /&gt;
software and data are installed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create an Instance with a Master GotCloud Volume&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Login to https://console.aws.amazon.com/ec2       # EC2 Management Console&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pay attention to the region you are using, at least for now it seems any StarCluster activity must be in &#039;&#039;&#039;us-west-2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Launch a new instance which we will use to set up the software and ultimately save it as an AMI.&lt;br /&gt;
Your instance can use any memory size (t1.micro is fine), but should be running&lt;br /&gt;
&#039;&#039;&#039;Ubuntu Server 12.04.1 LTS   64 bit&#039;&#039;&#039;. The root volume size does not matter either.&lt;br /&gt;
&lt;br /&gt;
Create a volume to serve as the GotCloud master volume if you do not already have one.&lt;br /&gt;
The volume size should be 20G at the moment.&lt;br /&gt;
Be sure the zone is the same as the one for the instance you just launched/created.&lt;br /&gt;
The volume should be based on &#039;No Snapshot&#039;.&lt;br /&gt;
Once it is created, attach it to the  instance you have launched and &#039;&#039;&#039;mount it it /gotcloud&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Install the Software&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to install a Debian package  [[Pipeline Debian Package|debian package]]&lt;br /&gt;
Run the tests to be sure everything is OK.&lt;br /&gt;
This installs files in /usr/local/gotcloud and these need to be copied to the snapshot disk.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  cd /gotcloud&lt;br /&gt;
  rm -rf bin scripts test      # Remove old GotCloud&lt;br /&gt;
  sudo rsync -av /usr/local/gotcloud/* /gotcloud&lt;br /&gt;
  sudo chown -R ubuntu.ubuntu bin scripts test release_version.txt&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Even though the references are not part of the distribution, you cannot do anything useful&lt;br /&gt;
without references, so get them and make them available in /gotcloud&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  cd /mnt                     # Because the *.tar.gz will be too big for /home&lt;br /&gt;
  sudo wget share.sph.umich.edu:gotcloud/CHANGETHIS.tar.gz &lt;br /&gt;
  cd /gotcloud&lt;br /&gt;
  sudo tar xzf /mnt/CHANGETHIS.tar.gz&lt;br /&gt;
  sudo chown -R ubuntu.ubuntu gotcloud.ref&lt;br /&gt;
  sudo chmod 0755 gotcloud.ref&lt;br /&gt;
  chmod 0644 gotcloud.ref/*&lt;br /&gt;
  ls -la ref&lt;br /&gt;
  sudo rm -f /mnt/CHANGETHIS.tar.gz    # if no error&lt;br /&gt;
  cd /gotcloud/examples/umakeRef       ############# still true?&lt;br /&gt;
  ln -s /gotcloud/ref/hs37d5.fa .      ############# still true?&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Create the SnapShot&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In your browser at the EC2 Management Console choose &#039;&#039;Elastic Block Storage&#039;&#039; -&amp;gt; &#039;&#039;Volumes&#039;&#039;.&lt;br /&gt;
Find the volume for current master you created above.&lt;br /&gt;
Choose &#039;&#039;Actions&#039;&#039; -&amp;gt; &#039;&#039;Create Snapshot&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  Name:  GotCloud Distribution&lt;br /&gt;
  Description:  GotCloud from UMICH   Version 1.03a6&lt;br /&gt;
  Note snapshot name  e.g. snap-9e782bb8&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now make the name of this snapshot available to the user population.&lt;br /&gt;
&#039;&#039;&#039;In your Unix terminal&#039;&#039;&#039;, get the snapshots.txt file, update it and make it available:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  wget share.sph.umich.edu:gotcloud/snapshots.txt&lt;br /&gt;
  vi snapshots.txt   # Replace snapshot id with new one&lt;br /&gt;
  scp snapshots.txt gotcloud@share.sph.umich.edu:&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7401</id>
		<title>GotCloud</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7401"/>
		<updated>2013-05-20T17:10:59Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install GotCloud Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Genomes on the Cloud (GotCloud) Introduction=&lt;br /&gt;
&lt;br /&gt;
To handle the increasing volume of next generation sequencing and genotyping data, we created and developed software pipelines called &#039;&#039;&#039;Genomes on the Cloud (GotCloud).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
GotCloud contains Mapping &amp;amp; Variant Calling Pipelines.&lt;br /&gt;
&lt;br /&gt;
Key Features:&lt;br /&gt;
* Connects sequence analysis tools together in automated pipeline&lt;br /&gt;
** Alignment, quality control, variant calling&lt;br /&gt;
* Robust against unexpected system failure using GNU make&lt;br /&gt;
** easy restart after failure&lt;br /&gt;
* Massively parallel, can run hundreds of jobs&lt;br /&gt;
** Splits large jobs into many pieces&lt;br /&gt;
** Simplifies running on clusters&lt;br /&gt;
* Scalable to tens of thousands of samples&lt;br /&gt;
* Easy to use - Automates series of configurable steps&lt;br /&gt;
** user doesn&#039;t have to understand/configure/know the many tools required to create high quality results&lt;br /&gt;
* Available on Amazon Web Services (AWS) Elastic Compute Cloud (EC2)&lt;br /&gt;
* Run on local machines/clusters&lt;br /&gt;
* Available via Debian Packages&lt;br /&gt;
&lt;br /&gt;
GotCloud incorporates the alignment and variant calling pipelines that we have been using at UM into one easy to use, publicly available tool.  GotCloud can run on a user&#039;s computer, on an instance in a &lt;br /&gt;
compute cloud, and/or can split the work up onto a cluster of machines or instances. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Help with GotCloud ==&lt;br /&gt;
&lt;br /&gt;
Please join in the [http://groups.google.com/group/GotCloud GotCloud Google Group] to ask / discuss / comment about these pipelines.&lt;br /&gt;
&lt;br /&gt;
Currently the &amp;quot;join&amp;quot; button appears to be missing.  Click &amp;quot;NEW TOPIC&amp;quot;, then select &amp;quot;Join this group&amp;quot;.  You can then cancel the message post (or post a message).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: FAQs]] if you have any questions.  If your questions are not answered there, join the google group and ask, or email Mary Kate Wing (mktrost@umich.edu).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sequence Analysis Background Information ==&lt;br /&gt;
&lt;br /&gt;
There are many essential steps in the analysis of next generation sequence data. &lt;br /&gt;
&lt;br /&gt;
Next generation sequence data analysis starts with [http://en.wikipedia.org/wiki/FASTQ_format FASTQ files], the typical format provided from your sequencing center containing the sequence &amp;amp; base quality information for your data.&lt;br /&gt;
&lt;br /&gt;
The fastq files are processed using the alignment pipeline which finds the most likely genomic location for each read and stores that information in a [[BAM|BAM (Binary Sequence Alignment/Map format) file]].  In addition to the sequence and base quality information contained in FASTQ files, a BAM file also contains the genomic location and some additional information about the mapping.  As part of the alignment pipeline, the base qualities are adjusted to more accurately reflect the likelihood that the base is correct. &lt;br /&gt;
&lt;br /&gt;
The alignment pipeline can be skipped if you already have Deduped and Recalibrated BAM files.&lt;br /&gt;
&lt;br /&gt;
The variant calling pipeline processes the deduped and recalibrated BAMs file produced by the alignment pipeline or that you provide it, generating an initial list of polymorphic sites and genotypes stored in a [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 VCF (Variant Call Format) file].  The variant calling pipeline then filters the  variants using both hard and a [[SVM Filtering|Support Vector Machine (SVM)]].  It then uses haplotype information to refine these genotypes in an updated VCF file.&lt;br /&gt;
&lt;br /&gt;
After completing the GotCloud Variant Calling PIpeline, [[EPACTS|EPACTS (Efficient and Parallelizable Association Container Toolbox)]] can be used to perform statistical tests to identify genome-wide association from sequence data.&lt;br /&gt;
&lt;br /&gt;
[[File:GotCloudDiagram.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
= GotCloud Setup =&lt;br /&gt;
&lt;br /&gt;
You may run the GotCloud software in several modes:&lt;br /&gt;
* On your own hardware running Ubuntu or Redhat/CentOS. See the instructions about installing the software below.&lt;br /&gt;
* On an Amazon Elastic Compute Cloud using Ubuntu or Redhat/CentOS if you do not have your own set of machines.&lt;br /&gt;
** See [[Amazon Snapshot]] for more information.&lt;br /&gt;
** You can run on an EC2 cluster instance created by StarCluster. &lt;br /&gt;
&lt;br /&gt;
GotCloud has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS.  While it should work on other Linux systems, they have not yet been tested. &lt;br /&gt;
&lt;br /&gt;
== Install GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
You can install gotCloud on your system as (follow the links for the appropriate instructions):&lt;br /&gt;
* [[GotCloud: Source Releases|tar release]] - contains the uncompiled source&lt;br /&gt;
* [[GotCloud: Debian Package|debian package]] - requires root permissions to install&lt;br /&gt;
* As a red hat package - not yet available - requires root permissions to install&lt;br /&gt;
&lt;br /&gt;
[[GotCloud: Versions]] describes the changes added to each version.&lt;br /&gt;
&lt;br /&gt;
Alternatively if you are using Amazon EC2, you can use the following instructions:&lt;br /&gt;
* Create a machine instance based on the AMI we provide [[Creating an AMI on EC2]]&lt;br /&gt;
&#039;&#039;&#039;or&#039;&#039;&#039; Create an EC2 cluster instance using [[StarCluster|StarCluster]]&lt;br /&gt;
* Prepare your data for processing by GotCloud [[AWS Resources|AWS Resources]]&lt;br /&gt;
&lt;br /&gt;
For more information on Amazon Web Services, see: https://aws.amazon.com/&lt;br /&gt;
&lt;br /&gt;
== GotCloud Reference/Resource Files ==&lt;br /&gt;
In order to run gotCloud, you need to provide Genetic Reference and Resource Files.&lt;br /&gt;
&lt;br /&gt;
These include information about the reference sequence and dbnsp positions.&lt;br /&gt;
&lt;br /&gt;
See: [[GotCloud: Genetic Reference and Resource Files]] for information about the required files.  It contains a description of the required files, information about generating your own versions, as well as a downloadable set of files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure GotCloud ==&lt;br /&gt;
* [[Configure GotCloud|Configure Gotcloud]] for your installation&lt;br /&gt;
&lt;br /&gt;
== Running GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
* [[GotCloud: Alignment Pipeline|Alignment Pipeline]] &lt;br /&gt;
* [[GotCloud: Variant Calling Pipeline|Variant Calling Pipeline]]&lt;br /&gt;
&lt;br /&gt;
[[Tutorial: GotCloud]]&lt;br /&gt;
&lt;br /&gt;
== Development Notes ==&lt;br /&gt;
* [[Creating Packages]]&lt;br /&gt;
* Amazon EC2&lt;br /&gt;
** [[Creating a Snapshot on EC2]]&lt;br /&gt;
** [[Creating an AMI on EC2]]&lt;br /&gt;
** [[Mount S3 Volume]]&lt;br /&gt;
** Notes on sequence data preparation in [[Amazon Storage|Amazon Storage]].&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7400</id>
		<title>GotCloud</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7400"/>
		<updated>2013-05-20T17:10:23Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install GotCloud Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Genomes on the Cloud (GotCloud) Introduction=&lt;br /&gt;
&lt;br /&gt;
To handle the increasing volume of next generation sequencing and genotyping data, we created and developed software pipelines called &#039;&#039;&#039;Genomes on the Cloud (GotCloud).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
GotCloud contains Mapping &amp;amp; Variant Calling Pipelines.&lt;br /&gt;
&lt;br /&gt;
Key Features:&lt;br /&gt;
* Connects sequence analysis tools together in automated pipeline&lt;br /&gt;
** Alignment, quality control, variant calling&lt;br /&gt;
* Robust against unexpected system failure using GNU make&lt;br /&gt;
** easy restart after failure&lt;br /&gt;
* Massively parallel, can run hundreds of jobs&lt;br /&gt;
** Splits large jobs into many pieces&lt;br /&gt;
** Simplifies running on clusters&lt;br /&gt;
* Scalable to tens of thousands of samples&lt;br /&gt;
* Easy to use - Automates series of configurable steps&lt;br /&gt;
** user doesn&#039;t have to understand/configure/know the many tools required to create high quality results&lt;br /&gt;
* Available on Amazon Web Services (AWS) Elastic Compute Cloud (EC2)&lt;br /&gt;
* Run on local machines/clusters&lt;br /&gt;
* Available via Debian Packages&lt;br /&gt;
&lt;br /&gt;
GotCloud incorporates the alignment and variant calling pipelines that we have been using at UM into one easy to use, publicly available tool.  GotCloud can run on a user&#039;s computer, on an instance in a &lt;br /&gt;
compute cloud, and/or can split the work up onto a cluster of machines or instances. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Help with GotCloud ==&lt;br /&gt;
&lt;br /&gt;
Please join in the [http://groups.google.com/group/GotCloud GotCloud Google Group] to ask / discuss / comment about these pipelines.&lt;br /&gt;
&lt;br /&gt;
Currently the &amp;quot;join&amp;quot; button appears to be missing.  Click &amp;quot;NEW TOPIC&amp;quot;, then select &amp;quot;Join this group&amp;quot;.  You can then cancel the message post (or post a message).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: FAQs]] if you have any questions.  If your questions are not answered there, join the google group and ask, or email Mary Kate Wing (mktrost@umich.edu).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sequence Analysis Background Information ==&lt;br /&gt;
&lt;br /&gt;
There are many essential steps in the analysis of next generation sequence data. &lt;br /&gt;
&lt;br /&gt;
Next generation sequence data analysis starts with [http://en.wikipedia.org/wiki/FASTQ_format FASTQ files], the typical format provided from your sequencing center containing the sequence &amp;amp; base quality information for your data.&lt;br /&gt;
&lt;br /&gt;
The fastq files are processed using the alignment pipeline which finds the most likely genomic location for each read and stores that information in a [[BAM|BAM (Binary Sequence Alignment/Map format) file]].  In addition to the sequence and base quality information contained in FASTQ files, a BAM file also contains the genomic location and some additional information about the mapping.  As part of the alignment pipeline, the base qualities are adjusted to more accurately reflect the likelihood that the base is correct. &lt;br /&gt;
&lt;br /&gt;
The alignment pipeline can be skipped if you already have Deduped and Recalibrated BAM files.&lt;br /&gt;
&lt;br /&gt;
The variant calling pipeline processes the deduped and recalibrated BAMs file produced by the alignment pipeline or that you provide it, generating an initial list of polymorphic sites and genotypes stored in a [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 VCF (Variant Call Format) file].  The variant calling pipeline then filters the  variants using both hard and a [[SVM Filtering|Support Vector Machine (SVM)]].  It then uses haplotype information to refine these genotypes in an updated VCF file.&lt;br /&gt;
&lt;br /&gt;
After completing the GotCloud Variant Calling PIpeline, [[EPACTS|EPACTS (Efficient and Parallelizable Association Container Toolbox)]] can be used to perform statistical tests to identify genome-wide association from sequence data.&lt;br /&gt;
&lt;br /&gt;
[[File:GotCloudDiagram.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
= GotCloud Setup =&lt;br /&gt;
&lt;br /&gt;
You may run the GotCloud software in several modes:&lt;br /&gt;
* On your own hardware running Ubuntu or Redhat/CentOS. See the instructions about installing the software below.&lt;br /&gt;
* On an Amazon Elastic Compute Cloud using Ubuntu or Redhat/CentOS if you do not have your own set of machines.&lt;br /&gt;
** See [[Amazon Snapshot]] for more information.&lt;br /&gt;
** You can run on an EC2 cluster instance created by StarCluster. &lt;br /&gt;
&lt;br /&gt;
GotCloud has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS.  While it should work on other Linux systems, they have not yet been tested. &lt;br /&gt;
&lt;br /&gt;
== Install GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
You can install gotCloud on your system as (follow the links for the appropriate instructions):&lt;br /&gt;
* [[GotCloud: Source Releases|tar release]] - contains the uncompiled source&lt;br /&gt;
* [[GotCloud: Debian Package|debian package]] - requires root permissions to install&lt;br /&gt;
* As a red hat package - not yet available - requires root permissions to install&lt;br /&gt;
&lt;br /&gt;
[[GotCloud: Versions]] describes the changes added to each version.&lt;br /&gt;
&lt;br /&gt;
Alternatively if you are using Amazon EC2, you can use the following instructions:&lt;br /&gt;
* Create a machine instance based on the AMI we provide [[Creating an AMI on EC2]]&lt;br /&gt;
&#039;&#039;&#039;or&#039;&#039;&#039; Create an EC2 cluster instance using [[StarCluster|StarCluster]]&lt;br /&gt;
* [[AWS Resources|AWS Resources]]&lt;br /&gt;
For more information on Amazon Web Services, see: https://aws.amazon.com/&lt;br /&gt;
&lt;br /&gt;
== GotCloud Reference/Resource Files ==&lt;br /&gt;
In order to run gotCloud, you need to provide Genetic Reference and Resource Files.&lt;br /&gt;
&lt;br /&gt;
These include information about the reference sequence and dbnsp positions.&lt;br /&gt;
&lt;br /&gt;
See: [[GotCloud: Genetic Reference and Resource Files]] for information about the required files.  It contains a description of the required files, information about generating your own versions, as well as a downloadable set of files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure GotCloud ==&lt;br /&gt;
* [[Configure GotCloud|Configure Gotcloud]] for your installation&lt;br /&gt;
&lt;br /&gt;
== Running GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
* [[GotCloud: Alignment Pipeline|Alignment Pipeline]] &lt;br /&gt;
* [[GotCloud: Variant Calling Pipeline|Variant Calling Pipeline]]&lt;br /&gt;
&lt;br /&gt;
[[Tutorial: GotCloud]]&lt;br /&gt;
&lt;br /&gt;
== Development Notes ==&lt;br /&gt;
* [[Creating Packages]]&lt;br /&gt;
* Amazon EC2&lt;br /&gt;
** [[Creating a Snapshot on EC2]]&lt;br /&gt;
** [[Creating an AMI on EC2]]&lt;br /&gt;
** [[Mount S3 Volume]]&lt;br /&gt;
** Notes on sequence data preparation in [[Amazon Storage|Amazon Storage]].&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7399</id>
		<title>GotCloud</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud&amp;diff=7399"/>
		<updated>2013-05-20T17:09:39Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: /* Install GotCloud Software */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Genomes on the Cloud (GotCloud) Introduction=&lt;br /&gt;
&lt;br /&gt;
To handle the increasing volume of next generation sequencing and genotyping data, we created and developed software pipelines called &#039;&#039;&#039;Genomes on the Cloud (GotCloud).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
GotCloud contains Mapping &amp;amp; Variant Calling Pipelines.&lt;br /&gt;
&lt;br /&gt;
Key Features:&lt;br /&gt;
* Connects sequence analysis tools together in automated pipeline&lt;br /&gt;
** Alignment, quality control, variant calling&lt;br /&gt;
* Robust against unexpected system failure using GNU make&lt;br /&gt;
** easy restart after failure&lt;br /&gt;
* Massively parallel, can run hundreds of jobs&lt;br /&gt;
** Splits large jobs into many pieces&lt;br /&gt;
** Simplifies running on clusters&lt;br /&gt;
* Scalable to tens of thousands of samples&lt;br /&gt;
* Easy to use - Automates series of configurable steps&lt;br /&gt;
** user doesn&#039;t have to understand/configure/know the many tools required to create high quality results&lt;br /&gt;
* Available on Amazon Web Services (AWS) Elastic Compute Cloud (EC2)&lt;br /&gt;
* Run on local machines/clusters&lt;br /&gt;
* Available via Debian Packages&lt;br /&gt;
&lt;br /&gt;
GotCloud incorporates the alignment and variant calling pipelines that we have been using at UM into one easy to use, publicly available tool.  GotCloud can run on a user&#039;s computer, on an instance in a &lt;br /&gt;
compute cloud, and/or can split the work up onto a cluster of machines or instances. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Help with GotCloud ==&lt;br /&gt;
&lt;br /&gt;
Please join in the [http://groups.google.com/group/GotCloud GotCloud Google Group] to ask / discuss / comment about these pipelines.&lt;br /&gt;
&lt;br /&gt;
Currently the &amp;quot;join&amp;quot; button appears to be missing.  Click &amp;quot;NEW TOPIC&amp;quot;, then select &amp;quot;Join this group&amp;quot;.  You can then cancel the message post (or post a message).&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: FAQs]] if you have any questions.  If your questions are not answered there, join the google group and ask, or email Mary Kate Wing (mktrost@umich.edu).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sequence Analysis Background Information ==&lt;br /&gt;
&lt;br /&gt;
There are many essential steps in the analysis of next generation sequence data. &lt;br /&gt;
&lt;br /&gt;
Next generation sequence data analysis starts with [http://en.wikipedia.org/wiki/FASTQ_format FASTQ files], the typical format provided from your sequencing center containing the sequence &amp;amp; base quality information for your data.&lt;br /&gt;
&lt;br /&gt;
The fastq files are processed using the alignment pipeline which finds the most likely genomic location for each read and stores that information in a [[BAM|BAM (Binary Sequence Alignment/Map format) file]].  In addition to the sequence and base quality information contained in FASTQ files, a BAM file also contains the genomic location and some additional information about the mapping.  As part of the alignment pipeline, the base qualities are adjusted to more accurately reflect the likelihood that the base is correct. &lt;br /&gt;
&lt;br /&gt;
The alignment pipeline can be skipped if you already have Deduped and Recalibrated BAM files.&lt;br /&gt;
&lt;br /&gt;
The variant calling pipeline processes the deduped and recalibrated BAMs file produced by the alignment pipeline or that you provide it, generating an initial list of polymorphic sites and genotypes stored in a [http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41 VCF (Variant Call Format) file].  The variant calling pipeline then filters the  variants using both hard and a [[SVM Filtering|Support Vector Machine (SVM)]].  It then uses haplotype information to refine these genotypes in an updated VCF file.&lt;br /&gt;
&lt;br /&gt;
After completing the GotCloud Variant Calling PIpeline, [[EPACTS|EPACTS (Efficient and Parallelizable Association Container Toolbox)]] can be used to perform statistical tests to identify genome-wide association from sequence data.&lt;br /&gt;
&lt;br /&gt;
[[File:GotCloudDiagram.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
= GotCloud Setup =&lt;br /&gt;
&lt;br /&gt;
You may run the GotCloud software in several modes:&lt;br /&gt;
* On your own hardware running Ubuntu or Redhat/CentOS. See the instructions about installing the software below.&lt;br /&gt;
* On an Amazon Elastic Compute Cloud using Ubuntu or Redhat/CentOS if you do not have your own set of machines.&lt;br /&gt;
** See [[Amazon Snapshot]] for more information.&lt;br /&gt;
** You can run on an EC2 cluster instance created by StarCluster. &lt;br /&gt;
&lt;br /&gt;
GotCloud has been developed and tested on Linux Ubuntu 12.10 and 12.04.2 LTS.  While it should work on other Linux systems, they have not yet been tested. &lt;br /&gt;
&lt;br /&gt;
== Install GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
You can install gotCloud on your system as (follow the links for the appropriate instructions):&lt;br /&gt;
* [[GotCloud: Source Releases|tar release]] - contains the uncompiled source&lt;br /&gt;
* [[GotCloud: Debian Package|debian package]] - requires root permissions to install&lt;br /&gt;
* As a red hat package - not yet available - requires root permissions to install&lt;br /&gt;
&lt;br /&gt;
[[GotCloud: Versions]] describes the changes added to each version.&lt;br /&gt;
&lt;br /&gt;
Alternatively if you are using Amazon EC2, you can use the following instructions:&lt;br /&gt;
* Create a machine instance based on the AMI we provide [[Creating an AMI on EC2]]&lt;br /&gt;
* Create an EC2 cluster instance using [[StarCluster|StarCluster]]&lt;br /&gt;
* [[AWS Resources|AWS Resources]]&lt;br /&gt;
For more information on Amazon Web Services, see: https://aws.amazon.com/&lt;br /&gt;
&lt;br /&gt;
== GotCloud Reference/Resource Files ==&lt;br /&gt;
In order to run gotCloud, you need to provide Genetic Reference and Resource Files.&lt;br /&gt;
&lt;br /&gt;
These include information about the reference sequence and dbnsp positions.&lt;br /&gt;
&lt;br /&gt;
See: [[GotCloud: Genetic Reference and Resource Files]] for information about the required files.  It contains a description of the required files, information about generating your own versions, as well as a downloadable set of files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configure GotCloud ==&lt;br /&gt;
* [[Configure GotCloud|Configure Gotcloud]] for your installation&lt;br /&gt;
&lt;br /&gt;
== Running GotCloud Software ==&lt;br /&gt;
&lt;br /&gt;
* [[GotCloud: Alignment Pipeline|Alignment Pipeline]] &lt;br /&gt;
* [[GotCloud: Variant Calling Pipeline|Variant Calling Pipeline]]&lt;br /&gt;
&lt;br /&gt;
[[Tutorial: GotCloud]]&lt;br /&gt;
&lt;br /&gt;
== Development Notes ==&lt;br /&gt;
* [[Creating Packages]]&lt;br /&gt;
* Amazon EC2&lt;br /&gt;
** [[Creating a Snapshot on EC2]]&lt;br /&gt;
** [[Creating an AMI on EC2]]&lt;br /&gt;
** [[Mount S3 Volume]]&lt;br /&gt;
** Notes on sequence data preparation in [[Amazon Storage|Amazon Storage]].&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=7398</id>
		<title>GotCloud: Binary Releases</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=GotCloud:_Binary_Releases&amp;diff=7398"/>
		<updated>2013-05-20T17:07:46Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=GotCloud Debian Packages=&lt;br /&gt;
&lt;br /&gt;
==Installing Debian Packages==&lt;br /&gt;
&lt;br /&gt;
Back to parent: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The GotCloud software is distributed in several Debian packages. These can be installed on traditional Debian systems as well as Ubuntu (where it has been tested). The software should run on all versions from Ubuntu Lucid (9.04) through Oneric (12.10). It has not been tested on other Debian systems, but it is likely it will work on those systems too. This software should work on any Unix system - only requiring recompilation from the source files.&lt;br /&gt;
&lt;br /&gt;
The software is distributed in a single package including both the &#039;&#039;aligner&#039;&#039; and &#039;&#039;variant caller&#039;&#039;.  There is also a package to test the installation. &lt;br /&gt;
&lt;br /&gt;
The debian files are available for download from ftp://share.sph.umich.edu/gotcloud/ :&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  gotcloud-bin_latest_amd64.deb          aligner and variant caller&lt;br /&gt;
  gotcloud-test_latest_amd64.deb         test data for software&lt;br /&gt;
  M.n/gotcloud-bin_M.n_amd64.deb         version M.n of aligner and variant caller&lt;br /&gt;
  M.n/gotcloud-test_M.n_amd64.deb        version M.n of test data for software&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
Where &#039;M.n&#039; is replaced with the specific version numbers.&lt;br /&gt;
&lt;br /&gt;
See [[GotCloud: Versions]] for details on the changes for each version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Fetch the GotCloud Debian Packages===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #  The easiest way:&lt;br /&gt;
  &amp;lt;b&amp;gt;mkdir debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;cd debs&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;wget --retr-symlinks ftp://share.sph.umich.edu/gotcloud/gotcloud\*latest\*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  #  Another way:&lt;br /&gt;
  &amp;lt;b&amp;gt;ftp share.sph.umich.edu&amp;lt;/b&amp;gt;&lt;br /&gt;
  Connected to share.sph.umich.edu.&lt;br /&gt;
  220 (vsFTPd 2.3.5)&lt;br /&gt;
  Name (share.sph.umich.edu:tpg): &amp;lt;b&amp;gt;anonymous&amp;lt;/b&amp;gt;&lt;br /&gt;
  230 Login successful.&lt;br /&gt;
  Remote system type is UNIX.&lt;br /&gt;
  Using binary mode to transfer files.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;prompt&amp;lt;/b&amp;gt;&lt;br /&gt;
  Interactive mode off.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;cd gotcloud&amp;lt;/b&amp;gt;&lt;br /&gt;
  250 Directory successfully changed.&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;mget gotcloud*latest*.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  ftp&amp;gt; &amp;lt;b&amp;gt;quit&amp;lt;/b&amp;gt;&lt;br /&gt;
  221 Goodbye.&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Install the GotCloud Debian bin Package===&lt;br /&gt;
&lt;br /&gt;
Installation requires one to have &amp;lt;b&amp;gt;root access&amp;lt;/b&amp;gt; and uses &amp;lt;b&amp;gt;dpkg&amp;lt;/b&amp;gt; which Debian users will recognize.&lt;br /&gt;
We recommend you install the first one separately so you can easily&lt;br /&gt;
identify messages about prerequisite files that need to be installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-bin_*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-bin.&lt;br /&gt;
  (Reading database ... 25372 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-bin (from .../gotcloud-bin_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-bin (1.0) ...&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;java&#039; is not installed, do &#039;sudo apt-get install java-common default-jre&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;make&#039; is not installed, do &#039;sudo apt-get install make&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #============================================================&lt;br /&gt;
  #   &#039;libssl0.9.8&#039; is not installed, do &#039;sudo apt-get install libssl0.9.8&#039;&lt;br /&gt;
  #============================================================&lt;br /&gt;
  ...&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If there were messages about missing packages, install them now&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get update&amp;lt;/b&amp;gt;&lt;br /&gt;
  &amp;lt;b&amp;gt;sudo apt-get install java-common default-jre make libssl0.9.8&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Testing the GotCloud Installation===&lt;br /&gt;
&lt;br /&gt;
We recommend that at least the first time, you install the test packages so you can&lt;br /&gt;
conveniently test the installation and make sure everything runs smoothly.&lt;br /&gt;
The tests run within a few minutes and are self checking, so unless you see obvious errors,&lt;br /&gt;
you can be reasonably sure everything is set up properly.&lt;br /&gt;
You only need to do this once, unless you have made significant changes to your Unix system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;  &lt;br /&gt;
  &amp;lt;b&amp;gt;sudo dpkg -i ~/debs/gotcloud-test*_amd64.deb&amp;lt;/b&amp;gt;&lt;br /&gt;
  Selecting previously unselected package gotcloud-test.&lt;br /&gt;
  (Reading database ... 27376 files and directories currently installed.)&lt;br /&gt;
  Unpacking gotcloud-test (from .../gotcloud-test_1.0_amd64.deb) ...&lt;br /&gt;
  Setting up gotcloud-test (1.0) ...&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  #   GotCloud README&lt;br /&gt;
  #======================================================================&lt;br /&gt;
  To test the GotCloud aligner, run:&lt;br /&gt;
    gotcloud align --test ~/testalign&lt;br /&gt;
  This will create/clear the output directory ~/testalign.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
  &lt;br /&gt;
  To test the GotCloud snp caller, run:&lt;br /&gt;
    gotcloud snpcall --test ~/testsnp&lt;br /&gt;
  This will create/clear the output directory ~/testsnp.&lt;br /&gt;
  Test results and a log file are put in this directory.&lt;br /&gt;
  Results are self-checked and if errors should occur, it will be obvious.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as a normal user (ubuntu, not as root) and do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  #   Test the aligner (2 minutes +/- 1 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud align -test ~/testalign&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testalign/aligntest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testalign/aligntest.log&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample2.Makefile&lt;br /&gt;
  Created /home/myuser/testalign/aligntest/Makefiles/align_Sample1.Makefile&lt;br /&gt;
  ---------------------------------------------------------------------&lt;br /&gt;
  Waiting while samples are processed...&lt;br /&gt;
  Processing finished in 63 secs with no errors reported&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testalign/diff_logfiles_results.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testalign/aligntest&#039; and &#039;/usr/local/gotcloud/test/align/expected/aligntest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testalign&#039;&#039;&#039;              # If no error&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  #   Test snp calling  (5 minutes +/-2 minute)&lt;br /&gt;
  &#039;&#039;&#039;/usr/local/gotcloud/bin/gotcloud snpcall --test ~/testsnp&#039;&#039;&#039;&lt;br /&gt;
  Removing any previous results from: /home/myuser/testsnp/umaketest&lt;br /&gt;
  Running GOTCLOUD TEST, test log in: /home/myuser/testsnp/umaketest.log&lt;br /&gt;
  Results from DIFF will be in /home/myuser/testsnp/diff_logfiles_results_umake.txt&lt;br /&gt;
  Successful comparison of data in &#039;/home/myuser/testsnp/umaketest&#039; and &#039;/usr/local/gotcloud/test/umake/expected/umaketest&#039;&lt;br /&gt;
  Successfully ran the test case, congratulations!&lt;br /&gt;
  &#039;&#039;&#039;rm -rf ~/testsnp&#039;&#039;&#039;              # If no error&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Creating Your Own Debian Package From the Source==&lt;br /&gt;
&lt;br /&gt;
The process to create your own Debian package from the source files is straight-forward&lt;br /&gt;
for Debian users. The source files actually contain source for the executables,&lt;br /&gt;
the test data and the scripts and configuration files used by the users.&lt;br /&gt;
These steps build two debian package files - one for the test data (test) and one for the&lt;br /&gt;
binaries and scripts (bin).&lt;br /&gt;
&lt;br /&gt;
In order to simplify the building of two packages, the debian directory contains the control files for both packages (bin and test).&lt;br /&gt;
This requires that the normal control files (e.g. rules) be named rules.test and rules.bin&lt;br /&gt;
and the shell script (makedeb.sh) be aware of this nuance.&lt;br /&gt;
In addition the shell script can make an RPM file (using alien) and will help manage&lt;br /&gt;
the version for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Including the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 #  The easiest way:&lt;br /&gt;
 wget ftp://share.sph.umich.edu/gotcloud/gotcloudWithTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
 #  Another way:&lt;br /&gt;
 ftp share.sph.umich.edu&lt;br /&gt;
 Connected to share.sph.umich.edu.&lt;br /&gt;
 220 (vsFTPd 2.3.5)&lt;br /&gt;
 Name (share.sph.umich.edu:tpg): anonymous&lt;br /&gt;
 230 Login successful.&lt;br /&gt;
 Remote system type is UNIX.&lt;br /&gt;
 Using binary mode to transfer files.&lt;br /&gt;
 ftp&amp;gt; prompt&lt;br /&gt;
 Interactive mode off.&lt;br /&gt;
 ftp&amp;gt; cd gotcloud&lt;br /&gt;
 250 Directory successfully changed.&lt;br /&gt;
 ftp&amp;gt; get gotcloudWithTest_latest.tgz&lt;br /&gt;
 ftp&amp;gt; quit&lt;br /&gt;
 221 Goodbye.&lt;br /&gt;
&lt;br /&gt;
 #  Extract the source files&lt;br /&gt;
 cd ~/src                 # Or wherever you want the source files&lt;br /&gt;
 tar xzf path/gotcloudWithTest_latest.tgz&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch the Source Excluding the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloud_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fetch just the Test Files&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Follow the above logic, but use: gotcloudTest_latest.tgz&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Create the Debian Package Files===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;cd ~/src&#039;&#039;&#039;                 # Or wherever you put the source files&lt;br /&gt;
 &#039;&#039;&#039;cd gotcloud*&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  bin  =&#039;&#039;&#039; &lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export C...&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-bin; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-bin&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-bin_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Converting symlinks into the actual executables to be distributed&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-bin&#039; in `./gotcloud-bin_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 3592780 Feb 19 11:59 gotcloud-bin_1.01_amd64.deb&lt;br /&gt;
 &lt;br /&gt;
 #   Add -replace only if rebuilding the same version&lt;br /&gt;
 &#039;&#039;&#039;debian/makedeb.sh  test =&#039;&#039;&#039;&lt;br /&gt;
  dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 ...&lt;br /&gt;
  dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  Generate package: cd gotcloud-test; dpkg-buildpackage -b -us -uc -rfakeroot&lt;br /&gt;
  ===&amp;gt; Version &#039;1.01 of &#039;gotcloud-test&#039; will install into &#039;usr/local/gotcloud&#039;&lt;br /&gt;
  install -d debian/tmp/DEBIAN&lt;br /&gt;
  cp debian/control debian/postinst debian/postrm debian/tmp/DEBIAN&lt;br /&gt;
  install -d debian/tmp/usr/share/doc/gotcloud-test_1.01&lt;br /&gt;
  sed -e s/99.99/1.01/g &amp;lt; debian/changelog &amp;gt; debian/changelog.new&lt;br /&gt;
    [lines deleted]&lt;br /&gt;
  dpkg-deb: building package `gotcloud-test&#039; in `./gotcloud-test_1.01_amd64.deb&#039;.&lt;br /&gt;
  Package file now in /home/myuser/dev/gotcloud&lt;br /&gt;
  -rw-r--r-- 1 myuser myuser 433269556 Feb 19 13:49 gotcloud-test_1.01_amd64.deb&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The deb files will be created in the directory above the debian directory  (e.g. gotcloud)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7397</id>
		<title>Amazon Snapshot</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7397"/>
		<updated>2013-05-20T17:06:39Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the beginning: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We no longer use a snapshot.&#039;&#039;&#039; It is very likely that you will need quite a few packages installed&lt;br /&gt;
so that you can compile your software, access the EC2 application data or access data on S3.&lt;br /&gt;
It just seemed foolish to not make these software available in an AMI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GotCloud is made available in various forms.&lt;br /&gt;
It is distributed as conventional packages for Ubuntu and as compress TAR files for others.&lt;br /&gt;
In addition the source is available from github.&lt;br /&gt;
In Amazon Web Services the software is made available as an Amazon Machine Instance (AMI).&lt;br /&gt;
&lt;br /&gt;
The GotCloud software itself only requires a few packages to be installed for Ubuntu installations&lt;br /&gt;
(java-common default-jre make libssl0.9.8).&lt;br /&gt;
However, there are a number of things you may well want to do in getting your data&lt;br /&gt;
ready for processing (access data on S3 storage, compile GotCloud or others, or&lt;br /&gt;
access the EC2 application data).&lt;br /&gt;
Assuming this is the case, the GotCloud AMI has installed these packages on Ubunutu.&lt;br /&gt;
If you need to run on some other distribution, you may need to install their packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will almost certainly need to fetch and install your own reference files - regardless&lt;br /&gt;
of the details of the system you are using.&lt;br /&gt;
Finally, you&#039;ll need access to your FASTQ files - either copied to the Amazon instance&lt;br /&gt;
or perhaps accessible from S3 storage.&lt;br /&gt;
&lt;br /&gt;
If the GotCloud instance is unacceptable for some reason, you may install the &lt;br /&gt;
software and reference files wherever you&#039;d like&lt;br /&gt;
(read about this in [[Pipeline_Debian_Package|Installing from a Debian package]]).&lt;br /&gt;
&lt;br /&gt;
Your first task is get an AWS account and keys so that you can use the AWS EC2 Console Dashboard &lt;br /&gt;
(see https://console.aws.amazon.com/ec2/).&lt;br /&gt;
From here you can launch instances prepared by others or create your own.&lt;br /&gt;
We cannot assist in this step - Amazon has plenty of documentation.&lt;br /&gt;
Once you are at the AWS EC2 Console Dashboard, you&#039;re almost ready for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Your First Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to know some details when launching an instance:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Launch an Instance&#039;&#039;&#039; - use the GotCloud instance running 64 bit software.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Instance size&#039;&#039;&#039;  (memory and number of processors). The pipeline software will require at least 4GB of memory (&#039;&#039;type m1.medium&#039;&#039;) and can use as many processors as is available.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller (see below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Prepare Your Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will also want additional storage volumes for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Local Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller will likely be far larger than the system you are creating.&lt;br /&gt;
You&#039;ll need to create EBS Volumes for the input and output of the aligner and SNP caller.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Prepare Your Storage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
These can be quite substantial and because of that we recommend you create separate volumes like this:&lt;br /&gt;
&lt;br /&gt;
* Your &#039;&#039;&#039;input FASTQ&#039;&#039;&#039; files for the aligner.&lt;br /&gt;
This may have been done for you by some vendor when they put your FASTQ data on an S3 volume.&lt;br /&gt;
If so, your vendor will need to provide you with the details of how to access your FASTQ files.&lt;br /&gt;
If your FASTQ files are not in S3 storage, you&#039;ll have to create a volume for this and copy your data into it.&lt;br /&gt;
This can take a very long time.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;output of the aligner&#039;&#039;&#039; (BAM files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;intermediate files of the SNP caller&#039;&#039;&#039; (GLF files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;final output of the SNP caller&#039;&#039;&#039; (VCF files)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7396</id>
		<title>Amazon Snapshot</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7396"/>
		<updated>2013-05-20T17:03:57Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the beginning: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
GotCloud is made available in various forms.&lt;br /&gt;
It is distributed as conventional packages for Ubuntu and as compress TAR files for others.&lt;br /&gt;
In addition the source is available from github.&lt;br /&gt;
In Amazon Web Services the software is made available as an Amazon Machine Instance (AMI).&lt;br /&gt;
&lt;br /&gt;
The GotCloud software itself only requires a few packages to be installed for Ubuntu installations&lt;br /&gt;
(java-common default-jre make libssl0.9.8).&lt;br /&gt;
However, there are a number of things you may well want to do in getting your data&lt;br /&gt;
ready for processing (access data on S3 storage, compile GotCloud or others, or&lt;br /&gt;
access the EC2 application data).&lt;br /&gt;
Assuming this is the case, the GotCloud AMI has installed these packages on Ubunutu.&lt;br /&gt;
If you need to run on some other distribution, you may need to install their packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will almost certainly need to fetch and install your own reference files - regardless&lt;br /&gt;
of the details of the system you are using.&lt;br /&gt;
Finally, you&#039;ll need access to your FASTQ files - either copied to the Amazon instance&lt;br /&gt;
or perhaps accessible from S3 storage.&lt;br /&gt;
&lt;br /&gt;
If the GotCloud instance is unacceptable for some reason, you may install the &lt;br /&gt;
software and reference files wherever you&#039;d like&lt;br /&gt;
(read about this in [[Pipeline_Debian_Package|Installing from a Debian package]]).&lt;br /&gt;
&lt;br /&gt;
Your first task is get an AWS account and keys so that you can use the AWS EC2 Console Dashboard &lt;br /&gt;
(see https://console.aws.amazon.com/ec2/).&lt;br /&gt;
From here you can launch instances prepared by others or create your own.&lt;br /&gt;
We cannot assist in this step - Amazon has plenty of documentation.&lt;br /&gt;
Once you are at the AWS EC2 Console Dashboard, you&#039;re almost ready for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Your First Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to know some details when launching an instance:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Launch an Instance&#039;&#039;&#039; - use the GotCloud instance running 64 bit software.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Instance size&#039;&#039;&#039;  (memory and number of processors). The pipeline software will require at least 4GB of memory (&#039;&#039;type m1.medium&#039;&#039;) and can use as many processors as is available.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller (see below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Prepare Your Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will also want additional storage volumes for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Local Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller will likely be far larger than the system you are creating.&lt;br /&gt;
You&#039;ll need to create EBS Volumes for the input and output of the aligner and SNP caller.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Prepare Your Storage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
These can be quite substantial and because of that we recommend you create separate volumes like this:&lt;br /&gt;
&lt;br /&gt;
* Your &#039;&#039;&#039;input FASTQ&#039;&#039;&#039; files for the aligner.&lt;br /&gt;
This may have been done for you by some vendor when they put your FASTQ data on an S3 volume.&lt;br /&gt;
If so, your vendor will need to provide you with the details of how to access your FASTQ files.&lt;br /&gt;
If your FASTQ files are not in S3 storage, you&#039;ll have to create a volume for this and copy your data into it.&lt;br /&gt;
This can take a very long time.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;output of the aligner&#039;&#039;&#039; (BAM files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;intermediate files of the SNP caller&#039;&#039;&#039; (GLF files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;final output of the SNP caller&#039;&#039;&#039; (VCF files)&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
	<entry>
		<id>http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7395</id>
		<title>Amazon Snapshot</title>
		<link rel="alternate" type="text/html" href="http://genome.sph.umich.edu/w/index.php?title=Amazon_Snapshot&amp;diff=7395"/>
		<updated>2013-05-20T16:58:28Z</updated>

		<summary type="html">&lt;p&gt;Terry Gliedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Back to the beginning: [[GotCloud]]&lt;br /&gt;
&lt;br /&gt;
GotCloud is made available in various forms.&lt;br /&gt;
It is distributed as conventional packages for Ubuntu and as compress TAR files for others.&lt;br /&gt;
In addition the source is available from github.&lt;br /&gt;
In Amazon Web Services the software is made available as an Amazon Machine Instance (AMI).&lt;br /&gt;
&lt;br /&gt;
The GotCloud software itself only requires a few packages to be installed for Ubuntu installations&lt;br /&gt;
(java-common default-jre make libssl0.9.8).&lt;br /&gt;
However, there are a number of things you may well want to do in getting your data&lt;br /&gt;
ready for processing (access data on S3 storage, compile GotCloud or others, or&lt;br /&gt;
access the EC2 application data).&lt;br /&gt;
Assuming this is the case, the GotCloud AMI has installed these packages on Ubunutu.&lt;br /&gt;
If you need to run on some other distribution, you may need to install their packages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo apt-get install java-common default-jre make libssl0.9.8 &lt;br /&gt;
  sudo apt-get install libnet-amazon-ec2-perl&lt;br /&gt;
  sudo apt-get install make g++ libcurl4-openssl-dev libssl-dev libxml2-dev libfuse-dev&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will almost certainly need to fetch and install your own reference files - regardless&lt;br /&gt;
of the details of the system you are using.&lt;br /&gt;
Finally, you&#039;ll need access to your FASTQ files - either copied to the Amazon instance&lt;br /&gt;
or perhaps accessible from S3 storage.&lt;br /&gt;
&lt;br /&gt;
If the GotCloud instance is unacceptable for some reason, you may install the &lt;br /&gt;
software and reference files wherever you&#039;d like&lt;br /&gt;
(read about this in [[Pipeline_Debian_Package|Installing from a Debian package]]).&lt;br /&gt;
&lt;br /&gt;
Your first task is get an AWS account and keys so that you can use the AWS EC2 Console Dashboard &lt;br /&gt;
(see https://console.aws.amazon.com/ec2/).&lt;br /&gt;
From here you can launch instances prepared by others or create your own.&lt;br /&gt;
We cannot assist in this step - Amazon has plenty of documentation.&lt;br /&gt;
Once you are at the AWS EC2 Console Dashboard, you&#039;re almost ready for GotCloud.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Your First Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll need to know some details when launching an instance:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Launch an Instance&#039;&#039;&#039; - use the GotCloud instance running 64 bit software.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Instance size&#039;&#039;&#039;  (memory and number of processors). The pipeline software will require at least 4GB of memory (&#039;&#039;type m1.medium&#039;&#039;) and can use as many processors as is available.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller (see below)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Prepare Your Instance&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You will also want additional storage volumes for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Local Storage&#039;&#039;&#039; for the instance refers to the size for root (/) partition. This can be quite small, as little as 8GB can work. Of course if you intend to bring other files/programs to the instance, you may need to increase this to something a bit larger (e.g. 30GB).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data Storage&#039;&#039;&#039; for the aligner or SNP caller will likely be far larger than the system you are creating.&lt;br /&gt;
You&#039;ll need to create EBS Volumes for the input and output of the aligner and SNP caller.&lt;br /&gt;
These can be quite substantial and because of that we recommend you create separate volumes like this:&lt;br /&gt;
&lt;br /&gt;
* Your &#039;&#039;&#039;input FASTQ&#039;&#039;&#039; files for the aligner. This may have been done for you by some vendor when they put your FASTQ data on an S3 volume. If so, your vendor will need to provide you with the details of how to access your FASTQ files.&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;output of the aligner&#039;&#039;&#039; (BAM files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;intermediate files of the SNP caller&#039;&#039;&#039; (GLF files)&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;final output of the SNP caller&#039;&#039;&#039; (VCF files)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  wget -qO -  share.sph.umich.edu:gotcloud/snapshots.txt&lt;br /&gt;
 &lt;br /&gt;
  #                           GotCloud SnapShot List&lt;br /&gt;
  #&lt;br /&gt;
  #   Create an EBS volume from these snapshots. Use the AWS console or&lt;br /&gt;
  #   with an ec2-api-tools command:&lt;br /&gt;
  #&lt;br /&gt;
  #     ec2-create-volume -K ~/ec2/EC2-X509-private_key.pem \&lt;br /&gt;
  #       -C ~/ec2/EC2-X509-cert.pem -s 40 \&lt;br /&gt;
  #       --snapshot snap-14ea7632 --region us-west-2 -z us-west-2a&lt;br /&gt;
  #&lt;br /&gt;
  #                         Availability&lt;br /&gt;
  #  Zone         Snapshot       Size&lt;br /&gt;
  us-west-2a     snap-14ea7632   40GB&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create a device which you need to mount in your instance.&lt;br /&gt;
This will create a device like /dev/sdf, which unfortunately actually translates to&lt;br /&gt;
the device /dev/xvdf in your Linux instance. Once the volume is ready, mount it&lt;br /&gt;
by logging into your instance with ssh and issuing the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
  sudo mkdir -p /gotcloud&lt;br /&gt;
  sudo mount /dev/xvdf  /gotcloud    # or whatever device yours is&lt;br /&gt;
  df -h&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will make the GotCloud software available under the path /gotcloud/bin etc.&lt;br /&gt;
Each time your instance is started, you&#039;ll need to mount this volume.&lt;br /&gt;
You may want to create a small shell script to mount the device.&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;Your Data&#039;&#039;&#039; the storage volumes will vary based on what you data you have.&lt;br /&gt;
The sequence data might already exist, provided by a vendor who created the sequence data.&lt;br /&gt;
If not, you&#039;ll have to create a volume for this and copy your data into it.&lt;br /&gt;
You&#039;ll have to mount volumes for all three types of data (sequence, aligner and umake).&lt;br /&gt;
&lt;br /&gt;
You should expect the three data volumes will all need to be the same size. That is, if your sequence data is 300GB, then you&#039;ll need an additional 300GB for the aligner output and then another 300GB of storage for the umake output. We suggest you consider making each set of data be separate volumes.&lt;br /&gt;
&lt;br /&gt;
You may also find that your sequence data is too large to be easily handled in one go,&lt;br /&gt;
so you might choose to only use the aligner/umake on part of your sequence data, capture the files&lt;br /&gt;
of interest from umake, and then go back and rerun the software with the next bit of sequence data.&lt;/div&gt;</summary>
		<author><name>Terry Gliedt</name></author>
	</entry>
</feed>