Closed alexyfyf closed 5 years ago
Also running into a the same compiling issue.
Installing TMAP can indeed be quite challenging. I believe that the documentation is somewhat outdated, because e.g. the instructions for TMAP ask you to clone a deprecated repository. My suggestion would be to compile the entire Analysis module for TS, which has the more up-to-date version of Torrent Suite software such as TMAP and TVC. I did it on a freshly installed Ubuntu 14.04 virtual machine as follows:
Ensure that all dependencies listed in BUILD.txt are installed:
$ apt-get install \
build-essential \
git-core \
cmake \
liblapack-dev \
liblapack3gf \
libblas-dev \
libblas3gf \
libatlas-base-dev \
gfortran \
zlib1g-dev \
libbz2-dev \
libcurl4-openssl-dev \
libncurses5-dev \
libboost-serialization-dev \
libhdf5-dev \
python-dev \
libboost-python-dev \
python-numpy \
r-base
Clone the TS repository:
$ git clone https://github.com/iontorrent/TS.git
Compile the Analysis module:
$ cd TS
$ MODULES=Analysis ./buildTools/build.sh
For my first compilation it said it was unsuccessful even though TMAP appeared to be working fine. Just in case I ran it again and got a success. You are free to then copy the TMAP directory elsewhere (including another system) and run the tmap executable; that's probably not recommended but it worked for me when I needed to run it on a remote server with limited storage.
@martaccmoreno Thank you, following your instruction I was able to build TS, but how can I run TMAP? I'm new to these compiling issues.
Do I still need to run sh autogen.sh && ./configure && make
?
Thank you very much if you could help.
@alexyfyf No problem! So, after following the compilation steps above, you'll end up with a directory structure like this:
TS
│
└─── build
│
└─── Analysis
│
└─── TMAP
(ignoring directories irrelevant to our purpose)
Inside the TMAP directory, you'll find a tmap
executable, which you can run by prefacing with a dot and forward slash. Assuming you are inside the TS directory:
$ cd build/Analysis/TMAP
$ ./tmap
Sometimes you may need to grant the file permission to execute on your machine, especially if you copy it around:
$ chmod +X tmap
To make it easier to run tmap from anywhere, you can add the path to this executable to your PATH via your .bashrc
dot file. Assuming your TS directory is in your home directory, add the following to the end of .bashrc
:
# Adds tmap executable to PATH
export PATH="$HOME/TS/build/Analysis/TMAP:$PATH"
And finally refresh the dot file by either closing and re-opening your terminal, or running source .bashrc
. Now you can hopefully run tmap from anywhere by using the tmap
command!
Thank you so much @martaccmoreno , I think the author @ipan can add these instructions to the README page, it will definitely help people like me.
Hi,
I followed the instructions step by step. When I come to compiling using
I get the error at the end.
There are a lot more lines up containing similar undefined warning. How can I fix this. My system is Ubuntu 16.04.3. GCC 5.4 and sse2 supported.
Thank you for the help.