Generate a dotplot that supports score-based filters along with alignment filters. In addition, this version supports AJAX-friendly JSON output for found alignments
There are two types of filters:
- Alignment filters
- Score filters
A score filter may represent a conservation value ranging from 0 to 1 and an alignment filter specifies the minimum match length for a non-gapped alignment.
The alignment filter is first generated through the function
find_alignments
and then applied throughapply_alignments
. A value filter can be imported as a text file or given as an array.
Builds a configurable dotplot
Usage: genplot [OPTIONS] <sequence1> <sequence2> <output_file>
- x file to use as the first score filter for sequence1
- y file to use as the first score filter for sequence2
- p file to use as the second score filter for sequence1
- q file to use as the second score filter for sequence2
- n minimum alignment length
- w width (in pixels) of the resulting file
- h height (in pixels) of the resulting file
Creates an unfiltered dotplot from two sequence strings
Creates an unfiltered dotplot from two files containing sequences. Currently, only sequence files are supported without the fasta header because text processing in C is a pain
Creates one dotplot from another with all the cells cleared (values set to 0.0)
Creates a clone of a dotplot
Frees allocated memory for a dotplot
Find alignments of minimum length length
and return them as a list to be applied in a later step
Apply alignments to a dotplot, returning a new dotplot with the filter applied
Free allocated memory for a list of alignments created through find_alignments
Print JSON output describing the list of alignments in the format
[
{
"sequence": "ACTG",
"position": {
"x": 1,
"y": 1
}
}
]
Create a filter with vals
associating to each cell in the dotplot with each cell in the array as a value between 0 and 1
Create a filter as above but with the values coming from a filemask for seq1 and seq2
Apply a score filter generated by create_filter
and return the resulting dotplot
Same as apply_filter
, but asserts dotplot and filter dimensions are the same
Free allocated memory for a filter
Set the value at a cell in the dotplot. Returns 1 or 0 depending on whether or not the operation succeeded (ie., not out of bounds)
Render the dotplot to an internal image representation with image dimensions of (width, height)
Create a color chooser to be used for rendering a continuous dotplot with a score filter (color is a struct with properties red, green, and blue)
Free allocated memory for a color chooser
Add a color to be chosen for a range between start and end when rendering a dotplot with a score filter. Returns 1 or 0 depending on whether or not the operation succeeded (ie., not out of bounds)
Find the color to be chosen for a color_chooser cc
given value value
Render a multicolored dotplot where each color relates to a value from the applied score filter