Skip to content

Commit f08f454

Browse files
authored
Docs (#5)
* fix readme * fix docs * update network docs * update network readme
1 parent 0f383fb commit f08f454

3 files changed

Lines changed: 44 additions & 28 deletions

File tree

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>`_

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
----------

src/diffupath/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def diffusion():
7979
)
8080
@click.option(
8181
'-a', '--absolute_value',
82-
help='Codify node labels by applying threshold to |logFC| in input. If absolute_value is set to False, node labels '
82+
help='Codify node labels by applying threshold to | logFC | in input. If absolute_value is set to False, node labels '
8383
'will be signed.',
8484
type=bool,
8585
default=True,

0 commit comments

Comments
 (0)