Skip to content
Kamil S Jaroň edited this page May 14, 2019 · 11 revisions

Installation of smudgeplot

Here we will cover how to install smudgeplot. The first step is the same regardless of the type of installation you wish to do - download this repository

git clone https://github.com/tbenavi1/smudgeplot
cd smudgeplot

global installation

You need to install the smudgeplot R package for plotting and make sure that some python dependencies (numpy and scipy) are present.

Rscript install.R
pip3 install -r requirements.txt

Then you just need to install following two scripts:

install -C exec/smudgeplot /usr/local/bin
install -C exec/smudgeplot_plot.R /usr/local/bin

smudgeplot is a python script that is the user interface and smudgeplot_plot.R is an R script for pltting internally called by smudgeplot, but accessible to user if desired. To check if the installation is working run

smudgeplot --version

if you see the version of smudgeplot printed, everything should be alright.

local/cluster installation

If the R is correctly configured, you should be able to install the R library directly exactly the same as for the global installation.

Rscript install.R

The python requirements should be installed already, these are very standard libraries that should be available on every cluster. If not, the dependencies can be installed in a virtual environment.

Finally, you probably won't be allowed to install the script to /usr/local/bin, then you can install them somewhere where your console will see it (i.e. on one of the places specified in environmental variable $PATH). If you are not sure what I just asked you to do, check the explanation of veriable PATH on wikipedia and this page that says how to change it or perhaps ask someone around.

install -C exec/smudgeplot /home/my_account/bin
install -C exec/smudgeplot_plot.R /home/my_account/bin

where /home/my_account/bin must be mentioned in PATH. Again, you can verify that it works

smudgeplot --version
Clone this wiki locally