-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error in diffnet(). 'net' is a single network #66
Comments
Hi Valentin, This is indeed a bug. I'm on it ... Sorry for the inconvenience! Best, |
diffnet() threw an error if association matrices are used for network construction (netConstruct argument "dataType" != "counts").
@Valentin-Bio, could you please install NetCoMi from develop branch and check whether everything works? You'll have to set the new arguments Please, let me know if there are further problems. Best, |
Hello Stefanie, thanks for the fast answer!. I'm having problems uninstalling the master branch repo with best, Valentín |
Ok , so I ran the following code:
then executed the
I have the following error message: _
my data have different number of samples as shown in teh Best, Valerntín |
Hey Valentín, Regarding the installation: And now back to diffnet: A different number of samples is no problem for the approach. I also tested with different values for n1 and n2. You could run the following code to check whether diffnet works in principle:
Best, |
Hey Stefanie , I ran the
Besides that, to run the fisher test, I understand I need to have the same dimensions on both matrices and input the sample sizes for each net. As input data I only have the adjacency matrices from SpiecEasi and they have different dimensions. (different ASVs quantity). To handle that I looked for the common ASVs on the following manner: Matrix 1 subset
Matrix 2 subset
Edit: the above code is a bad approach. ASVs's IDs are not taxa specific From there, both matrices have the same taxa (thus same dimensions)
So I built the netcomi networks and ran
message:
But when I plot the
Examining the |
Hi Valentín, As stated in the documentation of The plot function has an Best, |
Ok I used the unadjusted differences, thanks so much Stefanie. Best, Valentín. |
Hello , I've got a problem with the
diffnet()
. I elaborated a net withnetConstruct()
:Then when I run
diffnet()
diff_oral_NO_AR <- diffnet(oral_NO_AR_net, diffMethod = "fisherTest", adjust = "adaptHB")
This is the error message:
Error in diffnet(oral_NO_AR_net, diffMethod = "fisherTest", adjust = "adaptHB") :
'net' is a single network. A group vector must be passed to 'NetConstruct()'
for network comparison.
seems like
diffnet()
is not recognizing the other network from the oral_NO_AR_net object.I took a look to the
oral_NO_AR_net$assoMat1
andoral_NO_AR_net$assoMat2
variables to see if there is some lacking data but the association matrices are present.In consideration, both nets have different number of samples and different number of OTUs, in what way does it affect the analysis?
The text was updated successfully, but these errors were encountered: