concat sam files
Usage: concatsam [options] Files
Options:
--bamcompression
Compression Level.
Default: 5
-h, --help
print help and exit
--helpFormat
What kind of help. One of [usage,markdown,xml].
-r, --region, --interval
Limit analysis to this interval. An interval as the following syntax :
"chrom:start-end" or "chrom:middle+extend" or "chrom:start-end+extend"
or "chrom:start-end+extend-percent%".A program might use a Reference
sequence to fix the chromosome name (e.g: 1->chr1)
-merge, --merge
Don't really concatenate one sam after the other, use a
htsjdk.samtools.MergingSamRecordIterator. Similar to Picard
MergeSamFiles
Default: false
-o, --output
Output file. Optional . Default: stdout
--samoutputformat
Sam output format.
Default: SAM
Possible Values: [BAM, SAM, CRAM]
--version
print version and exit
${PATH}
. Setting JAVA_HOME is not enough : (e.g: https://github.com/lindenb/jvarkit/issues/23 )$ git clone "https://github.com/lindenb/jvarkit.git"
$ cd jvarkit
$ ./gradlew concatsam
The java jar file will be installed in the dist
directory.
The project is licensed under the MIT license.
Should you cite concatsam ? https://github.com/mr-c/shouldacite/blob/master/should-I-cite-this-software.md
The current reference is:
http://dx.doi.org/10.6084/m9.figshare.1425030
Lindenbaum, Pierre (2015): JVarkit: java-based utilities for Bioinformatics. figshare. http://dx.doi.org/10.6084/m9.figshare.1425030
$ java -jar dist/concatsam.jar dir/*.bam
$ java -jar dist/concatsam.jar --merge dir/*.bam
$ java -jar dist/concatsam.jar --region 'ref:100-200' dir/*.bam