<p>I have recently develop an R <a href="https://github.com/llrs/GSEAdv" rel="nofollow noreferrer">package</a> (sorry not a Cytoscape solution) to deal with this kind of situations of something grouping other elements, like pathways and genes.<br>
The package is based on GSEABase of Bioconductor to store this relationships. Basically you should store a gene set for each TF and genes it is linked. I would recommend to use the name of the TF as the name of the gene set and then create a GeneSetCollection to be able to use the package.</p>

<p>The package provides with functionalities that allow you to calculate the distribution of genes per gene set (using <code>genesPerPathway</code>), as well as, <code>pathwaysPerGene</code> to know in how many other TF regulate each gene. </p>

<p>I am not sure of the biological inference you can take from this (I designed the package to test this) but you can also see if there is some specific preference for the TF to link to genes which are also regulated by other TF. This could be done by looking at the conditional probability (<code>condPerPathways</code> or <code>sizesPerPathway</code>).<br>
Sorry the manual pages don't have examples and the vignettes are incomplete yet. </p>

<p>Also you could use the package <a href="https://cran.r-project.org/package=tidygraph" rel="nofollow noreferrer">tidygraph</a> to calculate the centrality of the TF or of the genes you want. </p>

CC BY-SA 4.0
2018-05-28T14:48:13.703Z
2018-05-29T07:10:45.227Z
2018-05-29T07:10:45.227Z
llrs
<p>I am trying to find over-expressed motifs in a bipartite transcription factor gene network.My genes are not very well characterized, so finding functional motifs has been a challenge. I used the motif-discovery app on Cytoscape and calculated the total number of 3 node motifs on the network. In my network, where transcription factors regulate genes, the only kind of three node motif that is possible is a simple input module.</p>

<p><a href="https://i.sstatic.net/A1jiI.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A1jiI.jpg" alt="enter image description here"></a></p>

<p>This is an example of a simple input module where a transcription factor regulates multiple genes</p>

<p>I further created random networks to my real world network and statistically (Student's t-test) proved that there are more number of single input modules in the real rather than the random network. However, I am just not feeling satisfied with just this one explanation because I would have like to draw some biological inference from this. I was thinking of also analysis the 4 node and 5 node motifs in the network, find the number of times any of my hub nodes occupy a single node of these motifs and maybe use that and prove the importance of my hub nodes (though hub nodes are worthy of more exploration just by virtue of their high degree). Has somebody done something like this previously. It is a given that hub nodes would be part of the maximum number of motifs just by virtue of their high degree and connection to multiple genes. So would this prove to be redundant?</p>

<p>Thank you in advance for any help that could be provided. </p>

CC BY-SA 4.0
2018-05-28T07:53:08.940Z
By motif I understand that you reffer to a pattern. But it is unclear if each TF has only 3 genes or any number of genes? How did you perform the t-test to compare your random networks with your found network? In general yes, it is said that highly connected genes are important and are highlighted for further studies.
llrs
CC BY-SA 4.0
2018-05-28T13:49:48.453Z
@Llopis The TFs have multiple genes connected to each one. I just looked for 3 node motifs on the network. For doing the t-test, I generated 500 random networks similar to the one I have and (same number of nodes and edges) and I compared the total three node motifs in the random numbers against the number of 3 node motifs in my real network using the student's t-test.
The Last Word
<networks><motifs>
Motif Discovery in Bipartite networks using Cytoscape
# Motif Discovery in Bipartite networks using Cytoscape

(Asked by: username_0 on 2018-05-27)

I am trying to find over-expressed motifs in a bipartite transcription factor gene network.My genes are not very well characterized, so finding functional motifs has been a challenge. I used the motif-discovery app on Cytoscape and calculated the total number of 3 node motifs on the network. In my network, where transcription factors regulate genes, the only kind of three node motif that is possible is a simple input module.

[![enter image description here](https://i.sstatic.net/A1jiI.jpg)](https://i.sstatic.net/A1jiI.jpg)

This is an example of a simple input module where a transcription factor regulates multiple genes

I further created random networks to my real world network and statistically (Student's t-test) proved that there are more number of single input modules in the real rather than the random network. However, I am just not feeling satisfied with just this one explanation because I would have like to draw some biological inference from this. I was thinking of also analysis the 4 node and 5 node motifs in the network, find the number of times any of my hub nodes occupy a single node of these motifs and maybe use that and prove the importance of my hub nodes (though hub nodes are worthy of more exploration just by virtue of their high degree). Has somebody done something like this previously. It is a given that hub nodes would be part of the maximum number of motifs just by virtue of their high degree and connection to multiple genes. So would this prove to be redundant?

Thank you in advance for any help that could be provided.

**Tags:** networks, motifs
> **Comments:**
> **username_1**: By motif I understand that you reffer to a pattern. But it is unclear if each TF has only 3 genes or any number of genes? How did you perform the t-test to compare your random networks with your found network? In general yes, it is said that highly connected genes are important and are highlighted for further studies.  
> **username_0**: @Llopis The TFs have multiple genes connected to each one. I just looked for 3 node motifs on the network. For doing the t-test, I generated 500 random networks similar to the one I have and (same number of nodes and edges) and I compared the total three node motifs in the random numbers against the number of 3 node motifs in my real network using the student's t-test.  

---

## 1 answers

### Answer by username_1 on 2018-05-28. Score: 2 | Accepted answer

I have recently develop an R [package](https://github.com/llrs/GSEAdv) (sorry not a Cytoscape solution) to deal with this kind of situations of something grouping other elements, like pathways and genes.  
The package is based on GSEABase of Bioconductor to store this relationships. Basically you should store a gene set for each TF and genes it is linked. I would recommend to use the name of the TF as the name of the gene set and then create a GeneSetCollection to be able to use the package.

The package provides with functionalities that allow you to calculate the distribution of genes per gene set (using `genesPerPathway`), as well as, `pathwaysPerGene` to know in how many other TF regulate each gene.

I am not sure of the biological inference you can take from this (I designed the package to test this) but you can also see if there is some specific preference for the TF to link to genes which are also regulated by other TF. This could be done by looking at the conditional probability (`condPerPathways` or `sizesPerPathway`).  
Sorry the manual pages don't have examples and the vignettes are incomplete yet.

Also you could use the package [tidygraph](https://cran.r-project.org/package=tidygraph) to calculate the centrality of the TF or of the genes you want.


---

