Skip to main content

Visualization tool for Sanger sequencing data

Project description

sangerseq_viewer Installation and User Manual

sangerseq_viewer is a python package to automatically visualize Sanger sequencing results and the corresponding annotated sequence map.

Despite the fact that Sanger sequencing is one of the indispensable tasks in constructing and editing DNA sequences, there is no open-source software that provides an intuitive and understandable graphical representation of sequencing results. Some commercial GUI software (Snapgene, Geneious prime) fulfills this requirement. However, now that it is common to design and construct dozens or hundreds of DNA sequences, manually processing large numbers of Sanger sequencing results is a tedious and time-consuming task.

Here, I provide sangerseq_viewer that allow us to visulize sanger sequncing result with a simple command.

*sangerseq_viewer is depend on m packages patchworklib and QUEEN. Both packages provide APIs for handling matplotlib subplots and GenBank files, respectivily. If you are interested in them, please see their documents. *

Software dependency

  • python 3.8.0 or later

Installation

Plese execute the following commands.

pip install patchworklib
pip install python-queen
pip install sangerseq_viewer --prefix=PREFIX

PREFIX is the executable path of sangerseq_viewer. By specifying --prefix, you can run sangerseq_viewer from your command line.

Example code

Example command 1 sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/Spec-2xU6gRNA-1.ab1 -o output/example1.png --dpi 200

Output figure 1


Example command 2 sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/Spec-2xU6gRNA-1.ab1 -o output/example2.png -l 200 --dpi 200

Output figure 2


Example command 3 sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/Spec-2xU6gRNA-1.ab1 -o output/example3.png-l 200 -rs 1700 -re 2100 --dpi 200

Output figure 3


Example command 4 sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/ -o output/example4.png --dpi 200

Output figure 4


Example command 5 sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/ -o output/example5.png -l 200 --dpi 200

Output figure 5


Example command 6

sangerseq_viewer -s example_data/puc19_spec_2xu6grna.gb -q example_data/ab1/ -o output/example6.png -l 200 -rs 1700 -re 2100 --dpi 200

Output figure 6

Usage

SYNOPSIS
sangerseq_viewer [-h] [-q QUERY] [-s SUBJECT] [-l LINEBREAK] [-o OUTPUT] [-rs START] [-re END] [-wq {True,False}] [-d DPI]

  -h, --help            
     show this help message and exit
  -q QUERY, --query QUERY
     Abi file path.
  -s SUBJECT, --subject SUBJECT
     Genbank file path.
  -l LINEBREAK, --linebreak LINEBREAK
     Sequence length for line break.
  -o OUTPUT, --output OUTPUT
     Output file path. The output image format can be specified by the filename extension.
  -rs START, --start START
     Start position of the subject sequence region to be visualized. 
  -re END, --end END    
     End position of the subject sequence region to be visualized.
  -wq {True,False}, --quality {True,False}
     If True, display bar plot representing Quality value at each nucleotide position.
  -d DPI, --dpi DPI     
     Resolution of the output image. If output format is pdf, the value is ignored.

If you want to use sanger_seqviewer as python module, please import sangerseq_viewer.sangerseq_viewer and use view_sanger() fucntion. It takes same parameters with sangerseq_viewer command and returns matplotlib.figure object.

sangerseq_viewer.sangerseq_viewer provides other useful functions such as generate_consensusseq() and ab1_to_dict() for handling ab1 file. I will add the document for them later.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sangerseq_viewer-0.1.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file sangerseq_viewer-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sangerseq_viewer-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.8

File hashes

Hashes for sangerseq_viewer-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 44c41e6c4bf1e781e957e9d69be1c506f89ed4a8eef98f834a3eb028dee25f49
MD5 9e3632ca2e43a7e3f66f0d957685834d
BLAKE2b-256 b5f17d50eb32119985727d11982e73b0a4b2b855cffb9c9548bedf232a239d6c

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