-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unable to Render graph using RAST Annotations #44--FOLLOW UP #61
Comments
Hi, I managed to replicate the error, it comes from the '&' special character in the RAST annotations apparently. I've updated PPanGGOLiN's gexf writing functions to remove this character and managed to open the gexf generated by PPanGGOLiN afterwards. The latest commit on the master branch should fix the issue. If you used conda to install ppanggolin, you can install the new version in your conda environment by cloning the repository and install as such:
and then reuse the 'write' function to obtain the gexf again, as such:
I saw in the gexf file which you provided that you use an older version of PPanGGOLiN (1.1.96). If you are in a constrained environment where you cannot update the tool easily, an alternative solution is to remove the '&' character from the annotation files which breaks the gexf format for some reason. It should work well after that. Thank you for the bug report and your nice comment :) Adelme |
Hi, Thank you for quickly replying to this! I was able to render the graph after removing the '&' special character. I am now trying to generate the Spots of insertion figures using the --draw_hotspots command, but I am generating figures without any labels. Is this another issue related to the annotations, or am I using the command incorrectly? I am running
The file appears to be too large to share here, so I can email if it would be helpful. |
Additionally, if I am using PPanGGOLiN in a conda environment, can I update to add the fix you just pushed? Thank you! |
For the hotspot command, i've done multiple changes lately (related to other issues), so updating PPanGGOLiN will likely help you with the figure labels. There's actually an additional option to the spot command to control which information to use as labels, which makes things simpler. Details on how to use this option were given in this message: #56 (comment) (I've not updated the wiki yet) If you are in a conda environment, you can just use the two lines I wrote in my first message while the environment is activated, it should work nicely. For the 'conda update' to work it involves making a new release, and then updating the bioconda recipe, which involves additional work for people other than me so I avoid doing it too often. |
Hi, It is not currently possible, but I can add it as an additional filter quite easily, I'll do that later today. I'll tell you when the feature is on the master branch. Adelme |
The latest commit introduces the new filter 'product' to display what can be found in the 'product' field of annotation files, which is what you were looking for I believe. You need to install it from git, like last time, and you can use it as such:
for example, which will display the product if there is one, if not the gene name if there is one, and if not the gene ID. I've updated the margins as well so that the display is not too bad, but there will probably be some overlapping labels. |
Indeed that's quite unreadable. It's probably possible to do that, I'll take a look at it within a few days. |
The latest commit on the repository adds a new option to the spot command "--fig_margin" which can help you increase the space between the represented RGPs. I'll try to think of a better way to customize the figures in the futur. Adelme |
Hi Adelme, This is great! I appreciate your willingness to work on this and to push all of these commits through so quickly. The new '--fig_margin' option is working perfectly for our purposes. Cheers, |
Hi All,
I am trying to use some RAST annotations that seem to be generating a file that will not open in Gephi. Here is an example of the file and also an example of the pangenomeGraph file I am getting (it is blank when opening in Gephi).
Thank you! Awesome work on PPanGGOLiN
FN_KCOM1281 - Copy.zip
pangenomeGraph-RAST.zip
The text was updated successfully, but these errors were encountered: