HyperCov is a high-performance coverage calculator. It supports sorted and unsorted BAM files as well as CRAM files. Hypercov provides several coverage calculation modes supporting BED/GFF regions, fixed windows, whole-genome mode, GC calculation and per-base output.
Clone the repository and build from source, or use a provided precompiled binary.
- Precompiled binary:
- A precompiled
hypercovbinary is provided in repository Releases.
- A precompiled
wget https://github.com/lisosome/hypercov/releases/download/v1.0/hypercov ./hypercov --help- Alternatively, build the code from source:
git clone https://github.com/lisosome/hypercov.git cd hypercov makeBasic:
./hypercov -i sample.bam -o resultsCommon options
-i <file>Input alignment file (BAM/CRAM)-o <prefix>Output file prefix (creates<prefix>.coverage.gz)-r <file>Reference FASTA (required for CRAM and GC)-t <int>Threads (default: 4)-q <int>Minimum mapping quality-F <int>Exclude reads with these flags (default: 1796)-b <file>BED file (region list)-g <file>GFF/GTF file (gene/features)-w <size>Fixed window size (bp)-aProduce per-base output (large)-cCompute GC content (requires-r)--unsortedSort BAM on-the-fly if not sorted--featureFeature type for GFF mode (Examples: gene, CDS, exon, mRNA) [default: gene]--min-depth <int>minimum depth to consider a base covered (default: 1)
Whole-genome with 8 threads:
./hypercov -i sample.bam -o results -t 8BED regions:
./hypercov -i sample.bam -o results -b regions.bed -t 8GFF gene coverage:
./hypercov -i sample.bam -o results -g genes.gff -t 81Mb windows:
./hypercov -i sample.bam -o results -w 1000000 -t 8With GC content (requires reference):
./hypercov -i sample.bam -o results -r genome.fa -c -t 8<prefix>.coverage.gz— main coverage summary (gzip)<prefix>.per-base.bed.gz— per-base depths (when-a)
