-
Notifications
You must be signed in to change notification settings - Fork 115
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
Behaviour of missing chromosome name inside a narrowPeak/begraph file #120
Comments
Hi Maurits, |
Hi @LeilyR. The same error occurs if we include a simple BED file. Here is a minimal reprex:
|
Hi Maurits, |
Hi @LeilyR. Thanks for letting me know & the quick work. I've been enjoying |
develop branch is now updated with your request. Please feel free to use it and let us know if there was any issue left. Now, it only throws a warning message and still generates an empty track. |
Hi @LeilyR. Thanks for the quick update. Much appreciated. The minimal reprex now works; the only difference being that I now need to run the example with However, if I load a
I'm not sure if this is related, but this didn't happen with the previous version. I will do some more testing, and update with a suitable reprex. |
A minimal reprex:
|
Hi Maurits, |
Hi @LeilyR. Regarding the
Here are the relevant lines from the ini file
And here is the head of the
I hope this helps. I'm also not entirely sure how/if this is related to the other issue and am still investigating. What I meant with |
Thanks a lot for the clarification, I totally agree with you that it has something to do with the develop version of the code, I will check on that and will update you. |
btw can you also send me your narrow peak track from you ini file, thanks! |
@lldelisle could you please have a look at what you have recently added to develop to see if any of them have caused this error ( |
Here is the link to the full |
Hey, thanks I meant the part in your tracks.ini file where you have your narrow peaks. You have already sent me the part with your bigwigs. Sorry if i was not clear |
Ah sorry. I forgot to include that part. Here is the relevant part from the ini.
|
@LeilyR I will look at it. For the error with the narrow peak: |
pgt is still working, i didn't see any issue there |
Hi Maurits, |
Hi @LeilyR. Re: pgt is still working, i didn't see any issue there Hmm, really? This is what I get with the previous minimal sample data
versus
It seems I will test the new version in Cheers, |
Hi @LeilyR After updating
|
Hi, |
Hi Maurits, |
Hi @LeilyR . Thanks for the update! I've tested the version from the Re: Either way, thanks again to you and @lldelisle for looking into this and for the quick fix! Much appreciated. Cheers, |
Hi Maurits, |
deprecations in preperation for a new 4.0 release. During the years we have introduced several ways to enable/disable settings. We have used on/off, yes/no, 0/1, true/false. From now on we recommend to only use true/false so that we can unify our config files and make it more intuitive for all pgt-users. We also removed all 2 word items and concatenate them now by `_` (#132). For example `line width` is now `line_width`. Thanks @LeilyR! Features: * Every config is now checked for syntax errors before anything is executed (@lldelisle) * Added the possibility to merge transcripts into one single gene representation when using gtf (@lldelisle) * Added the possibility to rasterize bedgraph plots (@lldelisle) * Added the possibility to use summary functions on bedgraphs (@lldelisle) * Generate an empty track if a requested region is not in the given track-files. Fixed #120 (@LeilyR) * Generate an empty track if a chromosom is missing in bedgraph files. Fixed #120 * Improved UCSC style for intron arrows (@lldelisle) * Flybase style now supports color_utr and height_uts (@lldelisle) * A new tracktype `hlines` was added (@lldelisle) * Allow to plot the arcs of the links with a color scale based on scores as proposed in #30 (@lldelisle) * Allow to plot rectangle on a heatmap for loops. Fixed #47 (@Phlya, @lldelisle) * A lot of HiC Matrix improvements (@lldelisle) * The `alpha` property can now be used nearly everywhere (@lldelisle) Also checkout our updated [readme](). Merry Xmas and a happy new year! The PGT team!
Versions
pyGenomeTracks
Python
Issue
When I include a
narrowPeak
file that does not contain any entries for a specific chromosome (say1
) and then plot a region involving that chromosome, the following error is producedI'm not sure if this is intended behaviour but it would be great to have the option to have pyGenomeTracks produce an empty track when plotting a region for which there are no entries in a
narrowPeak
file, rather than throwing an error.This would be good for two reasons:
narrowPeak
tracks. However, the MACS2narrowPeak
file might not contain any peaks for that particular chromosome/scaffold/contig. We'd still like to show the coverage track and an emptynarrowPeak
track.snakemake
analysis pipeline, in which we generate pyGenomeTracks plots for a set of different genes/regions. Having pyGenomeTracks produce an empty track for those genes/regions where there are no events in thenarrowPeak
file would allow thesnakemake
workflow to successfully finish without an error.The text was updated successfully, but these errors were encountered: