File: README.md

package info (click to toggle)
transrate-tools 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 428 kB
  • sloc: cpp: 449; sh: 30; makefile: 7
file content (74 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download | duplicates (3)
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
72
73
74
transrate-tools
===============

Command-line tools used by [transrate](http://github.com/blahah/transrate) for processing bam files. Written in C++ and using Bamtools.

### building

transrate-tools uses C++11 features, so you'll need at least g++ 4.8 installed. On OSX you can install the latest gcc with `brew install gcc49`. Note that on OSX you always need to tell `cmake` where to find gcc, using the option `-DCMAKE_CXX_COMPILER=$(which g++-4.9)`.

Make sure you clone with submodules:

```bash
$ git clone --recursive git@github.com:cboursnell/transrate-tools.git
```

And you'll need cmake installed.

Next, build bamtools:

on linux:

```bash
$ cd bamtools
$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ../../
```

or on OSX:
```bash
$ cd bamtools
$ mkdir build
$ cd build
$ cmake -DCMAKE_CXX_COMPILER=$(which g++-4.9) ..
$ make
$ cd ../../
```

Then build transrate-tools...

on linux:
```bash
$ cmake .
$ make
```

on OSX:
```bash
$ cmake -DCMAKE_CXX_COMPILER=$(which g++-4.9) .
$ make
```

The executable is called `bam-read` and will be in the `src` directory.

### bam-read

Parse bam files after multi-mapping reads have been assigned and aggregate read mapping information by contig.

Currently captured:

 - name
 - bases mapped
 - edit distance
 - bridges
 - length
 - reads mapped
 - both mapped
 - proper pair
 - good
 - uncovered bases
 - mean mapq
 - probability of coverage not being segmented