GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
207 stars 62 forks source link

gapped sequence alignment track #231

Closed rbuels closed 7 months ago

rbuels commented 5 years ago

like here's a clustalw output:

image

cmdcolin commented 5 years ago

MAF format http://www.bx.psu.edu/~dcking/man/maf.xhtml

rbuels commented 5 years ago

data formats to consider:

rbuels commented 5 years ago

for clustalW output we would need to process it to make one of the sequences the reference, and have the other alignment variants be deletions and insertions with respect to it.

garrettjstevens commented 5 years ago

UCSC uses MAF via the BigMaf format, which looks like it actually stores the MAF info in a BigBed with an AutoSql.

cmdcolin commented 5 years ago

True :) have parsed this format in https://github.com/cmdcolin/mafviewer/

One important part of this discussion is representing gaps in the reference sequence track and making annotations aware of that (since an alignment can introduce gaps into the reference sequence to represent insertions relative to the query)

cmdcolin commented 5 years ago

Note that things like samtools tview fully does this for any viewing of a genome alignments file, which helps elucidate indels

cmdcolin commented 4 years ago

Here is samtools tview showing gapped reference on our volvox-sorted.bam

Screenshot from 2020-02-28 10-28-24

cmdcolin commented 4 years ago

Also looks like this with a reference sequence available

Screenshot from 2020-02-28 10-49-44

localhost_jbrowse__data=sample_data%2Fjson%2Fvolvox loc=ctgA%3A14217 14316 tracks=DNA%2Cvolvox-sorted_bam%2Cvolvox_vcf_test%2Cvolvox-sorted-vcf highlight=

cmdcolin commented 4 years ago

I keep poking this thread occaisionally but I do think it's sort of an interesting issue

It brings into light modified reference coordinates

This SV visualizer is part of SV plaudit and does a good job of comparing reference to alt

https://github.com/svviz/svviz

If we could make a custom view type or LGV mod that supports such a thing it could be quite powerful

cmdcolin commented 7 months ago

seems like there can be only hacks that try to bolt this onto lgv. i think future true alignments to a graph genome type thing are the better option, and allowing jbrowse to flip between refs from graph for example