-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Filter for tags in sam/bam track #3
Conversation
Thanks for contributing this. I do have some comments. From looking at the back end, I don't see too many problems. There are a few issues though:
|
Thanks for the comments: 1: agreed doesnt look nice and I will try to implement the Filter Tracks version |
I am just going through the code of the TrackFilter functionality and would really like to use that code. The only problem/concern I am having is that I would have to collect all available tags from all the displayed reads to populate the itemComboBox. This is done using the AttributeManager.getInstance().getAttributeNames() for the filterTracks... Is there a similar function for tags? We can have a few million reads in a given window and I guess it would take some time to parse them or do you think I should try this? Any comments/sugestions are more than welcome. Thanks, |
It doesn't have to be exactly like the TrackFilter, you could have a text -Jacob On Wed, May 30, 2012 at 7:10 AM, baj12 <
Jacob Silterra |
still not happy with the UI, should probably be a JTabble but before working on this I would need to verify that the concept is working... For this I need to know how to reload and repaint a track... This seems to be too difficult for me to find out on my own... Please advise!!! thx bernd
Hi Jacob, I updated the UI... I am still not very happy, but I would like to first Currently, I am seeing very strange behavior that doesn't seem to be Could you please point me to the right direction on how to implement Thanks a lot for your kind help. Bernd On 30.05.2012 15:49, Jacob Silterra wrote:
|
I made some changes and pushed them to my fork at I think soft filtering might be easier to start with, we may or may not -Jacob On Tue, Jun 5, 2012 at 5:39 AM, baj12 <
Jacob Silterra |
Hi, after I have been distracted for quite some time from this project, it seems that it not be feasible for me to complete this task. Thus I would like to close/dismiss this pull request and leave this work to the people who know much more about this... ;) Best, Bernd |
Hi,
this fork of IGV introduces filtering to sam/bam tracks. I have added menu item in the right click menu of the sam/bam track under "Group alignment by" and before "Sort alignments by".
A new window will show. One can create as many filters as desired. The filters work only on the tags of SAM/BAM files (e.g. NM:i:2). One can search for numerical ranges, strings having wild cards, regular expressions or just match a given string. Missing values can also be excluded or included.
The procedure is as follows: The filters are being applied to each read from top to bottom. If a filter matches it is either excluded or included in the display, depending on the settings ("include alignments" or "exclude alignments". If a read does not match a filter, the next filter is applied. If no filter matches the read is being displayed.
One has to explicitly "create" and "apply" a filter AND also click "save filters" to use them otherwise they might get lost.
Obviously you will see that I am not a swing nor a JAVA expert, please feel free to optimize the design.
Currently, I have to move to a different region in the genome and then back to redraw the alignment as I don't know how to call the appropriate function from my filter class..
Hope this works for you and please feel free to send me any comments or suggestions...
Best,
Bernd