-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathREADME
73 lines (57 loc) · 1.65 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
This is a program for genotyping and haplotyping.
## Dependencies ##
cmake version 3.7 (or higher):
wget https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh && mkdir /opt/cmake && sh cmake-3.7.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license && ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
If you're on Ubuntu:
```
apt-get -y install git make gcc g++ autoconf bzip2 lzma-dev zlib1g-dev libcurl4-openssl-dev libcrypto++-dev libpthread-stubs0-dev libbz2-dev liblzma-dev
```
- Check out the repository:
```
git clone git@github.com:benedictpaten/marginPhase.git
```
- Check out submodules:
```
cd marginPhase
git submodule update --init
```
- Build htsLib (only required once):
```
cd externalTools/htsLib
autoconf
autoheader
./configure
make
cd ../../
```
If the `lzma` and `bz2` packages are not installed, when configuring htslib run
``` ./configure --disable-lzma --disable-bz2 ```
to compile without those packages.
- Make build directory:
```
mkdir build
cd build
```
- Generate Makefile with cmake:
```
cmake ..
```
- Build with make:
```
make
```
## Running the program ##
- to run marginPhase:
``` ./marginPhase <PATH/TO/BAM> <PATH/TO/REFERENCE> [OPTIONS] ```
- program OPTIONS:
```
-p --params <PATH/TO/JSON>
-r --referenceVCF <PATH/TO/REFERENCE/VCF>
-a --logLevel <critical, info, debug [default = info]>
-o --outputBase <\"example\" -> \"example1.sam\", \"example2.sam\", \"example.vcf\")\n">
-v --verbose <verbosity bitmask>
```
- to run tests: ./allTests
(This runs every test. You can comment out ones you don't want to run in allTests.c)
## Notes: ##
- you'll need to have a reference genome available to write out all the files