Difference between revisions of "Jwoodlee Week 9"

From LMU BioDB 2015
Jump to: navigation, search
(Visual Inspection: deleted "note")
(.gdb Use in GenMAPP: added more instructions)
Line 120: Line 120:
  
 
==.gdb Use in GenMAPP==
 
==.gdb Use in GenMAPP==
 +
 +
While the above sections perform quality assurance on the exported Gene Database via verifying ID counts, the "proof in the pudding" is to actually use the Gene Database in GenMAPP.  You can follow the instructions in [http://www.openwetware.org/wiki/BIOL367/F10:GenMAPP_and_MAPPFinder_Protocols Part 2 of the ''Vibrio cholerae'' Microarray Data Analysis] to verify that the Gene Database works in GenMAPP.  In this case, the emphasis is not on the findings of the data analysis itself, but that the Gene Database functions appropriate in GenMAPP.
 +
 +
For assistance with using the GenMAPP program, the GenMAPP Help is very extensive.  To access it within GenMAPP, go to the menu item Help > GenMAPP Help and either browse or search for your topic of interest.
  
 
Note:
 
Note:
Line 125: Line 129:
 
===Putting a gene on the MAPP using the GeneFinder window===
 
===Putting a gene on the MAPP using the GeneFinder window===
  
* Try a sample ID from each of the gene ID systems. Open the Backpage and see if all of the cross-referenced IDs that are supposed to be there are there.
+
* In the main GenMAPP Drafting Board window, left-click on the icon for "Gene" in the upper left corner of the window.  Click on the Drafting Board to place the Gene on the MAPP.  Now, right-click on the gene to access the GeneFinder window.  Type or paste a gene ID into the Gene ID field.  Select the appropriate Gene ID system from the drop-down menu and click the Search button.  For example, for ''Vibrio cholerae'', you could search for the ID "VC0028", which is an OrderedLocusNames ID.  Once the ID has been found, click the OK button to return to the Drafting Board window.
 +
** For the Final Project, you will need to try a sample ID from each of the gene ID systems, not just OrderedLocusNames.  
 +
* Open the Backpage by left-clicking on the gene box on the Drafting Board to see if all of the cross-referenced IDs that are supposed to be there are there.
  
 
Note:
 
Note:
Line 142: Line 148:
  
 
Note:
 
Note:
 
  
 
== Compare Gene Database to Outside Resource==
 
== Compare Gene Database to Outside Resource==

Revision as of 02:02, 4 November 2015

13-Oct-2015 07:31 5.0M date and time of v cholerae download from GenMAPP builder page


This page is under construction.


Export Information

Version of GenMAPP Builder: 2.0 Beta

Computer on which export was run: Seaver 120 computer lab, facing the front of the room the computer on the far left in the front row, Windows 7

Postgres Database name: Vcholerae_20151027_gmb3build5

Procedure from here.

In a windows environment I went to UniProt Complete Proteomes and clicked on download, and then download all, and then selected XML from the drop down menu in the compressed format. To get the next file I navigated to here, to download this text file I clicked on the link, and then hit Ctrl-S to save it. To get the GO OBO-XML file go here, and under Legacy Downloads click on "obo-xml.gz". Now extract the Uniprot XML and the GO OBO-XML.gz files using an unzipping utility such as 7.zip.

Creating the .gdb

Then in order to create the .gdb file, I navigated to Download gmbuilder-3.0.0-build-5.zip. The download should start automatically. I extracted the contents of the .zip file. I launched pgAdmin III and in PostgreSQL 9.4 I right clicked on Databases and selected New Database, I then put in my database name and clicked OK. I clicked on my new database name and clicked the SQL icon in the toolbar. In the SQL query box I clicked the yellow open button and navigated to the folder which had the unzipped GenMAPP builder file. I opened the SQL folder and opened the file gmbuilder.sql. When the code appeared, I clicked the green arrow which executes my query. I then verified that there were 167 tables.

In my folder with my GenMAPP builder file I launched gmbuilder.bat, I selected on the menu File > Configure Database. Under the Database Connections tab the Database Driver defaults to PostgreSQL. I entered information in the following fields: Host or address: localhost Port number: 5432 Database name: <enter the name of the PostgreSQL database you created above> my name is: Vc-Std_20151027_JAW Username: <enter the username of the PostgreSQL database you created above>; in S120, this username is "postgres", so for me I entered postgres Password: <enter the password of the PostgreSQL database you created above>; in S120, ask the instructors for the password, the password is Welcome1 I clicked the OK button.

I went to File > Import UniProt XML... and navigated to the Uniprot XML file that I previously extracted. I went to File > Import GO OBO-XML... and navigated to the GO OBO-XML file that I extracted previously, and clicked the Open button.

Then clicked OK to the message asking to process the GO data. I then went to File > Import GOA File... And I navigated to the GOA file that I downloaded previously and clicked the Import button.

I then selected Select File > Export to GenMAPP Gene Database... Typed my name in the owner field, and selected my species, which in this case is Vibrio cholerae. I clicked next and then hit "save GenMAPP Database file as...", I then made the name I wanted to save it as. I kept all the boxes checked. I then hit the Next button to begin the process. It ened 1 hour and 15 minutes later. More detail about this process is below.


UniProt XML filename (give filename and upload and link to compressed file):File:Uniprot-organism-243277 Jwoodlee.xml.gz

  • UniProt XML version (The version information can be found at the UniProt News Page): 10/27/2015 3:10 PM
  • UniProt XML download link: here
  • Time taken to import: 2.81 minutes
    • Note:

GO OBO-XML filename (give filename and upload and link to compressed file): File:Go daily-termdb.obo-xml Jwoodlee.gz

  • GO OBO-XML version (The version information can be found in the file properties after the file downloaded from the GO Download page has been unzipped): 10/27/2015 3:16 PM
  • GO OBO-XML download link:here
  • Time taken to import: 6.97 minutes
  • Time taken to process: 4.48 minutes
    • Note:

GOA filename (give filename and upload and link to compressed file): File:46.V cholerae ATCC 39315 Jwoodlee.goa.txt

  • GOA version (News on this page records past releases; current information can be found in the Last modified field on the FTP site): 13-Oct-2015 07:31 5.0M
  • GOA download link:here
  • Time taken to import: 0.06 minutes
    • Note:

Name of .gdb file (give filename and upload and link to compressed file): File:Vc-Std 20151027 JAW.gdb

  • Time taken to export: 1 Hour 15 Minutes
    • Start time: 3:54 PM
    • End time: 5:09 PM

Note:

TallyEngine

  • I Ran the TallyEngine in GenMAPP Builder and recorded the number of records for UniProt and GO in the XML data and in the Postgres databases.
    • I chose the menu item Tallies > Run XML and Database Tallies for UniProt and GO... this was the result.
    • TallyResultsJwoodlee.png

Using XMLPipeDB match to Validate the XML Results from the TallyEngine

Procedure for XMLPipeDB utility here.

After downloading the application from the XMLPipeDB SourceForge site I moved the .zip into my T drive and extracted it there. I then moved the .jar file into the same directory as my XML file. Then I opened cmd and moved to that directory. I then typed the following command: java -jar xmlpipedb-match-1.1.1.jar "VC_A?[0-9][0-9][0-9][0-9]" < uniprot-organism%3A243277.xml The question mark is included to account for the difference in naming convention. A gene could have the pattern "VC_A[0-9][0-9][0-9][0-9]" or "VC_[0-9][0-9][0-9][0-9]".

XMLPipeDBMatchingResults Jwoodlee.png

Are your results the same as you got for the TallyEngine? Why or why not? Yes they are because I made sure to account for the two different ways a gene could be named. In class we at first got the wrong answer but that was quickly remedied once we figured out this fact.

Using SQL Queries to Validate the PostgreSQL Database Results from the TallyEngine

For procedure see this page.

In PostgreSQL I ran the following command in the query tool.

select count(*) from genenametype where type = 'ordered locus' and value ~ 'VC_A?[0-9][0-9][0-9][0-9]';

SQLWeek9Command Jwoodlee.png

Are your results the same as reported by the TallyEngine? Why or why not? Yes they are because I again made sure to account for the two ways to name the genes. The same regular expression can be used in the xmlpipedb utility and SQL.

OriginalRowCounts Comparison

Within the .gdb file, I looked at the OriginalRowCounts table to see if the database had the expected tables with the expected number of records. Then compared the tables and records with the benchmark .gdb file.

Benchmark .gdb file: File:Vc-Std External 20101022.gdb

OriginalRowCounts table from the benchmark and new gdb screenshots:


NewGDBJAWTable.png


BenchmarkDatabaseTableJwoodlee.png

Both files opened to OriginalRowCounts in Access. As you can see the numbers are off from each other, this is most likely due to the fact that the 2010 benchmark .gdb doesn't have the most updated information. The new database that we created has a higher row count which is probably because new information was added in the last five years.

Visual Inspection

Perform visual inspection of individual tables to see if there are any problems.

  • Look at the Systems table. Is there a date in the Date field for all gene ID systems present in the database?
    • There is not a date for every row in the database.
  • Open the UniProt, RefSeq, and OrderedLocusNames tables. Scroll down through the table. Do all of the IDs look like they take the correct form for that type of ID?
    • For each table it appears that there is a common naming convention that is shared across both versions, our 2015 and the 2010 benchmark. The tables on my database share this convention and don't seem to falter away from it.

.gdb Use in GenMAPP

While the above sections perform quality assurance on the exported Gene Database via verifying ID counts, the "proof in the pudding" is to actually use the Gene Database in GenMAPP. You can follow the instructions in Part 2 of the Vibrio cholerae Microarray Data Analysis to verify that the Gene Database works in GenMAPP. In this case, the emphasis is not on the findings of the data analysis itself, but that the Gene Database functions appropriate in GenMAPP.

For assistance with using the GenMAPP program, the GenMAPP Help is very extensive. To access it within GenMAPP, go to the menu item Help > GenMAPP Help and either browse or search for your topic of interest.

Note:

Putting a gene on the MAPP using the GeneFinder window

  • In the main GenMAPP Drafting Board window, left-click on the icon for "Gene" in the upper left corner of the window. Click on the Drafting Board to place the Gene on the MAPP. Now, right-click on the gene to access the GeneFinder window. Type or paste a gene ID into the Gene ID field. Select the appropriate Gene ID system from the drop-down menu and click the Search button. For example, for Vibrio cholerae, you could search for the ID "VC0028", which is an OrderedLocusNames ID. Once the ID has been found, click the OK button to return to the Drafting Board window.
    • For the Final Project, you will need to try a sample ID from each of the gene ID systems, not just OrderedLocusNames.
  • Open the Backpage by left-clicking on the gene box on the Drafting Board to see if all of the cross-referenced IDs that are supposed to be there are there.

Note:

Creating an Expression Dataset in the Expression Dataset Manager

  • How many of the IDs were imported out of the total IDs in the microarray dataset? How many exceptions were there? Look in the EX.txt file and look at the error codes for the records that were not imported into the Expression Dataset. Do these represent IDs that were present in the UniProt XML, but were somehow not imported? or were they not present in the UniProt XML?

Note:

Coloring a MAPP with expression data

Note:

Running MAPPFinder

Note:

Compare Gene Database to Outside Resource

The OrderedLocusNames IDs in the exported Gene Database are derived from the UniProt XML. It is a good idea to check your list of OrderedLocusNames IDs to see how complete it is using the original source of the data (the sequencing organization, the MOD, etc.) Because UniProt is a protein database, it does not reference any non-protein genome features such as genes that code for functional RNAs, centromeres, telomeres, etc.

Note:


BIOL 367, Fall 2015, User Page, Team Page

Weekly Assignments Individual Journal Pages Shared Journal Pages