Skip to content

marmello77/multiple-networks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multiple-networks

An R script to help analyze the structure of multiple networks at the same time.

Ecological Synthesis Lab (SintECO).

Author: Marco Mello.

E-mail: marmello@usp.br.

First published on October 29th, 2020 (English version).

DOI

Run in R version 4.0.2 (2020-06-22) -- "Taking Off Again".

Disclaimer: You may use this software freely for any purposes at your own risk. We assume no responsibility or liability for the use of this software, convey no license or title under any patent, copyright, or mask work right to the product. We reserve the right to make changes in the software without notification. We also make no representation or warranty that such application will be suitable for the specified use without further testing or modification. If this software helps you produce any academic work (paper, book, chapter, dissertation, report, talk, lecture or similar), please acknowledge the authors and cite the source, using this repo's DOI or URL.

Functionality and origin

You can use this script to automatize the topological analysis of multiple networks. It saves a lot of time and effort, compared to analyzing all networks one at a time. This script was written to be used in an ongoing study about the topology of interaction networks. See details about our research program here.

Instructions

Follow the instructions provided in the script "multiple-networks.R".

List of folders and files

  1. data (folder) -> contains the example networks used to test this script.

    a. bezerra2009.txt -> a network of pollination interactions between oil-collecting bees and oil flowers.

    b. genrich2017.txt -> a network of seed dispersal interactions between rodents, marsupials, and plants.

    c. gorchov1995.txt -> a network of frugivory interactions between bats, birds, and plants.

    d. queiroz2020.txt -> a network of pollination interactions between bats, hawkmoths, and plants.

    e. sarmento2014.txt -> a network of frugivory interactions between bats, birds, and plants.

  2. figures (folder)

    a. distributions.png -> plot contrasting the observed score of the chosen network-level metric and the distribution of randomized scores for each network.

  3. results (folder)

    a. p_values.txt -> p-values and z-scores of the chosen network-level metric estimated for each network.

  4. multiple-networks.R -> R script to run the analysis of multiple networks at the same time.

  5. multiple-networks.Rproj -> R project file.

Original sources

The codes used in this repo have borrowed solutions from another repo developed by our lab:

Data sources

Feedback

If you have any questions, corrections, or suggestions, please feel free to open and issue or make a pull request.

Acknowledgments

We thank our labmates and our sponsors, especially the Alexander von Humboldt-Stiftung, CNPq, CAPES, and FAPESP, who gave us grants, fellowships, and scholarships. Pedro Jordano and Carsten Dormann helped us take our first steps in analyzing and drawing networks in R. Last, but not least, we thank the Stack Overflow Community, where we solve most of our coding dilemmas. Dilemmas related to making our code faster, shorter, and more generalized were solved here and here.

Suggested readings

If you want to understand the theory behind this script, read the following works: