| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This example repository contains the following code to help you get started with writing your own MultiQC plugin.
It should be used in addition to the main MultiQC documentation: http://multiqc.info/docs/#coding-with-multiqc
If you have any questions, please get in touch on Gitter: https://gitter.im/ewels/MultiQC
This example plugin contains both custom code and a MultiQC module for parsing content into reports.
MultiQC modules can either be written as part of the core MultiQC program, or in a stand-alone plugin. If your module is for a publicly available tool, please add it to the main program and contribute your code via a pull request (see the contributing instructions).
If your module is for something very niche, which no-one else can use, then it's best to write it as part of a custom plugin. The process is almost identical, though it keeps the code bases separate.
To use this code, you need to install MultiQC and then your code. For example:
pip install MultiQC
python setup.py installUse python setup.py develop if you're actively working on the code - then you don't need to rerun the installation every time you make an edit (though you still do if you change anything in setup.py).
In this example plugin, I have defined a single additional command line flag - --disable-example-plugin. When specified, it sets a new MultiQC config value to True. This is checked in every plugin function; the function then returns early if it's True.
In this way, we can effectively disable the plugin code and allow native MultiQC execution. Note that a similar approach could be used to enable a custom plugin or feature.
| Back | FazBrowse Home | New Git URL |