Skip to content

Commit 708c00e

Browse files
authored
Merge pull request #70 from CAnBioNet/develop
Version 1.1.0
2 parents 49a1064 + e7b2bf1 commit 708c00e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ python ./analysis/infomap_assignment.py --network ./project_folder/output/networ
111111

112112
#### Inputs
113113
- `--network`: `The path to the network file, either in .pickle or .csv format
114-
- `--network-format`: Format of the network file; Either use 'pickle' with the network.pickle file output made by assess_network.py (if network was reconstructed using the TkNA pipeline) or 'csv' if the network was reconstructed using an alternative pipeline (must be in .csv format and have 'partner1' and 'partner2' as the headers for the two node columns
114+
- `--network-format`: Format of the network file; Either use 'pickle' with the network.pickle file output made by calc_network_properties.py or 'csv' (must be in .csv format and have 'partner1' and 'partner2' as the headers for the two node columns, e.g. the network_output_comp.csv from to_csv.py)
115115
- `--map`: CSV file with the name of the node in the first column and its data type in the second column
116116
- `--out-dir`: Path to the directory to output results to
117117

@@ -133,7 +133,7 @@ Python ./analysis/louvain_partition.py --network ./project_folder/output/network
133133

134134
#### Inputs and arguments
135135
- `--network`: `The path to the network file, either in .pickle or .csv format
136-
- `--network-format`: Format of the network file; Either use 'pickle' with the network.pickle file output made by assess_network.py (if network was reconstructed using the TkNA pipeline) or 'csv' if the network was reconstructed using an alternative pipeline (must be in .csv format and have 'partner1' and 'partner2' as the headers for the two node columns
136+
- `--network-format`: Format of the network file; Either use 'pickle' with the network.pickle file output made by calc_network_properties.py or 'csv' (must be in .csv format and have 'partner1' and 'partner2' as the headers for the two node columns, e.g. the network_output_comp.csv from to_csv.py)
137137
- `--map`: CSV file with the name of the node in the first column and its data type in the second column
138138
- `--out-dir`: Path to the directory to output results to
139139

analysis/assess_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def find_unique_networks(df):
261261
nw_edge_full_graph_ratio = round((G.number_of_edges()/expec_total) * 100, 2)
262262

263263
else:
264-
print("Not enough positive or negative nodes to calculate most basic properties of the " + nw_type + " network. This script requires the input network to have at least two positive log2 foldchange nodes and two negative log2 foldchange nodes")
264+
print("Warning: Not enough positive or negative nodes to calculate some basic properties of the " + nw_type + " network. These calculations require the input network to have at least two positive log2 foldchange nodes and two negative log2 foldchange nodes")
265265
# Calculate PUC (the proportion of edges that do not follow the expected direction).
266266
puc = round((100 * (puc_noncompliant / signif_meta_edge)), 2)
267267

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ infomap==2.6.1
77
kiwisolver==1.3.2
88
matplotlib==3.5.1
99
networkx==2.7.1
10-
numpy==1.22.0
10+
numpy==1.22.2
1111
packaging==21.3
1212
pandas==1.3.5
1313
patsy==0.5.2
14-
Pillow==9.0.0
14+
Pillow==9.3.0
1515
pyparsing==3.0.6
1616
python-dateutil==2.8.2
1717
python-louvain==0.16

0 commit comments

Comments
 (0)