PluginInterop provides facilities for using and programming light-weight plugins for Perseus by using external scripting languages such as R or Python.
We developed packages in the R and Python languages which allow them to easily process Perseus data structures. Please refer to their websites for more information.
In order to run external scripts from within Perseus we need to install (i)
PluginInterop, (ii) the scripting language we want to use, and (iii) the
interop package for each language.
First follow the Plugin Interop installation instructions
and add PluginInterop.dll to your Perseus installation. The next steps
depend on the scriting language you intend to use.
We recommend installing the Anaconda Python distribution
(Python 3.X 64bit). In the installer make sure to enable the option to add Python to your
PATH.
Next you should install the perseuspy module.
If python is in your PATH you should be able to open a Command Prompt (search for cmd.exe) and
type-in the installation instructions from the perseuspy website.
First install the latest version of R. We recommend to additionally install R Studio Desktop.
Next, install the PerseusR package. First open R Studio and then,
enter the instructions on the website into the running R session.
-
Write a script file in your language of choice. For examples check the
/scriptsfolder and the package websites. -
Open Perseus and create a random data matrix. In the
Externalmenu you will find processing activities for bothRandPython.