biotite.sequence.graphics
#
A subpackage for visualization of sequence related objects.
The visualizations make use of Matplotlib for plotting.
Therefore, each plotting function requires an Axes
object,
where the visualization should be performed.
The resulting plots are customizable:
Labels, location numbers, etc. are usually placed into the axes tick
labels, making tham accessible for modification via the usual
Matplotlib API.
Some aspects of the plotting itself are also customizable: For example
the plot_alignment()
function uses a interchangable
SymbolPlotter
, that knows how to draw the symbols of an
alignment.
Similarily, the appearance of sequence features in the function
plot_feature_map()
is customized via FeaturePlotter
objects.
Plotting functions#
Plot a sequence annotation, by showing the range of each feature on one or multiple position depicting line(s). |
|
Create a sequence logo. |
|
Plot a pairwise or multiple sequence alignment. |
|
Plot a pairwise or multiple sequence alignment highlighting the similarity per alignment column. |
|
Plot a pairwise or multiple sequence alignment coloring each symbol based on the symbol type. |
|
Plot a dendrogram from a (phylogenetic) tree. |
Symbol plotters#
Subclasses of this abstract base class define how symbols in an alignment are drawn onto an |
|
This abstract |
|
This |
|
This SymbolPloter colors each symbol based on the general color of that symbol defined by a color scheme. |
Feature plotters#
A |
|
A plotter for the CDS and gene features. |
|
A plotter for regulatory features with the promoter or TATA_box class. |
|
A plotter for regulatory features with the terminator class. |
|
A plotter for regulatory features with the ribosome_binding_site class. |
|
A plotter that matches any feature. |
Color schemes#
Load a color scheme from a JSON file. |
|
Get a color scheme by name and alphabet. |
|
Get a list of available color scheme names for a given alphabet. |
Miscellaneous#
This |
|
Plot a pairwise sequence alignment using an |
|
Plot a plasmid map using the sequence features in the given |