Skip to main content

Generate Highlighted HTML for BAM

Project description

DOI

Generate Highlighted HTML of Bam

highlight the specific sites of html which output by samtools tview

Dependencies

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

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
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bam2html-1.0.2.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file bam2html-1.0.2.tar.gz.

File metadata

  • Download URL: bam2html-1.0.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for bam2html-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c9f2056aca83c877f557c8415bf69d8b86379c5a12a2bb18182a5fb3ae1013c2
MD5 fcc5d8c91c689ab3a31ab61da49e5a88
BLAKE2b-256 a1a3485a1a6376b1fda8dce94d3cdf50c8a4d70d31ff6c0d612164f9295c88d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page