8000 GitHub - doxeylab/haploColor: Color a sequence alignment (nucleotide or protein) to visualize haplotype/recombination blocks
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

doxeylab/haploColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haploColor

Color a sequence alignment (nucleotide or protein) to visualize haplotype/recombination blocks

Given an initial alignment of variable sites (e.g., example.aln), haploColor.R will process it to facilitate visualization of 'haplotype' structures and recombination blocks.

Color assignment algorithm:

  1. Assign first sequence as reference.
  2. Paint all residues of reference a unique color C.
  3. Where other sequences match the reference, paint them color C
  4. Identify sequence most dissimilar to the reference, and assign it as the new reference
  5. Repeat steps 2-3 until all sequences are completely colored.

Block assignment algorithm (in progress!):

This is a greedy algorithm that still has some issues.

  • For each sequence:
    • For its most common to least common colors
      • Compute: density = # occurrences from min to max position / (max-min)
      • If density > threshold
      • Assign that color to a block from its min to max position

About

Color a sequence alignment (nucleotide or protein) to visualize haplotype/recombination blocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0