-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Anastasija Gricenko edited this page Aug 14, 2026
·
15 revisions
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.
# 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")