#Cipres MrBayes Plugin
##mrBayesPlugin Package
###CipresMrBayesPlugin.java
- Geneious plugin initiallizer that calls CipresMrBayes
- Load icons
###CipresMrBayesToolbar.java
- getActionOption()
- Determine the placement of the GUI
- getOptions()
- Load the option GUI
- performOperation()
- Implement code to prompt users to login.
- Login is located under "Tools" tab named "Cipres MrBayes"
###CipresMrBayesTree.java
- getActionOption()
- Determine the placement of the GUI
- getOption()
- Load the option GUI
- performOperation()
- Implement code to show the options and actions for pre-job submission of a job
##mrBayesPlugin.model Package
###UserModel.java
- Cipres User model, includes all getter and setter methods
##mrBayesPlugin.ui Package
###JobManagePanel.java
- Customizable GUI that displays all of the jobs binded to the Cipres user.
- Currently set to be displayed after user login
###LoginOptions.java
- User Login GUI
- Simple GUI that asks for user's username and password to their Cipres account
###MrBayesOptions.java
- getJsonInterface()
- Get the input parameters from the interface 2 MrBayesOptions()
- Constructor of the GUI
- Determine the interface outline and default values
##mrBayesPlugin.utilities Package
###CipresUtilities.java All of these methods are utilizing methods from directclient.jar/package
- clientCheck()
- Call myClient.listJobs() to check if there's an exception, if error then client does not exist.
- listJobs()
- Add the list of jobs retrieved to the user model
- getJobs()
- Get the list of jobs binded to the user account
- updateList()
- Update the list of jobs, return the them in a JSON
- deleteJobs
- Delte the selected Job
- submitJob()
- Submit job to MrBayes's server.
###DataHandlingUtilities.java
- Getter and Setters for users and their jobs
- getClient()
- Fetch the user client from CiClient
- getUserJSON()
- Fetch user data in a JSON format, fields of the data can be seened within the method.
###MrBayesUtilities.java
- Mocking the existing MrBayes plugin
- Save the input parameter values into a JSON to be sent as a parameter in submitJob()
- getMetaData()
- Get the metadata of the user
- getVParams()
- Get the param from JSON data
##Geneious Files
Geneious' plugin libraries
##MrBayesPlugin_2_1_3
The example code for the current MrBayes Plugin
##java_umbrelaa
Contains "directclient", Cipres's APIs for client, user and job handling functions.
##Note
All of these code were developed on a Mac, so there may require some configurations if it is to be tested in a different OS.
Useful resources:
- Forum to post questions related to Geneious
- Click "Add article" instead of submit a request
- Bookmark the article you posted so you can go back to it easily, there's no history binded to your accounts
- Genious Public API documentation
###Questions I have asked
2.https://biomatters.zendesk.com/entries/99219167-How-to-obtain-Sequence-Alignment-file-paths
3.https://biomatters.zendesk.com/entries/100167627-Handling-of-returned-MrBayes-files