Setting Up a Module Repository  Print-icon

In this article we will go through the manual process of setting up your own module repository to connect to your GenePattern server. This may be desirable if you are developing many GenePattern modules and are looking for a way to control versions in both development and pre-release stages. This mechanism also allows for a centralized distribution of modules, both during development and at release.

The following steps describe the setup process:

  1. Download the following files:
  2. Put the properties file somewhere and remember the path.
    • Edit the URLs to that of the Tomcat you will run it in and the paths to where you would like the modules it serves to be stored.
    • Create the top level directories such that:
      • there is a directory for each of prod/dev and modules/suites/patches
      • the cache is the place the XML file (listing the modules) is stored in the file system
      • the prod.wi_ip_subnet and dev.wi_ip_subnet entries are changed to your local IP address subnet (ask your systems dept if you don't know how to find this)
      • (Note: This is done to prevent people from 'outside' uploading modules. Only clients with IP addresses in this range can upload new modules to the repository.)
  3. Take the WAR file and unzip it into a Tomcat/webapps directory (note you need to open the file, deploying it as a WAR will not work).
  4. Edit the WEB-INF/web.xml file for the webapp.
    • Set the path to the properties file to match where you have your properties file
  5. Start Tomcat.
  6. Navigate to <your URL>/gpModuleRepository/uploadForm.jsp.
  7. Upload a module to the 'dev' environment.
  8. Check the directory you defined in the properties to see that the modules subdirectories were created and the unzipped module file is there.
  9. Navigate to <your URL>/gpModuleRepository?env=dev and check that the uploaded module is there.
  10. Open a browser window to your GenePattern server and navigate to Administration/Server Settings/Repositories.
  11. Enter the URL for your new module repository and 'Save'.
  12. Navigate to Modules & Pipelines>Install from Repository and check all of the filtering checkboxes at the top of the page.
  13. Verify that GenePattern can see all the modules you expect to be in your module repository.
  14. Select a module and test an installation.

<< Using ComparativeMarkerSelection for Differential Expression Analysis Up Creating a GenePattern Module >>

Updated on July 11, 2012 15:55