Skip to content

Commit af8309e

Browse files
Further cleanup
1 parent b4cee45 commit af8309e

1 file changed

Lines changed: 33 additions & 20 deletions

File tree

README.md

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ Publication pending...
1515

1616
## Installation
1717

18+
### Installing KMC3
19+
__Note that KMC3 needs to be installed separately, and both executables `kmc` and `kmc_tools` are required to be in the current working directory, or in your path.__ [`kmc` and `kmc_tools are available on their github releases page of the KMC github](https://github.com/refresh-bio/KMC/releases).
20+
21+
1822
### Container solution / apptainer (previously singularity)
1923

20-
We provide an [apptainer container](https://apptainer.org/). The definition file `vlmc-from-kmers.def` needs to be modified to
24+
We provide an [apptainer container](https://apptainer.org/). After downloading the `vlmc-from-kmers.sif` `vlmc-from-kmers.def`, the definition file `vlmc-from-kmers.def` needs to be modified to
2125
use the correct path to kmc, see the fifth and sixth line, specifically
2226
```shell script
2327
../kmc/KMC3.linux/kmc /kmc/kmc
@@ -32,28 +36,32 @@ sudo apptainer build vlmc-from-kmers.sif vlmc-from-kmers.def
3236

3337
### Compiling from Source (recommended)
3438

35-
To compile the program, please first download all dependencies.
36-
37-
#### Installing Dependencies as
38-
39-
E.submodules
40-
41-
```shell script
42-
git submodule update --init --recursive
43-
```
44-
or alternatively install the following dependendencies manually on your Linux, Unix, or MacOS system,
39+
To compile the program, please first make sure that in addition to KMC3 the following dependencies are installed.
4540

46-
#### Installing Dependencies using a package manager
47-
* intel TBB (`tbb` in brew, `libtbb-dev` on debian).
48-
* boost iostreams (`boost` in brew, `libboost-dev` on debian).
41+
#### Dependencies of dvstar
42+
* Intel TBB (`tbb` in brew, `libtbb-dev` on debian).
43+
* Boost iostreams (`boost` in brew, `libboost-dev` on debian).
4944
* hdf5 (`hdf5` in brew, `libhdf5-dev` on debian).
5045
* eigen3 (`eigen` in brew, `libeigen3-dev` on debian).
5146
* cmake (`cmake` in brew, `cmake` on debian).
5247

53-
E.g. on a Linux system with package manager apt (after updating apt and build-essential)
48+
This can be accomplished on a Linux system with package manager `apt` with the command
5449
```shell script
5550
sudo apt install libtbb-dev libboost-dev libhdf5-dev libeigen3-dev cmake
5651
```
52+
Make sure that `apt` and your build tools are up-to-date, e.g. by
53+
```shell script
54+
sudo apt update
55+
sudo apt install build-essential
56+
```
57+
58+
#### Clone the dvstar repository including submodules
59+
60+
```shell script
61+
git clone https://github.com/Schlieplab/dvstar.git
62+
cd dvstar
63+
git submodule update --init --recursive
64+
```
5765

5866
#### Build
5967
Create a build directory, configure with cmake and build:
@@ -63,19 +71,24 @@ cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
6371
cmake --build build
6472
```
6573

74+
Install dvstar to you prefered location by using
75+
```shell script
76+
sudo cp build/dvstar /usr/local/bin/
77+
sudo chmod +x /usr/local/bin/dvstar
78+
```
79+
80+
6681
#### Build On MacOS
67-
You may need to install a different c++ compiler than the one apple provides. This can, for example, be done through [brew](https://brew.sh/) or [MacPorts](https://www.macports.org/). This is tested with gcc (version 13) so that would be my recommendation. You may also need to provide the path to the installed compiler in the cmake command, e.g.:
82+
You may need to install a different c++ compiler than the one Apple provides. This can, for example, be done through [brew](https://brew.sh/) or [MacPorts](https://www.macports.org/). This is tested with gcc (version 13) so that would be my recommendation. You may also need to provide the path to the installed compiler in the cmake command, e.g.:
6883

6984
```shell script
7085
CC=/opt/homebrew/bin/gcc-13 CXX=/opt/homebrew/bin/g++-13 cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
7186
cmake --build build
7287
```
7388

74-
__Note that kmc3 needs to be installed separately, and be in the current working directory, or in your path.__
75-
Both `kmc` and `kmc_tools` are required. [Both are available on their github releases page](https://github.com/refresh-bio/KMC/releases).
76-
77-
This provides an executable `dvstar`, which can be used as follows:
7889

90+
# Running dvstar
91+
After successful compilation you can run the dvstar executable.
7992

8093
```shell
8194
% ./dvstar --help

0 commit comments

Comments
 (0)