Use the following directions to quickly get started and run on Ubuntu the ExpressionMatrix2
software on a toy dataset distributed as part of the repository.
graphviz
).
sudo apt-get install graphviz
.
This requires root access.
ExpressionMatrix2-0.4.0.tar
.
~/ExpressionMatrix2
.
If you use a different name, make sure to use the correct name
instead of the one used in the rest of these directions.
~/Downloads
)
to the ~/ExpressionMatrix2
directory your just created,
then cd
to ~/ExpressionMatrix2
.
tar -xvf ExpressionMatrix2-0.4.0.tar
.
This will create a new directory
~/ExpressionMatrix2/ExpressionMatrix2-0.4.0
containing a doc
directory, a test
directory,
and a build
directory containing
ExpressionMatrix2
shared libraries for various platforms.
~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/build/Release-ubuntu16-nohdf5-python2/ExpressionMatrix2.so
.
To make this shared library visible as a Python package,
set environment variable PYTHONPATH
to
~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/build/Release-ubuntu16-nohdf5-python2
.
In the bash
shell, you can do this using command
export PYTHONPATH=~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/build/Release-ubuntu16-nohdf5-python2
.
cd
to test directory
~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/tests/ToyTest1
.
It contains input files with a sample expression matrix
and cell meta data for a small toy test with just 3 cells and 3 genes.
It also contains two small python scripts.
python run.py
.
python runServer.py
.
This starts the ExpressionMatrix2
code in a mode
where if behaves as an http server that can be used
for interactive visualization and analysis. This command continues running until you interrupt it.
ExpressionMatrix2
software on real data.
See here for more information.
For convenience, the list below summarizes the commands to run.
This assumes that you start in directory
~/ExpressionMatrix2
containing the tar file ExpressionMatrix2-0.4.0.tar
:
tar -xvf ExpressionMatrix2-0.4.0.tar
cd ExpressionMatrix2-0.4.0/tests/ToyTest1
export PYTHONPATH=~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/build/Release-ubuntu16-nohdf5-python2
python run.py
python runServer.py
If you prefer to use Python 3, the same procedure will work with the following minor changes, assuming of course that Python 3 is installed on your machine.
PYTHONPATH
to point to
~/ExpressionMatrix2/ExpressionMatrix2-0.4.0/build/Release-ubuntu16-nohdf5-python3
.
run.py
and runServer.py
, prefix them with
python3
instead of python
.
Alternatively, you can invoke these scripts as ./run.py
and
./runServer.py
because their first line specifies python3
as the interpreter to be used by the shell.