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

gomwuplot error #8

Closed
Abigailtangtang opened this issue Dec 23, 2020 · 7 comments
Closed

gomwuplot error #8

Abigailtangtang opened this issue Dec 23, 2020 · 7 comments

Comments

@Abigailtangtang
Copy link

Dear Dr. Matz,
Hi, I tried to run GO_MWU.R on my ThinkPad, but when I tried to plot results some error happened.
The plot was generated successfully but the following steps could not be performed.

`results=gomwuPlot(input,goAnnotations,goDivision,

               absValue=-log(0.05,10),  # genes with the measure value exceeding this will be counted as "good genes". This setting is for signed log-pvalues. Specify absValue=0.001 if you are doing Fisher's exact test for standard GO enrichment or analyzing a WGCNA module (all non-zero genes = "good genes").
               #	absValue=1, # un-remark this if you are using log2-fold changes

               level1=0.1, # FDR threshold for plotting. Specify level1=1 to plot all GO categories containing genes exceeding the absValue.

               level2=0.05, # FDR cutoff to print in regular (not italic) font.
               level3=0.01, # FDR cutoff to print in large bold font.
               txtsize=1.2,    # decrease to fit more on one page, or increase (after rescaling the plot so the tree fits the text) for better "word cloud" effect
               treeHeight=0.5, # height of the hierarchical clustering tree
               #	colors=c("dodgerblue2","firebrick1","skyblue2","lightcoral") # these are default colors, un-remar and change if needed

)

GO terms dispayed: 64
"Good genes" accounted for: 1572 out of 2625 ( 60% )
Warning messages:
1: In plot.formula(c(1:top) ~ c(1:top), type = "n", axes = F, xlab = "", :
the formula 'c(1:top) ~ c(1:top)' is treated as 'c(1:top) ~ 1'
2: In plot.formula(c(1:top) ~ c(1:top), type = "n", axes = F, xlab = "", :
the formula 'c(1:top) ~ c(1:top)' is treated as 'c(1:top) ~ 1'`

The last few lines are the warning messages I got. It happened either I input my data file or the example file you offered. As a consequence, result[[1]] does not work, as well as the following steps.
Could you please give me some suggestions?
Thanks a lot!

Abigail

@z0on
Copy link
Owner

z0on commented Dec 23, 2020 via email

@Abigailtangtang
Copy link
Author

Dear Misha,
Thanks for your reply!
Sorry, that was a typing mistake. Actually, I copied and pasted results[[1]] from GO_MWU.R to run in RStudio.
I noticed that you have updated the script and I have tried both, but this warning message always appeared.

Best wishes
Abigail

@z0on
Copy link
Owner

z0on commented Dec 24, 2020 via email

@Abigailtangtang
Copy link
Author

Oh, maybe that is the point! I updated the R and it works well now.
Thanks a lot for providing such a good package!

@z0on
Copy link
Owner

z0on commented Dec 24, 2020 via email

@Abigailtangtang
Copy link
Author

I am sorry for that. Thanks so much!
Merry Christmas!

Abigail

@z0on
Copy link
Owner

z0on commented Dec 26, 2020 via email

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

2 participants