josiahseaman / FluentDNA

FluentDNA allows you to browse sequence data of any size using a zooming visualization similar to Google Maps. You can use FluentDNA as a standalone program or as a python module for your own bioinformatics projects.
65 stars 7 forks source link

Parallel Genomes Layout #11

Closed josiahseaman closed 8 years ago

josiahseaman commented 8 years ago

Motivation: Visualize the same chromosome from 3 different species aligned together in one static visualization.

Take 3 files as inputs and layout every column of the file in parallel with the 2 other files. Create another gap level to group the sets of 3 columns together.

josiahseaman commented 8 years ago

image

josiahseaman commented 8 years ago

image

These are totally unrelated files, so it will look pretty incoherent.

josiahseaman commented 8 years ago

Here's the first useful 3 column visualization. This is the history of Human Chromosome 9 from most recent to oldest: v38, v37, v35. image

You can see all three stay in sync on the upper chromosome arm, but they desync at the centromere. v37 has sequence that extends the farthest into the centromere. v38 alpha satellite sequence starts eariler than the others, etc. Near the end of the file, it's still possible to visually align pieces from really bright elements, but overall they're pretty out of sync.

Below I highlight the same green double band in all 3 versions, but v37 is so much longer than the others, it ends up on the next row. image

Clearly alignment will be necessary to make this mode usable.

josiahseaman commented 8 years ago

I've added the ability to render any number of files in parallel. I found that they were easier to differentiate if there was a faint colored border around them. Now, I'm going to add Colored Titles in the image, so people know which is which. Colored borders will also have the nice advantage that gaps from alignment will be colored by their column's background color. So it should be pretty easy to see relative amounts of gaps at a macro scale just from color.

josiahseaman commented 8 years ago

image