jbrowse icon indicating copy to clipboard operation
jbrowse copied to clipboard

display deleted sequences in Alignments2 tracks

Open keiranmraine opened this issue 10 years ago • 11 comments

Could the ability to optionally show the reference sequence of deleted regions of reads rather than * be added?

Thanks

keiranmraine avatar Apr 10 '14 14:04 keiranmraine

This seems slightly confusing. I can see the benefit of being able to quickly see the "replaced" base, but only doing it for the deleted feature seems strange. I am imagining an alternative that is like a button that let's you toggle all snps to show the original base.

-Colin

cmdcolin avatar Apr 28 '14 22:04 cmdcolin

I've only requested for deletions as it isn't possible (currently) to zoom in enough for the sequence to be displayed on the reads (unless I've missed something). In GBrowse you could display 2 bases across the whole width of the display and inserted seq would be visible.

By optional I actually mean via track config rather than by clicking a check-box.

keiranmraine avatar Apr 30 '14 14:04 keiranmraine

Here on the sample browser, there is a deletion (indicated by the '*'). And if i am folllowing, this would have a configuration to display the reference base?

http://jbrowse.org/code/JBrowse-1.11.3/?loc=ctgA%3A3839..3890&tracks=DNA%2CTranscript%2Cvolvox_microarray_bw_density%2Cvolvox_microarray_bw_xyplot%2Cvolvox-sorted-vcf%2Cvolvox-sorted_bam_coverage%2Cvolvox-sorted_bam&data=sample_data%2Fjson%2Fvolvox&highlight=&tracklist=1&nav=1&overview=1

cmdcolin avatar Apr 30 '14 14:04 cmdcolin

Yes, still with the grey background and white text though (otherwise it would look like a run of subs). Obviously if the read didn't have an MD tag it should default to *.

In the case of events where, 6 bases are deleted and 4 bases are inserted it all gets messy (delete 6T, insert 4G). For these you want the inserted seq to look like a run of subs but the base spacing would have to be averaged across the available space.

keiranmraine avatar Apr 30 '14 14:04 keiranmraine

среда, 30 апреля 2014 г. пользователь Keiran Raine написал:

Yes, still with the grey background and white text though (otherwise it would look like a run of subs). Obviously if the read didn't have an MD tag it should default to *.

In the case of events where, 6 bases are deleted and 4 bases are inserted it all gets messy (delete 6T, insert 4G). For these you want the inserted seq to look like a run of subs but the base spacing would have to be averaged across the available space.

— Reply to this email directly or view it on GitHubhttps://github.com/GMOD/jbrowse/issues/464#issuecomment-41806099 .Г

iCOMDEX avatar May 02 '14 14:05 iCOMDEX

I was thinking perhaps a mouseover popup to show the deleted/inserted sequence would be nice. Would this work?

cmdcolin avatar Jun 25 '14 20:06 cmdcolin

That would be very useful.

keiranmraine avatar Jul 22 '14 11:07 keiranmraine

the work on https://github.com/GMOD/jbrowse/pull/795 revealed that the sequence of the deletion is actually embedded in the MD tag which makes it easier in most cases to get that data

cmdcolin avatar Aug 12 '16 15:08 cmdcolin

Sounds like the consensus is that mousing over the '*' deletion marker would show a tooltip with the deleted sequence? That wouldn't allow users to cut and paste the deleted sequence. Would that be something people would want to do?

rbuels avatar Jan 28 '18 19:01 rbuels

Note that this could apply to SNPCoverage too, and could show insertions

cmdcolin avatar Sep 23 '19 17:09 cmdcolin

Thanks @cmdcolin , Following issue #1425 it would ease the analysis interpretation of alignment if the SNPCoverage display the sequence inserted and deleted And about Alignment2 track Is it possible to add a javascript event when the mouse is over an insertion/deletion and to display also the sequence inserted/deleted?

thanks

jmercier-lbi avatar Sep 24 '19 07:09 jmercier-lbi