File: README.md

package info (click to toggle)
seqan2 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 228,748 kB
  • sloc: cpp: 257,602; ansic: 91,967; python: 8,326; sh: 1,056; xml: 570; makefile: 229; awk: 51; javascript: 21
file content (40 lines) | stat: -rw-r--r-- 1,002 bytes parent folder | download | duplicates (9)
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
SAM Cat
========

Concatenate and convert SAM/BAM files quickly.

(c) Copyright in 2015 by David Weese.

Usage
-----

This tool reads one or many SAM/BAM files and outputs their concatenation as a SAM/BAM file. 
The headers of more than one input file will be merged.
All formats will be detected from file extensions or input streams.

```
samcat one.bam two.sam three.bam -o concat.bam
```

Input and output formats can be arbitrary, i.e. to convert a SAM into a BAM file use:

```
samcat input.sam -o output.bam
```

If the output file name is omitted the result is written to stdout in SAM format, use ```-b``` to select BAM.
If ```-``` is used as input file name, the input is read from stdin.

```
cat input.sam | samcat -b - > output.bam
```

Additional Information
----------------------

As the BAM format is more compact than SAM and faster to parse the best performance will be reached with BAM files.

Contact
-------

For questions or comments, contact David Weese <dave.weese@gmail.com>.