Hi Chris,
We’re trying to use brainGraph to determine if a brain network
identified by our study has rich club characteristics. We're having a lot of problems. Answers to the following questions would help us a lot:
(1) What exactly is the format of the network object required as the first input to rich.club.norm() ?
The relevant man page suggests any valid igraph object would do. So we tested the behavior of rich.club.norm() using some valid demo igraph objects (see the R code at the very bottom of this note.) But we get the following error
> my.results<-rich.club.norm(net,
N = 100, rand = NULL, weighted=FALSE) # Where 'net' is a valid igraph graph object
> Error in { : task 1 failed - "result would be too long a vector"
So it seems that not every igraph object would do. How should we re-format our network?
(2) How to pass the last argument ('Other parameters') to rich.club.norm() ?
The man page says:
... Other parameters (passed to rich.club.coeff)
What exactly does that mean? For instance, should we pass the arguments to rich.club.coeff(), and then include the output object of rich.club.coeff() as the last input to rich.club.norm()?
(3) Finally, a general question that subsumes the above two: Is there example code/tutorial that explains, in a step-by-step fashion, how one would go about testing whether a given brain network can be characterized as rich club or not?
Thank you very much,
Brianna
#############################################################################################################
#Sample R test code to test the behavior of rich.club.norm() :
library("igraph")
library("brainGraph")
#Code copied from section 3.2 of the web page http://kateto.net/networks-r-igraph.htm (path added by me).
nodes2 <- read.csv("C:/lab/network/igraph/netscix2016/Dataset2-Media-User-Example-NODES.csv", header=T, as.is=T)
links2 <- read.csv("C:/lab/network/igraph/netscix2016/Dataset2-Media-User-Example-EDGES.csv", header=T, row.names=1)
links2 <- as.matrix(links2)
net <- graph_from_incidence_matrix(links2)
my.results<-rich.club.norm(net, N = 100, rand = NULL, weighted=FALSE)
#############################################################################################################
--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-help+unsubscribe@googlegroups.com.
To post to this group, send email to brainGraph-help@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/5ee94853-cb52-4844-80a3-3ddb3e87994a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-help+unsubscribe@googlegroups.com.
To post to this group, send email to brainGraph-help@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/aabf1e8a-66ad-4145-9afa-9969304316f6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-he...@googlegroups.com.
To post to this group, send email to brainGr...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-help+unsubscribe@googlegroups.com.
To post to this group, send email to brainGraph-help@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/7c49a29c-7be3-41b9-a161-1dc12eb76f75%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "brainGraph-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brainGraph-help/j3-2tXxDhvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brainGraph-help+unsubscribe@googlegroups.com.
To post to this group, send email to brainGraph-help@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/CAHVz74h2kjex%2BKqgaLkY2baZL8hDbJuaj13RyXhFyUz9V2Mk6Q%40mail.gmail.com.