docs_old/infomapbasics.md

Infomap arguments

Most of the Infomap arguments we use are common for all the examples and their detailed description can be found here. We explain in each example the most relevant specific arguments. Here is a typical running command:

./Infomap infomap.txt . --tree -i link-list --seed 123 -N 20 -f undirected -2.

Infomap output

The output, written into the tree file, is as follows (details here).

# v1.0.6
# ./Infomap infomap.txt . -i link-list --out-name infomap_out --tree --seed 123 -N 20 -f undirected --silent --two-level
# started at 2020-03-11 14:24:12
# completed in 0.0300386 s
# codelength 4.565 bits
# relative codelength savings 2.4337%
# path flow name node_id
1:1 0.00091617 "1" 1
1:2 0.00229043 "7" 7
1:3 0.00114521 "8" 8
1:4 0.00091617 "10" 10
1:5 0.000458085 "11" 11

The first four lines are quite obvious. The 5th line provides the value of the map equations objective function (L) for the optimal partition. After the headings, rows describe module affiliation and flow. The path column is a tree-like format. The last integer after the colon indicates the ID of the leaf in the module, and not the ID of the node. See detailed explanations also in the R function (run_infomap_monolayer) in the package, which automatically reads this output and adds the affiliation of modules to the node table to create an output similar to this:

node_id node_name             module_level1 module_level2 node_type node_group
 1       1 Aglais.urticae                    1             1 c         A         
 2       2 Apis.mellifera                    2             1 c         A         
 3       3 Bombus.lapidarius                 2             2 c         A         
 4       4 Bombus.muscorum                   3             1 c         A         
 5       5 Bombus.pascuorum                  3             2 c         A         
 6       6 Bombus.terrestris                 2             3 c         A 

Here, module_level1 is the module ID and module_level2 is the leaf ID, extracted from the path column. node_type is either c for column or r for row, indicating of the node appears in the column or row of the matrix format.



Ecological-Complexity-Lab/infomap_ecology_package documentation built on June 6, 2024, 5:28 a.m.