1) Sign up to amazon aws here http://aws.amazon.com/. You will be asked to put in your credit card details, but costs are likely to be minimal ( a guess would be anywhere from no charge to $6 per month in extreme use cases). When I signed up amazon gave free usage for elastic beanstalk (the service we want to use) for the first year – this offer may still be available. Even if they were charging me the charges were between 0-11 cents per month.

2) click on this link to download the MyDasTemplate.war file http://mydas.googlecode.com/svn/repository/uk/ac/ebi/mydas/template/MyDasTemplate/1.6.1/MyDasTemplate-1.6.1.war once downloaded you will need to unzip it. For mac I go to the file in finder and right click and select open with and select “stuffit” this application then unpacks the .war file in the directory the original file is in.

3) replace the person1.txt file with your own genotype data file (make sure there are no headers – just the data). The beginning of the file should look like this:

rs3094315 1 742429 AA
rs12562034 1 758311 GG
rs3934834 1 995669 CT

Where the columns are seperated by tabs and the colums represent the snp id, chromosome, position, genotype.

Make sure you rename your file to be the same as person1.txt

4) Edit the MydasServerConfig.xml file (you can use a normal text editor although an xml editor is better as it will highlight mistakes that are easily made). Go to the person1 data source (tip you can search for <datasource uri=”person1) then edit the query_uri urls replacing mychoiceofname with what you want (I recommend not using your name unless you the world to know what diseases you may be susceptible to etc…

5) repackage the MydasTemplate directory contents into a new .war file named as your substitution for mychoiceofname.

In unix like systems such as macosx you can cd to inside the directory MydasTemplate and run the follwing command:

jar cvf ../mychoiceofname.war *

6) To upload your application file (the .war file) Go to http://aws.amazon.com/ with your web browser and use the “sign in to the console” button at the bottom right. The AWS console will look like this:

AWS console

select “elastic benstalk” tab, “create new application” name it e.g. mychoiceofname click on the “choose file” button and select the .war file you have created earlier. Should look like this:

Application Details

choose envirnoment name and ulr like so:

Environment

then press continue.

you can type in /das/sources for the application health check url like so:

Configuration Details

click finish on the next screen that will look something like this:

Review

wait a few minutes why the virtual machine and application are set up.

When the application icon is green you can test your das server by putting this url into a browser:

The id element content indicates which server you wish these username and passwords to apply to. This corresponds to the id element in the following xml in your pom.xml file for the project which is in the needs to be put in the <distributionManagement> element. Also make sure you have the https note the S in the front of the url:

To get a commiter version of a project e.g. mydas using eclipse and SVN subclipse go to the svn exploring view and add an https note the S on the end. Check out a project as usual – no password needed to checkout, but when commiting eclipse will then ask for a username and password because of the “s” in https.

note for google code login to your normal gmail account at https://code.google.com and go to the settings tab to get your username and password which will be the same for all google code hosted projects you are involved in.

-create a .war file for MyDAS as per the normal way. Using maven to change the name to something other than MyDasTemplate.war change

<finalName>MyDasTemplate</finalName> to what you want your url to be e.g. genotype1 and then run the maven package command. Once this is done you pick up the genotype1.war from the target directory. You will need to call your file something else as this will affect the url which has to be unique. For this example the url will be http://genotype1.elasticbeanstalk.com/das/sources or for the example DAS data source http://genotype1.elasticbeanstalk.com/das/examplegff/features?segment=L47615.1