Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Filters in SNPCoverage don't do anything #1241
Using 1.15.4 I found that "Hide unspliced reads" in a SNPCoverage track causes crash.
I think all the other feature filters also have issues but it they were just less noticeable because they didn't cause a crash
To be to the point, the reason is that a CoverageFeature gets passed through the filter and then calls to things like f.get('secondary_alignment') returns undefined and !f.get('secondary_alignment') is just true. More complicated filters like Hide unspliced reads operate on the undefined value of f.get('cigar') so it causes the crash