Skip to content
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

plot_NOGs.R: How to actually plot the annotations? #3

Open
browngcm opened this issue Dec 14, 2017 · 2 comments
Open

plot_NOGs.R: How to actually plot the annotations? #3

browngcm opened this issue Dec 14, 2017 · 2 comments

Comments

@browngcm
Copy link

Hello,

Forgive my ignorance, but I was wondering if you could specify how I would actually create a visual plot of the eggnog annotaions using the plot_NOGs function. This is the only part of the trinotateR functions that I'm having trouble with. Any info would be great. Thanks!

Mike

@cstubben
Copy link
Owner

cstubben commented Dec 14, 2017

No problem. That function requires eggNOG annotations from EMBL, which I should add to the data directory. You can download it using the code below (note the function requires both cog and eggNOG tables).

x <- read_trinotate("Trinotate_report.xls")
data(cogs)
download.file("http://eggnogdb.embl.de/download/eggnog_4.5/data/NOG/NOG.annotations.tsv.gz", "NOG.annotations.tsv.gz")
system("gunzip NOG.annotations.tsv.gz")
egg <- read.table("NOG.annotations.tsv", sep="\t", stringsAsFactors=FALSE, quote="")
names(egg) <- c("db", "nog", "proteins", "species", "class", "description")
plot_NOGs(x)

plot_nogs

@mostafaabuzaid25
Copy link

png::writePNG(plot_NOGs(x),"eggnog.png") Error in plot.new() : figure margins too large

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants