-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect --exclude-flags 0 #121
Conversation
Update tracks.py to set duplicate and vendorFailed in Bam track's options to True. Otherwise, igv.js will filter out duplicate and vendorFailed reads even though `--exclude-flags` is 0. Since pysam filters out reads before serializing the data into data url, we can make igv.js to show all reads.
@jrobinso PTAL. To reproduce the bug,
|
I don't understand this change, it looks like you are turning off vendor failed and exclude duplicates flags irrespective of input flags. |
The input flag (i.e. igv-reports/igv_reports/bam.py Line 47 in b684d69
--exclude-flag . However, because igv-reports isn't setting igv.js options right, igv.js will additionally filter out vendor failed and duplicates.To respect --exclude-flag , igv-reports needs to turn off all default reads filtering in igv.js and make igv.js display all reads , as the reads being serialized into data urls have gone through filtering (by pysam).
|
If you wish to customize igv options for a track you can do that with the --track-configs option. |
Ok great. Thanks. That seems to work. For anyone else, the
|
I'm going to reopen as a reminder to allow pass-thru flags to pysam, I was just suggesting --track-config as a workaround. |
Oh disregard, you can already do that. Sorry for confusion, too many projects. |
Actually I just understood the logic of this PR, I think your solution is fine. Sorry for my confusion. |
Update tracks.py to set duplicate and vendorFailed in Bam track's options to True. Otherwise, igv.js will filter out duplicate and vendorFailed reads even though
--exclude-flags
is 0.Since pysam filters out reads before serializing the data into data url, this PR fixes this bug by making igv.js to show all reads.