VisualizeAlignment

Script: visualizealignment.sh Package: aligner Class: VisualizationConverter.java

Converts a text exploration map from some aligners to an image. Supports Quantum, Banded, Drifting, Glocal, WaveFront, and MSA9.

Basic Usage

visualizealignment.sh <map>
visualizealignment.sh <map> <image>

This tool converts text-based alignment visualization maps generated by various aligners into visual bitmap images. The tool automatically detects the output format based on the file extension.

Parameters

VisualizealignmentParameters are minimal as this is a specialized conversion utility focused on transforming aligner output into visual representations.

Parameters

map
Text file of score-space from an aligner. This file contains character-based representations of alignment scores generated by aligners like Quantum, Banded, Drifting, Glocal, WaveFront, and MSA9. Required parameter.
image
Output name, context sensitive; supports png, bmp, jpg. Image name is optional; if absent, .txt will be replaced by .png in the input filename. The tool automatically determines the output format from the file extension.

Examples

Basic Conversion

visualizealignment.sh alignment_map.txt

Converts alignment_map.txt to alignment_map.png using default PNG format.

Specify Output Format

visualizealignment.sh alignment_map.txt visualization.jpg

Converts the alignment map to JPEG format with custom filename.

Multiple Format Support

visualizealignment.sh quantum_output.txt quantum_vis.bmp

Creates a bitmap image from Quantum aligner output.

Algorithm Details

VisualizationConverter uses two distinct color mapping methods (getColorForChar1 and getColorForChar2) with linear interpolation to transform character-based alignment score representations into bitmap images.

Color Mapping System

The tool uses a dual color scheme system to represent different alignment score ranges:

Special Characters

Score Characters (Color Scheme 1 - Default)

Score Characters (Color Scheme 2 - Alternative)

Automatic Scaling

The tool implements conditional scaling based on input width:

Format Support

The tool automatically detects and supports multiple output formats:

Performance Characteristics

Supported Aligners

This tool is designed to work with visualization output from several alignment algorithms:

Support

For questions and support: