Skip to main content
F1000Research logoLink to F1000Research
. 2017 Jun 15;5:2524. Originally published 2016 Oct 17. [Version 2] doi: 10.12688/f1000research.9203.2

Creating, generating and comparing random network models with NetworkRandomizer

Gabriele Tosadori 1,4,a, Ivan Bestvina 2,b, Fausto Spoto 1, Carlo Laudanna 3, Giovanni Scardoni 4
PMCID: PMC5686481  PMID: 29188012

Version Changes

Revised. Amendments from Version 1

We improved the manuscript following the suggestions of the reviewers. In particular, we addressed the points 1 to 9 that were raised by the reviewer 2. We added some more detailed descriptions and added some missing information. Also, we tested the app in order to verify that everything is working since the reviewer raised some concerns. An issue related to a point the reviewer raised is currently not resolved. In particular, it seems that a bug arises, most probably due to the Java version system, while using our app in Mac-based systems. Specifically, it was not possible to add the textual version of the folders path in order to show the users where the files, obtained using the statistical module, will be saved. Finally, since the computation does not, usually, take a lot of time, we decided not to add a progress bar for the current version of the app.

Abstract

Biological networks are becoming a fundamental tool for the investigation of high-throughput data in several fields of biology and biotechnology. With the increasing amount of information, network-based models are gaining more and more interest and new techniques are required in order to mine the information and to validate the results. To fill the validation gap we present an app, for the Cytoscape platform, which aims at creating randomised networks and randomising existing, real networks. Since there is a lack of tools that allow performing such operations, our app aims at enabling researchers to exploit different, well known random network models that could be used as a benchmark for validating real, biological datasets. We also propose a novel methodology for creating random weighted networks, i.e. the multiplication algorithm, starting from real, quantitative data. Finally, the app provides a statistical tool that compares real versus randomly computed attributes, in order to validate the numerical findings. In summary, our app aims at creating a standardised methodology for the validation of the results in the context of the Cytoscape platform.

Keywords: random networks, cytoscape, network randomisation, network analysis, network generation

Introduction

In network analysis many tools have been developed to address different problems related to the extraction of useful information from systems modelled as graphs 1. Cytoscape 2 is a very well known platform, supporting hundreds of apps, that simplifies the information mining in complex networks, with a specific focus on biological applications. By using Cytoscape it is possible to perform topological analysis, cluster and motif retrieval, biological enrichment, draw nice graphs, search for ontologies, etc. As the number of apps increases, the possibilities of performing more and more complex analysis grows together with the amount of information that could be used and retrieved. The problem is that this analysis remains, in general, preliminary to further experimental validations and, in this sense, a sort of benchmark for an in-silico validation is required 3. A possible solution to this issue may come from the biological background of the process, from the literature or from experimental data 4. But this is not always possible since the network may represent some complex processes whose biology is yet not well understood, or that take advantage of some novel insights that require a different validation. In these cases, when biological evidences are missing or incomplete, an interesting approach allows comparing the real experiments with a set of randomly generated experiments to verify the robustness of the real data 5. In network analysis this is achieved by comparing the networks under investigation, with some randomly generated networks.

It is important to note that some apps that allow performing network comparison exist. For instance GASO-LINE, NetMatch , DyNet and RandomNetworks 6. RandomNetworks has a lot of similarities with our app but is no longer maintained and it works only with Cytoscape 2.x which makes it useless with the newly developed Cytoscape platform. This was one of the main reasons that inspired NetworkRandomizer. The other apps we cited allow comparing network but none of them allows generating random networks.

In this sense, our app was created to address the problem of creating a validation layer that allows simulating random experiments. By using randomly created networks, it becomes possible to compare, by means of specific statistical tests, the numerical results that come from a common network analysis. To do so, Network Randomizer allows randomizing existing networks by using a simple shuffling algorithm and a degree preserving algorithm. Moreover it allows creating Erdős–Rényi, Barabási–Albert, Watts-Strogatz, Lattice, and Community Affiliation models. We also implemented the Multiplication model which is designed to generate weighted networks where nodes are multiplied, i.e. represented in different copies which have the same topological characteristics, to fit quantitative data. Finally a statistical module, based on the two-sample Kolmogorov-Smirnov test, compares networks in order to evaluate if their numerical attributes come from the same distribution or if they should be considered different. The original idea behind the app was to compare topological indexes, the so called centralities, computed by using CentiScaPe 7 or the Cytoscape’s built-in Network Analyzer. However, our app supports the comparison of all kinds of numerical attributes in order to be useful to all users. It is important to note that comparing random data with real data is not always a trivial operation. Generating random networks does not necessarily mean that we are able to obtain actual random networks. Indeed, some basic information, like for instance the number of nodes or edges, will always make the randomisation non random at some levels. Also we do not know which way is better in creating random networks in order to compare them with real data. Finally, it is important to consider that, when creating an in-silico dataset for validating real data, the bigger the random dataset, i.e. the more the networks, the finer the comparison will be. Eventually, the results will be more reliable.

To make an example that clarifies the utility of our app, lets start with a network that models a specific pathology, i.e. the protein-protein interactions that are known to be involved in the development of lung cancer. Lets suppose that, by performing a network analysis, some interesting properties arise like, for instance, a very peculiar centrality index, e.g. Eccentricity. It could be interesting to build a set of randomised networks, that comprise the same number of nodes and edges as the original, biological network, in order to evaluate if the Eccentricity values are found in randomised networks or if it is a very specific, hence important, property or our network. By using our app, performing such comparison becomes very easy and accessible through Cytoscape.

Methods

Implementation

NetworkRandomizer follows a modular structure, making it easy to add additional random network models in future releases. Each model is initialised with some user’s specified parameters and once the generation is done the app deploys the network into the Network Control Panel, making it instantly available to the user for future use. Since the user may want to generate a number of random networks, the network views are not created by the app, in order to avoid pop-ups of networks in the Cytoscape window during the algorithm’s computation.

The app is divided in several classes which allow a very flexible and modular structure. The CyActivator class runs the application and communicates with Cytoscape. The RandomizerCore class is used as a model of the current Cytoscape state (network handling etc.). The MenuAction class allows app initiation. The OptionsMenu class refers to the main GUI which is used to interact with the app. The ThreadEngine allows creating and handling threads and multithread tasks. Finally the AbstractModel is an abstract class which defines the basic random model and offers several methods that could be useful when defining a new model. The other classes in the app refer to the models we implemented. In order to add a new model, a new class should be instantiated by following the AbstractModel implementation. Then it is necessary to modify the GUI in order to let the new model become part of the app.

The statistical module that we implemented is a two-sample Kolmogorov–Smirnov test 8. It takes each pair of real and random network, and for each of the attributes used, it calculates the difference between their distribution. The K S definition of the distribution difference is the maximum gap between the cumulative probability functions of those probabilities. Although it relies on the cumulative probability functions, they never need to be explicitly calculated. In fact, the algorithm only needs to sort the two lists of attribute’s values and then run through them in parallel, summing the normalised (divided by the sum) values along the way and comparing the two sums, saving only the largest difference.

Operation

System requirements. To install and run the NetworkRandomizer app, the Cytoscape software must first be installed. Once this is done, no additional system requirements exist since the app does not use any external library nor does it significantly increase the memory consumption. An updated Java version is suggested, since the last Cytoscape version works only with Java 8.

It is important to note that, when using the Multiplication model, the number of nodes that are generated could result in a huge network. This is due to the model itself which, starting from an user defined attribute, creates an array of random weights which will result in a number of nodes. It works by creating a range between the minimum and the maximum values found in the file, hence in the worst case the algorithm will create a network with #max copies of nodes for each node. In numbers this means that if the attribute file varies in a range [0 − 100] and the real network is made of 10 nodes, then the algorithm in the worst case may generate a network with 100 ∗ 10 nodes. Memory usage problems may also arise within the other models, depending on the number of nodes the user selects for creating a random network.

Workflow. The usual NetworkRandomizer workflow consists of a few distinct steps. First of all, the user needs to load one or more real networks. Depending on whether one or multiple networks are loaded, the final output will be different. It consists of a file which shows the results of the statistical analysis. If there is only one real network, the output file will present more details about it. If there are multiple real networks, then the output file will be a summary of all the statistical tests that were carried out.

After loading the networks, the randomisation step creates random networks. The random networks may be created either by randomizing real networks, using the edge shuffle algorithm (degree preserving or completely random) ( Figure 2), or by generating new random networks by using one of available models ( Figure 3 and Figure 4).

Figure 1. Statistical module: after data are generated, the statistical module allows comparing all the networks attributes in order to find important patterns.

Figure 1.

The attribute to be compared must have the same name in all the networks that are selected (it is also case-sensitive).

Figure 2. Randomisation interface: the users can choose between a simple edge shuffle, or the degree preserving version.

Figure 2.

Both of them are intended for randomizing an already existing networks.

Figure 3. Random network models: Erdős–Rényi, Watts–Strogatz, Barabási–Albert.

Figure 3.

They require some parameters which are inserted by the user. Some labels, in red, help the user in order to correctly fill the fields.

Figure 4. Multiplication model network generator, lattice generator and Community Affiliation Graph model.

Figure 4.

The Multiplication and the Community Affiliation requires a file as input, in order to generate random networks.

After real networks are loaded and random networks generated, it is possible to compare their shared attributes. Since the app was initially designed to be used in conjunction with centrality parameters, we recommend using the CentiScaPe app which is completely compatible with our NetworkRandomizer. It is important to note that the app allows comparing the attributes with the same name in all the networks that are selected within the statistical module. Basically, once the networks are selected, only the shared attributes across all networks would appear as possible attribute choices. If there are no attributes that are shared, the user should check the names in the Node Table panel of Cytoscape.

Finally, once all the data is available, the statistical test ( Figure 1) compares the selected attributes, pinpointing their differences and similarities and giving a textual file which summarises the results. Each part of the app has a question mark button which provides help to the users, making the NetworkRandomizer easier to use, as well as appropriate for educational purposes.

Use cases

Data preparation. In order to use the app we present a typical use case to guide the users through the network analysis process, using the NetworkRandomizer.

The first step when analyzing any network with Cytoscape apps is to import the network into the Cytoscape software. After that, as said, some information is required, and even though we focused on topological centralities, it is possible to use any kind of numerical information. There are multiple ways to fill in this information. It is possible to import a .csv file, to create a new attribute or to use a built-in network analyzing function.

A more advanced approach is to use a popular centrality measures app, i.e. CentiScaPe, which can be downloaded from the Cytoscape Apps store. It provides the users (and consequentially the NetworkRandomizer itself) with more information about the networks, and, finally, results in a much wider perspective on differences between them. It is important to note that by using these apps one obtains standard names for the attributes. Caution should be taken when using user defined attributes, that the same attribute names are used for the real and for the random networks otherwise no attribute will appear while performing the statistical analysis.

Generating random networks. There are two main methodologies for generating random networks. By using the random network models or by randomizing current, real networks. For obtaining better results, random networks should be made as similar as possible to the real ones, as this will allow detecting the most important differences between those two groups.

To randomise an existing network, one needs to be chosen first. This is done by simply creating a View: right click on the network from the Network Control Panel, and choose Create View. Once the network is selected, there are two randomizing methods that can be used: simple edge shuffle, and degree preserving edge shuffle. Users can choose one or both models by checking the boxes ( Figure 2). Once the module is selected, the Start button runs the randomisation.

Apart from the randomisation option, the main part of the Randomizer consists of multiple random network models. Currently implemented models are: Erdős–Rényi 9, Watts–Strogatz 10, Barabási–Albert 11, lattices and Community Affiliation Graph 12. There is also a new model which we called the Multiplication model.

Erdős–Rényi model ( Figure 3) generates fully random networks by either uniformly choosing M pairs of nodes to connect, or by connecting each pair with probability p. Watts–Strogatz model ( Figure 3) generates networks which show the so called small-world phenomenon. Here, although the network is not dense, the average shortest path is still significantly low. Networks generated by using the Barabási–Albert model ( Figure 3) are scale-free networks, meaning that their degree distribution follows a power law distribution. The model uses the preferential attachment growth, hence each new node is connected to m other nodes, choosing them with a probability which is proportional to their degree. Once a model is selected the users are informed about the parameter constraints by a red label ( Figure 3). The labels update their values, in order to be more helpful, once they are filled in correctly and after pressing the Enter button.

Multiplication model ( Figure 4) generates randomly weighted network ( Figure 5). The algorithm generates a random array which defines a weight for each node belonging to an existing, user-defined network, starting from an attribute file which contains quantitative information about the nodes. The file may contain two or more numerical values defining the quantitative values represented by a possible experimental setup. The algorithm creates a range extracting from this file the minimum and the maximum values and then generates a number of random weights in the range that are assigned to the nodes. Finally the algorithm creates a new network which contains the same number of copies, but with a new attribute that defines the weight that are assigned to each node. This random weighted network represents a possible experimental setup which derives from the attribute file. In this sense it is possible to generate a number of randomly weighted networks, in order to simulate a set of experiments. The new nodes, that are added as copies of existing nodes, have the same neighbours of the original node and share an edge with the original node and each of its copies. The multiplication model gives two different outputs. The default output is the network that is being multiplied with a new attribute that defines the new, randomly assigned weights. The second, user selected, output is a graphical version of the network showing the actual number of nodes, depending on their weights. It is important to note that the file that is passed as input should contain numerical values, separated by a dot in case of floating values. Also it is important to note that, by passing a file with only zero or one the returned network will not be multiplied since the algorithm generates a range that is in between zero and one. To properly multiply a network the input file should contain values higher than one.

Figure 5. The algorithm for the multiplication of the nodes, starting from the network on the left, creates a random array for each new random network that will be generated.

Figure 5.

By using the values in the random array a number of nodes, in green, are added to the original network, represented by the yellow nodes and some new networks are created.

The graphical version option in the multiplied model tab ( Figure 4) allows, if selected, to obtain a network which actually shows the new copies of each multiplied node. This network is not intended for computing centralities but for graphical purposes only. If the option is selected another network that does not shows the copy of the nodes is generated.

Lattice model ( Figure 4) generates regular, multidimensional lattices. Multidimensional lattices are grids of nodes, each of which is connected only to its first neighbours. For example, the one-dimensional lattice is a path graph and is obtained by inserting n = 1 value (for example "5" for a chain of length 5), while the two-dimensional lattice is a square grid, obtained by inserting n = 2 values (for example "3,4" for a 3 by 4 grid). Additionally, users have the option of generating torus-shaped lattices, where there are no endnodes. For example, the one-dimensional torus lattice is a cycle graph, two dimensional torus lattice is a three dimensional torus, etc.

Finally, the Community Affiliation model ( Figure 4) generates random networks from the community information: given a list of communities, their members, and the probability of having an edge between two members of each community, it randomly generates realistic social networks.

Some models require special input files which define their behaviour. The two models that currently require an input file are Multiplication and Community Affiliation. The Multiplication file must contain numerical values, one for each row. It is expected, but not mandatory, that the number of rows is equal to the number of nodes and the Randomizer will pop up a dialog which asks the user if the number of values found in the file is correct. The Community Affiliation model requires a file which contains a set of rows where each line represents a community. The rows starts with a p-value the probability of an edge between two members of the community, and is followed by the names of the nodes inside that community, separated by spaces.

One last point concerns the fact that, once the model is selected in the app panel, every time the button Start Randomisation is pressed, each selected model is created in a number of copies chosen by the user ( Figure 6). If the number of networks is not specified, by using the form, the algorithm will generate one network per model. Otherwise the selected number of networks will be generated, for each selected model. In other words, if the user select the two randomisation algorithms, i.e. Degree preserving and Randomize Current Network and then runs the app, as a result the app will return two randomised network. This means that, after a computation, we suggest removing the check mark from all the models in order to avoid creating a number of unrequired new networks, every time NetworkRandomizer runs.

Figure 6. This form allows the user in order to choose how many networks will be generated, once the Randomizer runs, for each selected model.

Figure 6.

Comparing networks. Once random networks are generated, before comparing their attributes to the real ones, at least one numerical attribute should be present in all the networks that will be compared. To run the statistical comparison module, it is necessary to specify which networks it will use. To do this, users need to select the real networks in the Networks Control Panel and press Selected, and then do the same for the random ones. After selecting the networks, a list of all the node attributes shared within all the selected networks is provided. Users can now select the node attributes they would like to compare. If there is not a shared attribute then a dialog will appear telling the user to check the attributes again. Selection is done using the left-click and additional keys, Ctrl for one-by-one multiple selection, Shift for range selection, and Ctrl+A to select all. Once the attributes are selected, output file name and directory need to be specified, and the comparison can be executed by clicking the Start Statistics button.

Interpreting the results. Every output file consists of multiple comma-separated-values fields, each one beginning with an explanation marked by the > symbol. First few fields define the names of the networks used. The other fields differ, depending on whether only one, or multiple real networks are used.

If there is only one real network, output is either fragmented into centrality measures used, or into random networks to which the real one is compared. The first field indicates how different is each random network from the real one by using the average difference across all centralities. The second field represents the difference between the real network and its most similar random network, according to each centrality measure individually. The last field provides more in-depth information, specifying the difference between the real network and each random one, for each centrality measure.

Showing all of the generated data to the user, in the case of multiple real networks, would result in a very unreadable output. To avoid this, only the most interesting points are chosen: either the pairs of real and random networks, or the pairs of real networks and centrality measures which show the least statistical differences. This way, users can check their networks for important non-random processes. The first field specifies the average difference across all centralities between real networks and their most similar random network. The second field shows the most similar random network with respect to the real one, for each real network and each centrality, and specifies their difference. The last field is the real-random distance matrix, with distances defined as average difference across all centralities. A value of 0 indicates that the distributions are completely the same, up to a normalisation factor. Normalisation factor, in this sense, is the number of elements in the series. So, for example, the series [1, 2, 3] and [1, 1, 2, 2, 3, 3] would be completely the same. A value which is close to 1 indicates the existence of an important difference between the distributions. This result is rarely achieved in real datasets, and it happens when the elements of one series are all greater than the elements of the other.

Summary

To summarise, our app allows generating and creating random networks and is useful whenever a validation benchmark is required. Starting from real networks it is possible to compare their attributes with randomly generated attributes obtained by analysing random networks. The main issue concerns the fact that there is not a specific model that should be suggested in a specific setup or with some specific kinds of data. It is up to the user to select which model best describes the network and its mathematical characteristics.

Concluding, our app is designed to be as general as possible having a very wide range of applications and to be completely user-friendly, giving the possibility to perform a simple, but meaningful, statistical analysis and a readable output.

Software availability

1. http://apps.cytoscape.org/apps/networkrandomizer

2. https://github.com/gabrielet/Network-Randomizer authors Gabriele Tosadori and Ivan Bestvina

3. Link to source code as at time of publication ( F1000Research TO GENERATE)

4. Link to archived source code as at time of publication ( F1000Research TO GENERATE)

5. Software license: Apache License, Version 2.0

Acknowledgments

We would like to acknowledge the National Resource for Network Biology (NRNB) Training Program which allowed the actual development of the app.

Funding Statement

This work was supported by: Italian Association for Cancer Research (AIRC, IG16797), MIUR (PRIN 2009), Nanomedicine project University of Verona and Fondazione Cariverona to Carlo Laudanna.

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

[version 2; referees: 1 approved

References

  • 1. Saito R, Smoot ME, Ono K, et al. : A travel guide to Cytoscape plugins. Nat Methods. 2012;9(11):1069–1076. 10.1038/nmeth.2212 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Cline MS, Smoot M, Cerami E, et al. : Integration of biological networks and gene expression data using Cytoscape. Nat Protoc. 2007;2(10):2366–2382. 10.1038/nprot.2007.324 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Sah P, Singh LO, Clauset A, et al. : Exploring community structure in biological networks with random graphs. BMC Bioinformatics. 2014;15(1):220. 10.1186/1471-2105-15-220 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Haibe-Kains B, Emmert-Streib F: Quantitative assessment and validation of network inference methods in bioinformatics. Frontiers Media SA, Front Genet. 2014;5:221. 10.3389/fgene.2014.00221 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Newman ME, Watts DJ, Strogatz SH: Random graph models of social networks. Proc Natl Acad Sci U S A. 2002;99(suppl 1):2566–2572. 10.1073/pnas.012582999 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Randomnetworks cytoscape app. [Online]. (Date last accessed 13-March-2017). Reference Source [Google Scholar]
  • 7. Scardoni G, Petterlini M, Laudanna C: Analyzing biological network parameters with CentiScaPe. Bioinformatics. 2009;25(21):2857–2859. 10.1093/bioinformatics/btp517 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Wilcox RR: Some practical reasons for reconsidering the Kolmogorov-Smirnov test. Br J Math Stat Psychol. 1997;50(1):9–20. 10.1111/j.2044-8317.1997.tb01098.x [DOI] [Google Scholar]
  • 9. Erdős P, Rényi A: On Random Graphs. Publ Math Debrecen. 1959;6:290–297. Reference Source [Google Scholar]
  • 10. Watts DJ, Strogatz SH: Collective dynamics of ‘small-world’ networks. Nature. 1998;393(6684):440–442. 10.1038/30918 [DOI] [PubMed] [Google Scholar]
  • 11. Barabasi AL, Albert R: Emergence of scaling in random networks. Science. 1999;286(5439):509–512. 10.1126/science.286.5439.509 [DOI] [PubMed] [Google Scholar]
  • 12. Yang J, Leskovec J: Community-affiliation graph model for overlapping network community detection.In Data Mining (ICDM), 2012 IEEE 12th International Conference onIEEE.2012;1170–1175. 10.1109/ICDM.2012.139 [DOI] [Google Scholar]
F1000Res. 2017 Jul 4. doi: 10.5256/f1000research.12878.r24026

Referee response for version 2

Giovanni Micale 1

Thanks for the efforts in revising the paper and the software according to my points.

Almost all my points were addressed by you. In particular the Multiplication Model is now more clearly explained in the paper and also some obscure parts in the Cytoscape app were properly explained.

I have still few concerns about the paper, that I report in the following:

  1. The Google Doc link to the documentation of the app in the web page of NetworkRandomizer in the Cytoscape App Store seems to be broken. I had to download the manual from the gitHub page of the software. Please fix the link.

  2. Concerning point 5 of my first review, you mentioned NetMatch*, GASOLINE (please change GASO-LINE to GASOLINE in the paper) and DynNet, but you forgot to insert references for these apps. Please add the references. For GASOLINE, please also cite the main paper ( http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0098750), not just the cytoscape app paper.

  3. Concerning point 11, I need to better explain my observation. Suppose that I complete a first statistical experiment with some selected input networks, some selected random networks and one or more selected attributes from the list. Now, suppose that I would like to make another experiment by changing only the attributes. In such a case I need to start again from scratch, by selecting input networks and random networks and finally the new attributes. So, every time I want to make a new statistical experiment I need to start from scratch. This can be tiring for the user. You should somehow fix it.

  4. Anyway, I also observed that the red text near "Selected" buttons is always visible, even though I haven't still selected any network and even in the case I want to make a new experiment. I would suggest to show red texts only after the user has selected some networks, and clear them off whenever the user wants to make a new experiment. Moreover, I would also change the text of the buttons from "Selected" to "Add selected networks" to make the meaning of the button clearer.

As soon as these points will be addressed, I will definitely approve the paper.

I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.

F1000Res. 2016 Nov 1. doi: 10.5256/f1000research.9906.r17030

Referee response for version 1

Francesco Russo 1

The authors proposed a new Cytoscape App to generate random networks and compare them with real data. It consists of the most common approaches for network randomisation. Moreover, the authors proposed a novel method to generate random weighted networks.

There are few implemented apps available in Cytoscape for this purpose, so this app will be very useful and simple to use in a well known framework.

The manuscript is well written and clear. It could be nice and useful to have a figure representing the workflow of the proposed app, if it is compatible with the number of figures allowed for this journal.

I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.

F1000Res. 2016 Oct 31. doi: 10.5256/f1000research.9906.r17046

Referee response for version 1

Giovanni Micale 1

In the paper, Tosadori et al. describe a Cytoscape app for creating random networks according to different random models and comparing them with one or more input networks on the basis of different topological metrics.

The main goal of the app is to help the user in the creation of a benchmark for validating some properties of a real network or a dataset of real networks.

I found the app very interesting and I think that the paper is suitable for being indexed. However, there are several major issues, especially regarding the potential applications of the tool and the statistical part of the app, that need to be addressed before indexing.

  1. The actual usefulness of the app is not fully explained. In the Abstract and in the Introduction the authors point out that the app should serve as a framework to validate some numerical results of one or more input networks, but it is not clear how the results of comparing values of topological attributes of real and random networks can be exploited by the user to draw conclusions. I would suggest to insert (for example in the Introduction) one or more examples of usage of this tool. For instance, an interesting application of the tool could be the following: generate different random networks (one or more for each random model) with a similar number of nodes and edges of the real network, then compare these networks with the real one according to some statistics (for example clustering coefficient) in order to find the random model that best fits the input network. This can tell a lot about the features of the network and how it has been generated.

  2. The statistical module of the app allows to compare two distribution of values on some topological property of the nodes (for example centrality) by using the two-sample Kolmogorov-Smirnov test. The aim of this comparison should be carefully clarified. Is the aim to establish if topological properties are maintained with respect to the random model used? Does it make sense when such a value is obtained comparing only a pair of networks, the real and the random ones?

    Let’s consider a set of N networks generated using the preferential attachment and compare them to a real network according to the values of some metric M. The reviewer expects that will be sensible variations on the Kolmogorov-Smirnov distance. It would be more reasonable to give the user the possibility to compare expected values of some metric in ensembles of real and random networks. In some context, this kind of analysis can be preferable and would result more robust. 

  3. Among the random models, the authors presented a new model called Multiplicative Model. It is not clear from the text how such a model works. There is a picture in the paper that shows three networks generated with three different weighted arrays, but it is not clear how these weighted arrays are generated. Which are the input parameters of the model? Please clarify how the weights are determined. It is not clear i) if the user has to provide a minimum value X and a maximum value Y and then weighted arrays are generated by randomly picking one value within interval [X,Y] for each node or ii) if just has to provide a text file with one weight for each node and generate a random network with exactly that sequence of weights. By using the app, it seems that a text file is required but it is not clear what should be its content. In general, authors should describe more clearly the model both in the paper and in the documentation of the app. 

  4. It looks like the Multiplication model is not properly working: I tried to generate a random network using the Multiplication Model starting from an input network of N nodes. As a parameter for the model, I loaded an input file with N rows and one number for each row (in each row there is 0 or 1 as weight). A window appeared saying which was the maximum number of edges admitted for the network. However, at the end of the process, a random network with exactly the same number of nodes and edges (maybe a copy) of the input network was created without any error or warning message. I expected as output a network with a different number of nodes and edges. Please clarifiy this point. 

  5. In the Abstract and in the Introduction authors claim that there are no tools for generating and randomizing networks. Actually, there are two Cytoscape apps that authors should cite in the paper: Randomnetworks plugin ( http://apps.cytoscape.org/apps/randomnetworks) and NetMatch* ( http://alpha.dmi.unict.it/netmatchstar/netmatchstar.html). Furthermore, since your app implements a comparison part between networks, I would also recommend to cite some other Cytoscape app to compare networks, such as GASOLINE ( http://apps.cytoscape.org/apps/gasoline) and DyNet ( http://apps.cytoscape.org/apps/dynet), remarking the different kind of approach to compare networks that you are following, which is the new research contribution. 

  6. On page 6, third paragraph, when authors talk about the two shuffling methods (with or without preservation of degrees) they say that users can choose one or both models. Authors should describe which is the effect when both options are selected. 

  7. What is the maximum number of nodes in a network generated with the multiplication model? In the example at page 3 for a network of 10 nodes and weights in [0,100] is 100*10+10, but in the figure of page 6 it seems to be just the number of nodes multiplied by the maximum value of the range (in the figure of page 6 it seems 7*3 and not 7*3+7). Please clarify this point. 

  8. In the paper there is no indication of which sizes represent the Lattice Model (Figure 4). I finally deduced this information from the documentation. This should be reported with a sentence also in the main paper. 

  9. There is a difference between the panel of Multiplication Model depicted in Figure 4 and the Multiplication Model panel present in the Cytoscape App. In the app I found an option called “Graphical version” which is not reported in the paper. Please clarify and make the app and the paper coherent on such a point. 

  10. When the user generates random networks or run the statistical analysis there is no indication on the status of the computation. It would be recommended to notify the user with logs and progress bars. 

  11. I tried to execute a pipeline of statistical experiments with different input networks and/or random networks. However, after the first experiment, it was impossible to me to change the set of selected input or random networks for a second experiment. I had to close and open again the app to make other tests. Please fix this bug. 

  12. In the Statistical analysis panel there is a “Save as” button to select the path where to save output results. However, there is no text field next to the button that indicates the selected output folder. Please insert such a field.

I have read this submission. I believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.

F1000Res. 2017 Jun 12.
Gabriele Tosadori 1

Dear Giovanni,

Thank you for all the very useful comments. We amended the paper as you suggested and we hope it is now more clear and useful.

I would like to answer you with respect to the points 10, 11 and 12.

Point 10: we decided not to add the progress bar since the computation takes a very little time and we believe it is not a necessary feature. If you really think that it is needed, then we will add it for our newest release otherwise, we'll keep the app as it currently is

Point 11: we are not able to obtain the same bug you're mentioning. Please give us more feedback about this issue and we will see how to fix this.

Point 12: we decided not to add the path to the folder since it was creating a lot of issuse with the Mac version of the Java library. In order to avoid bugs for the Mac users we removed this feature.

If you have further questions and suggestions, we will be very happy to hear everything.

Thank you,

Gabriele Tosadori


Articles from F1000Research are provided here courtesy of F1000 Research Ltd

RESOURCES