MutView
MutView is a tool to view the reads cover a mutation in bam file, output file is html format. It's so fast and efficient, just like a lightweight IGV(Integrative Genomics Viewer).
Requires
- python >= 3.7
- samtools
Installation
pip install mutview
or
pip install git+https://github.com/TuBieJun/MutView.git
Example use
mutview -s -n 250 -c 2 -p 25466919 -r path_of_ref_fasta -S path_of_samtools -b input_bam -o out.html
Argument description
$ mutview
usage: mutview [-h] -p POS -c CHROM -b BAM -r REF -o OUT [-w WINDOW_SIZE] [-s]
[-n NUM_READS] [-q BASE_Q] [-Q ALN_Q] [-f FONT] [-S SAMTOOLS]
optional arguments:
-h, --help show this help message and exit
-p POS, --pos POS the mutation position
-c CHROM, --chrom CHROM
the chrom of mutation
-b BAM, --bam BAM the input bam file
-r REF, --ref REF the reference genome fasta file
-o OUT, --out OUT the output html file
-w WINDOW_SIZE, --window_size WINDOW_SIZE
the window size of reference genome around the
mutation, default is 300
-s, --sort sort as base like igv, default is False
-n NUM_READS, --num_reads NUM_READS
the max reads number to view default is 100
-q BASE_Q, --base_q BASE_Q
the min base quality, reads with bq below the
specified threshold will be lowercases. default is 20.
-Q ALN_Q, --aln_q ALN_Q
the min aln quality, bases with mq below the specified
threshold will be highlighted. default is 20.
-f FONT, --font FONT the the font of the out html file, it should be
monospaced font, default is consolas for windows, if
you view the out html file in mac, you need set the
value to Menlo or other monospaced fonts
-S SAMTOOLS, --samtools SAMTOOLS
the samtools path, default is samtools
Out html Description
- The bases that are inconsistent with the reference genome will be highlighted.
- The bases with quality below the specified threshold will be represented in lowercase letters.
- The background color of reads with alignment quality below the specified threshold will be highlighted.
- Indels are represented using the characters "I" and "_".
- The count of each base type will be displayed at the top
- The left sidebar will display the name of the reads, pair information, and forward/reverse strand information.
Here is example out:
Metadata
Release files for mutview 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mutview-0.0.3.tar.gz | 9.5 kB | With provenance | Details for mutview-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mutview-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mutview-0.0.3-py3-none-any.whl |
Total release size: 17.7 kB
Release files / mutview-0.0.3.tar.gz
| Download URL | mutview-0.0.3.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f8429749780206e79be86befb42ed755d4b4219a447f3e0fcd53575640895d9
|
|
BLAKE2b-256 checksum How to use checksums |
f26b9574fb4f13eb004eb0c43ad93311ff11497f14ac74706b3acb56e788c70c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / mutview-0.0.3-py3-none-any.whl
| Download URL | mutview-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4292959eb7b46016cddd5ecfcfeac7475cf53d795f844db5ad501b745da0a6f7
|
|
BLAKE2b-256 checksum How to use checksums |
42511fe0186e22dceb568e402222e891fdfc912527aa7ebd2bbdd10f36b222ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logSecurity for mutview 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mutview-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.