josiahseaman / skittle

DNASkittle is a web based genome browser that provides an interactive visualization of the raw sequence. Every nucleotide of 10Kbp can fit on one screen at a time. It makes heavy use of signal processing techniques to extract tandem repeats, and other genome elements.
GNU General Public License v2.0
7 stars 4 forks source link

Graph descriptions should be provided by generateGraphListForServer() #193

Closed marshallds closed 11 years ago

marshallds commented 11 years ago

That way when a graph is added the description can go with it instead of being hard coded.

I'll have to make a tweak on the UI to check there instead but that's quite simple.

marshallds commented 11 years ago
var graphHelpContents = {
    'a':'Annotation Display is linked to an annotation file with start and stop positions for tracks.  It aligns these start and stop positions along with the rest of the graphs, expanding to accommodate overlapping annotations as necessary.  The user can select individual annotations and see the full text associated with that annotation.',
    'n':'The four nucleotides of DNA are represented by four colors.  The pixels are arranged across the screen like text, reading from left to right, the jumping to the beginning of the next line when it reaches the width.  If width is set at a multiple of a tandem repeat, the repeat will appear as vertical bars.', 
    'b':'This bar graph shows how often each nucleotide occurs per line.  It uses the same color palette as Nucleotide Display.',
    's':'Use the “Select” tool and click on a line you would like to search for.  You can either click on Nucleotide Display or Sequence Highlighter to pick a sequence.  Given a search sequence, the Highlighter checks every start position on the screen.  The grayscale pixels are start positions that didn’t make the cut.  Light pixels are near misses.  When the Highlighter finds another sequence that is at least 70% the same, it highlights each of the matching nucleotides in bright green. ',
    'm':'Repeat Map is used for identifying tandem repeats without the need for continually adjusting the width in Nucleotide Display.  It identifies periodicity of repeated sequences by checking all possible offsets and scoring 0-100% similarity displayed in grayscale.  The x-axis of the graph represents periodicity, starting at offset 1 on the left and increasing geometrically to offset 6,144 on the right.  This growth curve means that Repeat Map can accurately detect 2bp periodicities simultaneously with segmental duplications.  Vertical white lines show regions that contain tandem repeats.  Most of the graph will be 25-30% gray from random chance.  Black spots are created when two regions with opposite biases are compared as in the case of a CG repeat being compared with an AT repeat region.',
    'o':'Each row is one display line equal to width.  Each column matches one oligomer of fixed size, arranged in alphabetical order (i.e. AA, AC, AG...).  The brightness of the pixel indicates how often that oligomer occurred compared to all the others.',
    'h':'This graph is a heatmap that shows how similar each row is to every other row on the screen.  Red represents positive correlation, blue is negative, with black being neutral.  The red blue spectrum is normalized to account for baseline correlation from genome wide patterns.  The structure of a heatmap is diagonally symmetrical.  The upper right half is mirrored in the bottom left half.  The diagonal red line is self compared with self.  Each pixel represents a comparison between two other lines.  To see which rows are involved in a comparison trace one line straight down and another line to the left.  Where the lines intersect the diagonal indicates the rows being compared.  The Similarity Heatmap is useful to visualize the blocks of similar code found in the genome, such as large tandem repeats, and isochores at all scales.  The patterns in Similarity Heatmap correlate strongly with those generated from Hi-C experiments to map chromosome territories.',
    't':'Threemer detector was designed to detect the weak 3 periodicity signature associated with codons inside protein coding regions.  It is much more sensitive than Repeat Map, but only detects a single periodicity.  Exon annotations are generally marked by a 3-mer spike.  Strong 3-mer signals outside of exon annotation that are not simple repeats merit further research.'
}