-
Notifications
You must be signed in to change notification settings - Fork 20
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
Using binning causes annotations to fail #46
Comments
Hi Ian, can you provide a reproducible example? |
Hi @m-jahn let me get a test dataset together from reads from a CCLE cell line that I can share. |
Hi @m-jahn , see attached. I included a BAM intersected with EML4 and ALK exons as well as a filtered GTF. You can test with EML4 region "2:42396521-42488653" I am using ggcoverage version 1.4.1. |
thank you! Do you also happen to have the code chunk you were running that produced this error? |
I just assumed the params you used for loading your bam file and I can already confirm the bug with the coordinates. Also strand information seems to get missing. To be honest the LoadTrack function is quite cluttered and would need a major rework. For reproducibility, this is what I tested with your file:
With the result:
I'll try to fix some of this. In the mean time I recommend you use the much simpler rtracklayer interface to parse bam files:
|
dear @ijhoskins With your example data I get now:
Note that the gene plot is not fully correct because there is no |
I was using the default binning (bin.size=10) in LoadTrackFile with BAM file inputs, which caused the coordinates to be misannotated and led to the following error when adding a geom_transcript layer:
Setting bin.size=NULL fixed the issue.
The text was updated successfully, but these errors were encountered: