Difference between revisions of "Running GenMAPP Builder"
Kdahlquist (Talk | contribs) (→GOA: checked and updated links) |
Kdahlquist (Talk | contribs) (→GO OBO-XML: fixed link, elevated extraction of files to header level) |
||
Line 47: | Line 47: | ||
=== GO OBO-XML === | === GO OBO-XML === | ||
− | * Download the GO OBO-XML formatted file from the [http:// | + | * Download the GO OBO-XML formatted file from the [http://geneontology.org/page/download-ontology#Legacy_Downloads Gene Ontology download page]. Click on the link for "obo-xml.gz" under the heading "Legacy Downloads." |
− | + | ** This file is updated daily. You can get the day/time that the file was created from the file properties after you have unzipped the file. | |
− | ** This file is updated daily | + | |
+ | === Extract the UniProt XML and GO OBO-XML files === | ||
* Extract the UniProt XML and GO OBO-XML .gz files using [http://www.7-zip.org/ 7-zip] or other utility. | * Extract the UniProt XML and GO OBO-XML .gz files using [http://www.7-zip.org/ 7-zip] or other utility. |
Revision as of 18:04, 27 October 2015
This tutorial will take you through all of the steps for running GenMAPP Builder for the first time.
Contents
- 1 Pre-requisites
- 2 Download and Extract Data Source Files
- 3 Create New Database in PostgreSQL
- 4 Configuring GenMAPP Builder to Connect to your PostgreSQL Database
- 5 Importing Data into the PostgreSQL Database
- 6 Exporting a GenMAPP Gene Database (.gdb)
- 7 Checking the Quality of your Exported Gene Database
Pre-requisites
This tutorial assumes that you are working in a Windows environment. While it is possible to run GenMAPP Builder under the Mac or Linux OS, the end product, a GenMAPP-compatible Gene Database (.gdb), can only be used with the GenMAPP program, which can only be run on Windows. This set of software has already been installed on the computers in the Seaver 120 computer lab. If you want to perform this procedure on your own machine, you must set up your working environment with:
- Any tool that can unpack .gz and .zip files
- We use 7-zip
- Note that we have found that the native Windows utility cannot reliably unpack .gz files or .zip files containing .jar files.
- PostgreSQL on Windows (http://www.enterprisedb.com/products-services-training/pgdownload)
- This tutorial was written using PostgreSQL 9.4.x.
- GenMAPP Builder (https://sourceforge.net/projects/xmlpipedb/files/)
- Java JDK 1.8 64-bit
- Download page
- File to download is: jdk-8u65-windows-x64.exe
- GenMAPP 2 can be downloaded here. The file to download is "GenMAPPv2Setup.exe".
- XMLPipeDB match utility (https://sourceforge.net/projects/xmlpipedb/files/) for counting IDs in XML files
- Microsoft Access or any other tool that can read .mdb files
Download and Extract Data Source Files
- Download UniProt XML, GOA, and GO OBO-XML files.
UniProt XML
- Go to the UniProt Complete Proteomes page.
- Browse to the complete proteome download page for your species of interest. For example, to get to Vibrio cholerae page, first filter the list by clicking on the link for "Bacteria" under the "Superkingdom" heading.
- Further filter the results for those species with a "Reference proteome".
- Scroll through the results (you might need to click through several pages) until you find your organism of interest, e.g. Vibrio cholerae serotype O1 (strain ATCC 39315 / El Tor Inaba N16961).
- Click on the link for "UniProtKB", e.g. Vibrio cholerae serotype O1 (strain ATCC 39315 / El Tor Inaba N16961).
- Click the "Download" button at the top of the page. It will open a small dialog box. You need to select the following options:
- Select the radio button to "Download all"
- Choose "XML" from the "Format" drop-down menu.
- Select the radio button for "Compressed" format.
- Click the "Go" button.
GOA
- This is the UniProt-GOA home page.
- The current and previous UniProt-GOA files can be downloaded from the UniProt-GOA ftp site.
- In the directory that appears, click the link to the "proteomes" directory.
- Note that it may take some time to load this page.
- Find your organism of interest and right-click on the link to download the GO annotations and select "Save target as" or "Save link as" and save the GOA file. For example, this is the link for Vibrio cholerae.
- Note: Since the GOA file is a text file, your browser will not automatically download it when you left-click on the link. Instead, it will try to open the file in your browser window. Since it is a large file, this could take a long time if your internet connection is slow.
- The version information can be found on displayed in the ftp file directory under the "Last modified" column. You will need this information for your Gene Database Testing Report.
GO OBO-XML
- Download the GO OBO-XML formatted file from the Gene Ontology download page. Click on the link for "obo-xml.gz" under the heading "Legacy Downloads."
- This file is updated daily. You can get the day/time that the file was created from the file properties after you have unzipped the file.
Extract the UniProt XML and GO OBO-XML files
- Extract the UniProt XML and GO OBO-XML .gz files using 7-zip or other utility.
Create New Database in PostgreSQL
NOTE: if you have already performed this step and want to use GenMAPP Builder functions with a database you previously created in PostgreSQL, you can skip this step.
- Launch pgAdmin III.
- Double-click on PostgreSQL 9.2 (localhost:5432) on the upper left hand side of the window.
- This is the equivalent of connecting you to the server and you may be asked for a password at this point.
- Right click on "Databases" and Select "New Database..."
- Give the database a name in the "Name" field and click OK.
- Click on your new database name in the treeview on the left.
- Click on the SQL icon in the toolbar at the top of the window.
- The SQL Editor tab will be open and there may be leftover query text in the upper pane. Delete this text. You are now going to use an XMLPipeDB query to create the tables in the database.
- Click on the Open File icon in the toolbar (the yellow folder with an arrow).
- Navigate to the folder in which you unzipped GenMAPP Builder.
- Open the sql folder and open the file gmbuilder.sql. You should see SQL code appear in the SQL Editor tab.
- Click the Execute Query icon which looks like a green "Play" triangle button.
- You should get a series of NOTICE messages in the Messages tab at the bottom of the window, concluding with a message like "Query returned successfully with no result in 15583 ms" in the end. This query now created all the tables in the database (although there is still no data in them).
- Close the query window (you don't need to save the query because you have already run it).
- To double check that all is OK, click the + sign for the database, then the + sign for Schemas, then finally the + sign for public. Under the Tables section, you should see a count of 159 in parentheses.
Configuring GenMAPP Builder to Connect to your PostgreSQL Database
- Launch gmbuilder.bat (or gmbuilder-32bit.bat)
- If the program does not detect a database configuration, you will see a message window to this effect and the configuation dialog will open automatically once you close the message window. Otherwise:
- Select the menu item File > Configure Database...
- Under the Database Connections tab the Database Driver defaults to PostgreSQL. Enter information in the following fields:
- Host or address: localhost
- Port number: 5432
- Database name: <enter the name of the PostgreSQL database you created above>
- Username: <enter the username of the PostgreSQL database you created above>
- Password: <enter the password of the PostgreSQL database you created above>
- Click the OK button.
Importing Data into the PostgreSQL Database
- Select File > Import UniProt XML...
- Navigate to the UniProt XML file that you extracted previously and click the Open button.
- This should take about 5-10 minutes, but may take longer depending on the size of the file, processor speed, and available memory of the machine. When the process has completed, record the elapsed time from the message window that appears.
- Select File > Import GO OBO-XML...
- Navigate to the GO OBO-XML file that you extracted previously. Click the Open button.
- This should take about 5-10 minutes, but may take longer depending on the size of the file, processor speed, and available memory of the machine. When the process has completed, record the elapsed time from the message window that appears.
- Click OK to the message asking you to process the GO data.
- This should take about 5-10 minutes, but may take longer depending on the size of the file, processor speed, and available memory of the machine. When the process has completed, record the elapsed time from the message window that appears.
- Select File > Import GOA...
- Navigate to the GOA file that you downloaded previously and click the Import button. This process should only take a minute or so.
Exporting a GenMAPP Gene Database (.gdb)
- Select File > Export to GenMAPP Gene Database...
- Type a name in the Owner field (or else it won't let you export).
- Create GenMAPP Database: click on the Specify File button and accept the default folder and file name.
- Select "Move all" for both the upper and lower panels. Click Next.
- A window will ask you to verify the system tables. Clicking Next in this window starts the import process.
- Record the starting and ending times from the black console window. This will take 1-2 hours for a typical bacterial genome, depending on the size of the database, the processor speed, and available memory. Large eukaryotic genomes (like Arabidopsis thaliana) or genomes with many GO annotations (like Saccharomyces cerevisiae) can take much longer, in the range of 12-24 hours. NOTE: the progress bar is not accurate.
Checking the Quality of your Exported Gene Database
- It is a good idea to check the quality of your exported Gene Database to make sure that all of the data from the XML files made it into the PostgreSQL database and was then exported to the GenMAPP Gene Database. We have created a Gene Database Testing Template to help guide you through this process.