PayamDiba / SERGIO

A simulator for single-cell expression data guided by gene regulatory networks
GNU General Public License v3.0
55 stars 28 forks source link

import from networkx graph and correct bug for grn_from_human #22

Open g-torr opened 1 year ago

g-torr commented 1 year ago

The function grn_from_human was not working. To correct the bug, I download the Regulatory Directions from RegNetwork and use networkx to perform the network manipulation.

Additional changes

I changed the function that removes cycles to reduce the number of links removed . I also change the method that performs sampling to keep the network connected if possible.

New functionality

Furthermore, I create the grn_from_networkx function that allows more flexibility in using a custom topology for simulations.

Finally, I implemented a minimal working example on a jupyter notebook