Skip to content
Anastasija Gricenko edited this page Aug 14, 2026 · 15 revisions

SangerTraces documentation

SangerTraces is the package that allows to visualize the contents of the ab1 files. It comes with 9 pre-made color schemes. The Hydrophobicity, HelixPropensity, StrandPropensity, TurnPropensity and BurriedIndex color schemes were reused from https://github.com/moshi4/pyMSAviz. pyMSAviz package.

Installation

```bash pip install SangerTraces ```

Usage

```python # import the package from sangertraces import SangerTrace # use the SangerTrace class to create the trace object trace = SangerTrace("B_reverse.ab1", start = 10, end = 100, wrap_length = 80, translate = ["FR1", "FR2", "FR3", "FR2_rev", "FR3_rev", "FR2_rev", "FR1_rev"], color_scheme="BuriedIndex") # call the plot_ab1_trace function to create PIL image figure fig2 = trace.plot_ab1_trace() # save the figure fig2.save("Test1.png") ```

Parameters of the SangerTrace class

Clone this wiki locally