I have a large
igraph as follows:
IGRAPH f3064a8 DN-- 4482 17489 -- + attr: name (v/c), id (v/c), symbol (v/c), description (v/c), pathway (v/c), activationSignal (e/c), status (e/c)
After that, I want to
subgraph a query with genes of interest in order to know which pathways are active. A single node in
g might participate in multiple pathways, but
V(g)$description displays the "function" of the gene (i.e. TF, Receptor, Protein...). Based on that info, what I do not know is what's the best approach?
Subgraphspecifically the genes of interest and based on that obtain the
V(g)$pathway(pathways) flow. This means, the pathways containing just the genes of interest.
neighborhoodof the genes of interest (
order = 1) and based on that obtain the
V(g)$pathway[grepl('Receptor', V(g)$description)](receptors for pathways) flow. This means, obtain the neighbor receptors which activate pathways.
Any help is much appreciated!