Skip to content

Step by step handson doc for anyone who wants to develop new plugin for IRIDA

Notifications You must be signed in to change notification settings

ajkarloss/IRIDA_Plugin_Dev_Doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 

Repository files navigation

IRIDAPlugin Dev Doc

Step by step handson doc for anyone who wants to develop new plugin for IRIDA

Plugin Overview

Screenshot 2024-01-07 at 14 51 43

Prerequisite

IRIDA - Locally Installed Screenshot 2024-01-07 at 15 49 40

https://phac-nml.github.io/irida-documentation/developer/tools/pipelines/#4-test-in-irida:~:text=is%20as%20follows.-,3.2.1.%20Install%20IRIDA%20to%20local%20Maven%20repository,-In%20order%20to

Also, download the example-plugin Screenshot 2024-01-08 at 12 18 50

https://phac-nml.github.io/irida-documentation/developer/tools/pipelines/#4-test-in-irida:~:text=publishToMavenLocal%20%2Dxtest-,3.2.2.%20Download%20IRIDA%20plugin%20example,-Once%20you%E2%80%99ve%20installed

Galaxy - Locally Installed

  1. Install the tool in Galaxy (SeroTypeFinder)
  2. Create galaxy workflow for SeroTypeFinder
Screenshot 2024-01-07 at 20 33 25
  1. Input box should be "list:paired" and the name should be "sequence_reads_pair"
Screenshot 2024-01-08 at 12 11 32
  • Test the workflow to make sure it produces the expected output
  • Rename the output files and change data type also
  • Export the workflow

Converting Galaxy workflow to IRIDA plugin

  • cd /home/irida/
  • git clone https://github.com/phac-nml/irida-plugin-example
  • change name mv irida-plugin-example/ serotypefinder/
  • cd serotypefinder/

IRIDA provides a java file to create the templates (information and XML files) for the plugin development

java -jar irida-wf-ga2xml-1.2.1-standalone.jar -n SeroTypeFinder -t SeroTypeFinder -W 1.0.0 -o output -i Galaxy-Workflow-SerotyperFinder.ga
Screenshot 2024-01-09 at 09 28 37

* Edit the ```SeroTypeFinderPlugin.java```
https://github.com/NorwegianVeterinaryInstitute/irida-nvi-serotypefinder/blob/main/src/main/java/ca/corefacility/bioinformatics/irida/plugins/SeroTypeFinderPlugin.java

* Edit the ```SeroTypeFinderPluginUpdater.java```
https://github.com/NorwegianVeterinaryInstitute/irida-nvi-serotypefinder/blob/main/src/main/java/ca/corefacility/bioinformatics/irida/plugins/SeroTypeFinderPluginUpdater.java

Build the plugin

  • mvn clean package
  • check the target/folder for SeroTypeFinder-1.0.0.jar file
  • Transfer the file to /etc/irida/plugins/in IRIDA VM
  • Restart the tomcat

About

Step by step handson doc for anyone who wants to develop new plugin for IRIDA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published