Difference between revisions of "Malverso Week 14"
From LMU BioDB 2015
(added journal list template.) |
(→Comitting My Code: spelled commiting correctly) |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | ==Milestone 3: Species Profile Creation== | ||
| + | === Creating the Species Profile === | ||
| + | |||
| + | # I exposed the contents of the ''src'' folder, right-clicked on the ''edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles'' package and chose '''New > Class''' from the popup menu. | ||
| + | # In the dialog that appeared, I entered the following: | ||
| + | #* '''Name:''' <code>''ShewanellaOneidensis''UniProtSpeciesProfile</code> | ||
| + | #* '''Superclass:''' <code>edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles.UniProtSpeciesProfile</code> | ||
| + | # I clicked ''Finish''. There was a new ''.java'' file within the ''edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles'' package. | ||
| + | |||
| + | === Customizing the Species Profile === | ||
| + | |||
| + | * I opened the file that I have just created. | ||
| + | *I found the Taxonomy ID from this [http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=211586 link]. | ||
| + | *I added the following constructor block right below the ''public class'' line in the file: | ||
| + | public ShewanellaOneidensisUniProtSpeciesProfile() { | ||
| + | super("Shewanella oneidensis", | ||
| + | 211586, | ||
| + | "This profile customizes the GenMAPP Builder export for " + | ||
| + | "Shewanella oneidensis" + | ||
| + | " data loaded from a UniProt XML file."); | ||
| + | } | ||
| + | *The species specific database link I found by searching for a gene on our MOD and then replacing the gene identification in the link with a '~'. | ||
| + | * To customize the species profile with the species name in the OrderedLocusNames record of the Systems table as well as a link query for that same record, I added the following method block right below the constructor block that I added above: | ||
| + | |||
| + | @Override | ||
| + | public TableManager getSystemsTableManagerCustomizations(TableManager tableManager, DatabaseProfile dbProfile) { | ||
| + | super.getSystemsTableManagerCustomizations(tableManager, dbProfile); | ||
| + | tableManager.submit("Systems", QueryType.update, new String[][] { | ||
| + | { "SystemCode", "N" }, | ||
| + | { "Species", "|" + getSpeciesName() + "|" } | ||
| + | }); | ||
| + | |||
| + | tableManager.submit("Systems", QueryType.update, new String[][] { | ||
| + | { "SystemCode", "N" }, | ||
| + | { "Link", "http://bacteria.ensembl.org/shewanella_oneidensis_mr_1/Search/Results?species=Shewanella%20oneidensis%20MR-1;idx=;q=~;site=ensemblthis" } | ||
| + | }); | ||
| + | |||
| + | return tableManager; | ||
| + | } | ||
| + | * My code had a red error badge at this point, and I fixed this by choosing ''Organize Imports'' from the ''Source'' menu, which imported necessary classes. | ||
| + | |||
| + | |||
| + | ==Milestone 4: Species Export Customization== | ||
| + | *I uploaded my dist file to the wiki and gave it to Josh so that he could test it out using Microsoft Access and TallyEngine and GenMapp. | ||
| + | ===Committing My Code=== | ||
| + | * I right-clicked on the ''gmbuilder'' project folder and chose '''Team > Synchronize Workspace''' from the menu that appeared. | ||
| + | * I was switched to the ''Team Synchronization'' perspective. | ||
| + | * I saw a ''Synchronize'' tab. I commited the right-pointing gray-arrowed files by right-clicking on them and choosing ''Commit...''. | ||
| + | * I verified that the files I wanted to commit were checked in the ensuing ''Commit Changes'' dialog. | ||
| + | * I added a quick description to what I was committing. | ||
| + | * I chose ''Commit and Push''. | ||
| + | * This will both save a version of my files ''and'' send the latest changes to GitHub. | ||
{{Template:Malverso}} | {{Template:Malverso}} | ||
Latest revision as of 23:25, 3 December 2015
Contents
Milestone 3: Species Profile Creation
Creating the Species Profile
- I exposed the contents of the src folder, right-clicked on the edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles package and chose New > Class from the popup menu.
- In the dialog that appeared, I entered the following:
- Name:
ShewanellaOneidensisUniProtSpeciesProfile - Superclass:
edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles.UniProtSpeciesProfile
- Name:
- I clicked Finish. There was a new .java file within the edu.lmu.xmlpipedb.gmbuilder.databasetoolkit.profiles package.
Customizing the Species Profile
- I opened the file that I have just created.
- I found the Taxonomy ID from this link.
- I added the following constructor block right below the public class line in the file:
public ShewanellaOneidensisUniProtSpeciesProfile() {
super("Shewanella oneidensis",
211586,
"This profile customizes the GenMAPP Builder export for " +
"Shewanella oneidensis" +
" data loaded from a UniProt XML file.");
}
- The species specific database link I found by searching for a gene on our MOD and then replacing the gene identification in the link with a '~'.
- To customize the species profile with the species name in the OrderedLocusNames record of the Systems table as well as a link query for that same record, I added the following method block right below the constructor block that I added above:
@Override
public TableManager getSystemsTableManagerCustomizations(TableManager tableManager, DatabaseProfile dbProfile) {
super.getSystemsTableManagerCustomizations(tableManager, dbProfile);
tableManager.submit("Systems", QueryType.update, new String[][] {
{ "SystemCode", "N" },
{ "Species", "|" + getSpeciesName() + "|" }
});
tableManager.submit("Systems", QueryType.update, new String[][] {
{ "SystemCode", "N" },
{ "Link", "http://bacteria.ensembl.org/shewanella_oneidensis_mr_1/Search/Results?species=Shewanella%20oneidensis%20MR-1;idx=;q=~;site=ensemblthis" }
});
return tableManager;
}
- My code had a red error badge at this point, and I fixed this by choosing Organize Imports from the Source menu, which imported necessary classes.
Milestone 4: Species Export Customization
- I uploaded my dist file to the wiki and gave it to Josh so that he could test it out using Microsoft Access and TallyEngine and GenMapp.
Committing My Code
- I right-clicked on the gmbuilder project folder and chose Team > Synchronize Workspace from the menu that appeared.
- I was switched to the Team Synchronization perspective.
- I saw a Synchronize tab. I commited the right-pointing gray-arrowed files by right-clicking on them and choosing Commit....
- I verified that the files I wanted to commit were checked in the ensuing Commit Changes dialog.
- I added a quick description to what I was committing.
- I chose Commit and Push.
- This will both save a version of my files and send the latest changes to GitHub.
Team Page
Assignments
- Week 1
- Week 2
- Week 3
- Week 4
- Week 5
- Week 6
- Week 7
- Week 8
- Week 9
- Week 10
- Week 11
- Week 12
- Week 13
- Week 14
- Week 15
Individual Journal Entries
- Malverso User Page (Week 1)
- Week 2
- Week 3
- Week 4
- Week 5
- Week 6
- Week 7
- Week 8
- Week 9
- Week 10
- Week 11
- Week 12
- Week 13
- Week 14
- Week 15