-
Notifications
You must be signed in to change notification settings - Fork 56
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
Several errors when performing findModules steps individually #97
Comments
Hi, you can pass the list of powers which can be one single value. In your case, it would be something like this:
for those arguments that we pass in the initial phase, you should change them in this way:
about the plotting part, I will fix the plotting part in the next release. (I forgot to use the parameter for plotting part but the results should be fine and use the correct threshold) for Best, |
Brilliant, thank you. I tried to set I also found other mini errors and little things that could turn into enhancement suggestions. Would you prefer having separate issues for each of those or one issue listing all of them? Thanks again! |
Hi again, I wanted to add that if I simply run
|
Hi, powers is the list of powers that we test to have a scale-free network but power is the one that we selected between powers that pass our criteria. could you send me the script you used + a version of pyWGCNA for the other errors you got? if you have suggestions for enhancements like adding features or something like that please open a separate issue because I need to check whether I have the bandwidth to add it or not but if it's an error you can keep it in the same issue. Best, |
I am using here is the script:
|
I stand corrected, setting self.powers = [x] might not work as expected because the SFT.r.sq values (and all other statistics) are not the same as the one generated by the pickSoftThreshold function.
B) running
C) running:
returns different statistics in the sft table:
Best, |
on more questions, did you initiate/define your object each time you ran them? |
yes I did! and I redid it just now to be sure. |
Hello!
I am trying to customize my analysis, which means that I want to provide a different soft threshold to that automatically selected by the findModules function (hence, pickSoftThreshold).
Since it is not possible to pass the power as argument, I started playing around with the parameters of findModules and other functions so to tailor the analyses to my needs, but I encountered several errors. I am going to describe what I did and the error messages I had.
First error: if I try to set a different
RsquaredCut
threshold from the findModules function, I get the following error:if I pass the RsquaredCut parameter when I create the WGCNA object, I can successfully adopt my preferred R^2 threshold, but the power plot still shows a red line on 0.9 instead of my provided R^2 threshold.
Anyway, I then started replicating all the steps of findModules so to calculate the TOM similarity matrix with the power I want (which is my end goal).
The first step would be to calculate the adjacency matrix. According to the documentation we can do that with the adjacency function, but I think it has the same name and it is called the same way as the adjacency layer.. so I cannot calculate it.
As I mentioned,
pyWGCNA_OSCC.adjacency
returns an adjacency matrix calculated by findModules - if I run it.Finally, I tested also how to calculate the TOM similarity matrix from the adjacency matrix (the one that was calculated by the findModules function, since I could not create my own). And I get an error here as well:
I just want to stress that if I run
pyWGCNA_OSCC.findModules()
this works fine and creates the adjacency and the TOM matrixes.Thanks for the help and for developing a python version of WGCNA!
Martina
The text was updated successfully, but these errors were encountered: