NGSfig
Example: Legoplot in NGSfig
import warnings
from pkg_resources import get_distribution, resource_stream, Requirement
from ngsfig.graphics import trinucleotide
if get_distribution("setuptools").version < "33.1.1":
warnings.warn("The code below has only been tested via setuptools (=33.1.1)")
with resource_stream(Requirement.parse("ngsfig"), "data/trinucleotide_demo.txt") as input:
trinucleotide.demo(input)
Run this script or paste it into a Python console.
Download and Install
License
Code and documentation are available according to the GNU LGPL License.