pysrim is easy via pip or conda. If you do not
have python installed on your machine and are new to python I would
suggest using anaconda.
Available on PyPi
pip install pysrim
Available on Conda
conda install -c costrouc pysrim
Available on Docker recommended no SRIM installation necessary
docker pull costrouc/pysrim
You do not need to install SRIM if you are just doing analysis. Otherwise for windows this is straightforward and normal while for Linux and OSX you will need wine additionally installed.
There is a docker container with pysrim and SRIM already installed. Some interesting tricks had to be done with using wine and faking an X11 session. `xvfb-run -a ` creates a fake X11 session within the docker container therefore allowing SRIM to run on servers without displays. This is the method that I always use to run SRIM calculations.
See examples/docker for an example of how to use the docker image.
Linux and OSX¶
For linux an OSX you will need to first have wine installed. See this post on installation of wine on OSX. For linux you will typically be able to install wine via
apt get install wine or
yum install wine. SRIM is compatible with wine.
Once you have wine installed run the installer script
Click extract and then done. The installed version should be
SRIM 2013. To check for this see that an executable
TRIM.exe is in
A collegue of mine has gotten it to work easily on Windows but I
myself have no experience. Just download the executable at
[srim.org](http://srim.org/). Next you will extract the SRIM files
into a directory on your windows machine. Note the directory of
installation as it will be needed from trim.run(). Make sure that
your installed version is SRIM 2013. To check for this see that an
TRIM.exe is in the directory.