Skip to content

Commit 3fc457d

Browse files
authored
Merge branch 'master' into cross_validation_update
2 parents b64b482 + f08f454 commit 3fc457d

6 files changed

Lines changed: 49 additions & 35 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.2
2+
current_version = 0.0.3-dev
33
commit = True
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?

README.rst

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,16 @@ You can submit your dataset in any of the following formats:
9696
- CSV (.csv)
9797
- TSV (.tsv)
9898

99-
Please ensure that the dataset has a column 'Node' containing node IDs. If you only provide the node IDs, you can
100-
also include a column in your dataset 'NodeType' indicating the entity type for each node. You can also optionally add
101-
the following columns to your dataset:
99+
Please ensure that the dataset minimally has a column 'Node' containing node IDs. You can also optionally add the
100+
following columns to your dataset:
102101

102+
- NodeType
103103
- LogFC [*]_
104104
- p-value
105105

106-
.. [*] log :sub:`2` fold change
106+
.. [*] |Log| fold change
107+
108+
.. |Log| replace:: Log\ :sub:`2`
107109

108110
Input dataset examples
109111
~~~~~~~~~~~~~~~~~~~~~~
@@ -112,8 +114,22 @@ DiffuPath accepts several input formats which can be codified in different ways.
112114
`diffusion scores <https://github.com/multipaths/DiffuPy/blob/master/docs/source/diffusion.rst>`_ summary for more
113115
details.
114116

115-
1. You can provide a dataset with a column 'Node' containing node IDs along with a column 'NodeType' indicating the
116-
entity type.
117+
1. You can provide a dataset with a column 'Node' containing node IDs.
118+
119+
+------------+
120+
| Node |
121+
+============+
122+
| A |
123+
+------------+
124+
| B |
125+
+------------+
126+
| C |
127+
+------------+
128+
| D |
129+
+------------+
130+
131+
2. You can also provide a dataset with a column 'Node' containing node IDs as well as a column 'NodeType', indicating
132+
the entity type of the node to run diffusion by entity type.
117133

118134
+------------+--------------+
119135
| Node | NodeType |
@@ -127,34 +143,34 @@ entity type.
127143
| D | Gene |
128144
+------------+--------------+
129145

130-
2. You can also choose to provide a dataset with a column 'Node' containing node IDs as well as a column 'logFC' with
131-
their log :sub:`2` FC.
146+
3. You can also choose to provide a dataset with a column 'Node' containing node IDs as well as a column 'logFC' with
147+
their LogFC. You may also add a 'NodeType' column to run diffusion by entity type.
132148

133149
+--------------+------------+
134150
| Node | LogFC |
135151
+==============+============+
136-
| Gene A | 4 |
152+
| A | 4 |
137153
+--------------+------------+
138-
| Gene B | -1 |
154+
| B | -1 |
139155
+--------------+------------+
140-
| Metabolite C | 1.5 |
156+
| C | 1.5 |
141157
+--------------+------------+
142-
| Gene D | 3 |
158+
| D | 3 |
143159
+--------------+------------+
144160

145-
3. Finally, you can provide a dataset with a column 'Node' containing node IDs, a column 'logFC' with their log :sub:`2`
146-
FC and a column 'p-value' with adjusted p-values.
161+
4. Finally, you can provide a dataset with a column 'Node' containing node IDs, a column 'logFC' with their logFC
162+
and a column 'p-value' with adjusted p-values. You may also add a 'NodeType' column to run diffusion by entity type.
147163

148164
+--------------+------------+---------+
149165
| Node | LogFC | p-value |
150166
+==============+============+=========+
151-
| Gene A | 4 | 0.03 |
167+
| A | 4 | 0.03 |
152168
+--------------+------------+---------+
153-
| Gene B | -1 | 0.05 |
169+
| B | -1 | 0.05 |
154170
+--------------+------------+---------+
155-
| Metabolite C | 1.5 | 0.001 |
171+
| C | 1.5 | 0.001 |
156172
+--------------+------------+---------+
157-
| Gene D | 3 | 0.07 |
173+
| D | 3 | 0.07 |
158174
+--------------+------------+---------+
159175

160176
You can also take a look at our `sample datasets <https://github.com/multipaths/DiffuPy/tree/master/examples/datasets>`_
@@ -284,13 +300,13 @@ Custom-network example
284300
~~~~~~~~~~~~~~~~~~~~~~
285301

286302
+-----------+--------------+-------------+
287-
| Source | Target | Relation |
303+
| Source | Target | Relation |
288304
+===========+==============+=============+
289-
| Gene A | Gene B | Increase |
305+
| A | B | Increase |
290306
+-----------+--------------+-------------+
291-
| Gene B | Metabolite C | Association |
307+
| B | C | Association |
292308
+-----------+--------------+-------------+
293-
| Gene A | Pathology D | Association |
309+
| A | D | Association |
294310
+-----------+--------------+-------------+
295311

296312
You can also take a look at our `sample networks <https://github.com/multipaths/DiffuPy/tree/master/examples/networks>`_

__init__.py

Whitespace-only changes.

docs/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2020, Josep Marín-Llaó, Sergi Picart Armada, Daniel Domingo-Fernández'
2222
author = ' Josep Marín-Llaó, Sergi Picart Armada, Daniel Domingo-Fernández'
2323

24-
release = 'release = '0.0.2''
24+
release = '0.0.3-dev'
2525

2626
parsed_version = re.match(
2727
'(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?',
@@ -56,9 +56,7 @@
5656
# Example configuration for intersphinx: refer to the Python standard library.
5757
intersphinx_mapping = {
5858
'python': ('https://docs.python.org/3', None),
59-
'networkx': ('https://networkx.github.io/', None),
60-
'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest', None),
61-
'pybel': ('https://pybel.readthedocs.io/en/latest/', None),
59+
'networkx': ('https://networkx.github.io/documentation/stable', None),
6260
}
6361

6462
autodoc_member_order = 'bysource'

docs/source/database.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ Custom-network example
122122
+-----------+--------------+-------------+
123123
| Source | Target | Relation |
124124
+===========+==============+=============+
125-
| Gene A | Gene B | Increase |
125+
| A | B | Increase |
126126
+-----------+--------------+-------------+
127-
| Gene B | Metabolite C | Association |
127+
| B | C | Association |
128128
+-----------+--------------+-------------+
129-
| Gene A | Pathology D | Association |
129+
| A | D | Association |
130130
+-----------+--------------+-------------+
131131

132-
You can also take a look at our Resources page for some example networks.
133-
132+
You can also take a look at our `sample networks <https://github.com/multipaths/DiffuPy/tree/master/examples/networks>`_
133+
folder for some examples networks.
134134

135135
References
136136
----------

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
##########################
44
[metadata]
55
name = diffupath
6-
version = version = 0.0.2
7-
description = Compute diffusion scores over networks
6+
version = 0.0.3-dev
7+
description = Compute diffusion scores over networks from biological databases
88
long_description = file: README.rst
99

10-
# URLs associated with PyBEL
10+
# URLs associated with DiffuPath
1111
url = https://github.com/multipaths/DiffuPath
1212
download_url = https://github.com/multipaths/DiffuPath
1313
project_urls =

0 commit comments

Comments
 (0)