Skip to main content

DOI GitHub (Pre-)Release Date

Generate Highlighted HTML of Bam

highlight the specific sites of bam with samtools tview

Dependencies

  • Linux/Unix
  • Python2/Python3
  • samtools
  • tar/gzip/zip [optional for compressing]

Installation

pip install bam2html

Usage

bam2html -b <input.bam> chrom:pos           # single position
bam2html -b <input.bam> chrom:pos1,pos2...  # multiple positions
bam2html -b <input.bam> chrom:start-end     # a region of positions
bam2html -b <input.bam> chrom:pos -r /path/to/reference.fa # with reference
bam2html -b <input.bam> chrom:pos -c 300    # set the width of window
bam2html -b <input.bam> chrom:pos -color pink -bg green    # set colors
bam2html -bl bam_list pos_list                             # batch mode
bam2html -bl bam_list pos_list -s                          # generate summary.html
bam2html -bl bam_list pos_list -s -x zip                   # compress the result with zip
bam2html -bl bam_list pos_list -s -x tar.gz                # compress the result with tar/gzip

Example Results

Meaning of Base's Colors

Color Mapping Quality Selector
Blue 0-9 .tviewcu1
Green 10-19 .tviewc2
Yellow 20-29 .tviewc3
Black >=30 .tviewc4

Underline: Secondary or orphan


Documents

https://bam2html.readthedocs.io

Metadata

Release files for bam2html 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bam2html 1.0.5
File Size Uploaded
bam2html-1.0.5.tar.gz 9.1 kB Details

Release files / bam2html-1.0.5.tar.gz

Download URL bam2html-1.0.5.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
55110bcdf9918232abacc0157a1377302728f100b1cdbe64e8307f037466194d
BLAKE2b-256 checksum
How to use checksums
ee4b050cf868077320452c06cd8df26370cdafcd00b4ff26502e40db93721600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page