Documentation

User Manual
jmod-1.2.2b-manual.pdf
API
apis/1.2.2b/

Select multiple network files

Jmod allows to select multple network files using a regular expression or regex. First, a single file can be selected by clicking on the button Browse. The absolute path to this file is then displayed next to Networks. In our example, we want to profile the performance of a community structure detection methods implemented in Jmod using LFR graphs.

Selection shows that one file is effectively selected.

The first motivation for selecting multiple files is to automate the processing of many networks. There is also another benefit if the detection method selected has not been parallelized (i.e. the method can not use multiple processors to speed up the detection). In Jmod, a method can use multiple threads if it has the option --numproc, otherwise several networks can be processed in parallel using this option:

In our example, we have 20 network files in the same folder named network_1.tsv, network_2.tsv, ..., network_20.tsv. The char '*' (also called wildcard) can be used to specify that a substring can take any values. In the following example, we use '*' to tell Jmod to select all the network files whose path starts with [...]small/mu10/network_, ends with .tsv and has in-between any substring.

The following regex could also have been used:

[...]small/mu10/* If mu10 only contains network files
[...]small/mu10/*.tsv To select only TSV network files

To select individual networks, replace '*' by

(1|2|3) Select network_1.tsv to network_3.tsv

Ranges of numbers can also be specified using regex, even thought there is no really simple ways to do it. The following example shows how to select only a subset of the networks located in the folder mu10 are selected.

[2-7] 1) Match network_2.tsv to network_7.tsv
1[0-5] 2) Match network_10.tsv to network_15.tsv
([2-7]|1[0-5]) Select networks that match 1) or 2)

For more detailed information about regex:

Copyright © 2017  Thomas Schaffter          Website: Thomas Schaffter