statsTools contains a set of tools for operating on the statistics files that we generate.
Currently it only works on baseQC statistics files produced by BamUtil: stats.
- mergeBaseQCSumStats - merge stats files in the Count-Based Output Format (sumStats)
- subsetBaseQCStats - reduce the stats file to just the positions in the specified regions.
Merges stats files in the Count-Based Output Format.
The merge can be done in multiple iterations, merging smaller groups of files at a time.
mergeBaseQCSumStats --out <outputStatsFile> <inputStatsFiles>
--out output merged stats file inputStatsFiles space separated list of files to merge.
output File (
--out followed by your file name to specify the merged stats output file.
The file extension is used to determine whether or not to compressed the output file. A
- is used to indicate stdout.
|uncompressed to file|| |
|compressed to file|| |
|uncompressed to stdout|| |
|compressed to stdout|| |
input Stats Files
The input stats files to merge do not have a flag, and are just specified at the end of the command line (after
The software can read either compressed or uncompressed stats files, but they must be in the Count-Based Format.
The software returns 0 on success, non-0 on failure.
A status message is written to cerr on failures, and upon successful completion, "Done writing to " followed by the output file name is written to cerr.