Skip to content

Commit dedcb06

Browse files
authored
Merge pull request #2 from nhsx/directed
Directed and Successor Pages
2 parents a4533ea + 618d25e commit dedcb06

21 files changed

+2291
-4550
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.black-formatter"
4+
},
5+
"python.formatting.provider": "none"
6+
}

markdown_text/graphs.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Using hypergraphs enables more complexities and relationships from the data to b
33
_Why?_ Let's start by describing __undirected graphs__, __directed graphs__, __undirected hypergraphs__ and __directed
44
hypergraphs__.
55

6-
### Graphs
7-
86
Graphs are very good at structuring interactivity and networks, which makes them particularly useful in healthcare where healthcare
97
data can be sparse.
108

markdown_text/mm_description.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
## Multimorbidity
2-
31
Multimorbidity is defined as having 2 or more long term chronic health conditions simultaneously. Multimorbidity is associated with increased health service utilisation (Cassell et al., 2018).
42

53
People are living longer and so the population is ageing. This is due to

markdown_text/overview.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
### Overview
22

3+
This work is a continuation of the hypergraphs work carried out by Rafferty et al. 2021:
4+
5+
[Multimorbidity Hypergraphs GitHub](https://github.com/SwanseaUniversityMedical/multimorbidity_hypergraphs),
6+
[Original Paper](https://www.sciencedirect.com/science/article/pii/S1532046421002458).
7+
38
We wish to demonstrate how hypergraphs can be used to capture relationships between multiple diseases
49
rather than relationships between pairs of diseases. For example, looking at multimorbidity
510
patterns instead of just comorbidities, which standard graphs tend to do. More people are suffering
611
from multiple chronic diseases at the same time, so it's important to think about how we can find
712
patterns in the uptake of multimoribidities, to see if prevention techniques or treatments could
813
be put in place sooner to improve the quality of life in patients.
914

10-
15+
On this page you can find out the [aims of this project](#project-aims), find out a bit more about
16+
what [multimorbidity](#multimorbidity) is and what types of [graphs](#graphs) we talk about within this project
17+
(including standard graphs, undirected hypergraphs and directed hypergraphs).

markdown_text/prototype.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ and any content here should __not__ be regarded as official output in any form.
55
For more information about NHS England please visit our official
66
[website](https://www.england.nhs.uk/)._
77

8-
This applet randomly generates a set of fictious 'patients' and their disease
9-
pathways to demonstrate the use of hypergraphs in understanding multimorbidity. The
10-
sidebar on the left of this page can be used to change the number of 'patients' to
11-
generate and the maximum number of diseases to include in their pathways.
12-
In changing the number of patients and diseases, the outputs will change
13-
and this is purposeful to enable you to observe how population alterations result in different outcomes.
8+

markdown_text/purpose.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
The model shown in this applet builds upon the work carried out in Rafferty et al., 2021.
44
This Streamlit applet can be used to learn about how the hypergraphs multimorbidity model works with fictitious patient data.
5-
It provides test cases to allow users to understand the model and apply the `hypergraphs_mm` package to their own data.
5+
It provides test cases to allow users to understand the model and apply the `hypergraphs_mm` package to their own data
6+
(the `hypergraph-mm` package is currently held within a private NHSX GitHub repository but will soon become available publically and as a PyPI package).
67
It aims to explain graphs and hypergraphs in a health setting. It can be used to demonstrate the complexity of different types of
78
graphs (left sidebar 'Show Maximum Number of Edges').
9+
This website gives a interactive walkthrough of how to calulcate hyperedge weights, hyperarc weights, undirected hypergraph centrality,
10+
transition matrices and PageRank. The user can navigate between the pages using the tabs `Undirected Hypergraph`, `Directed Hypergraph`
11+
and `Successors` at the top of each page.
812
It demonstrates a method to draw B-hypergraphs using the NetworkX package, where psuedonodes are used for hyperarc tails to
913
transition to hyperarc heads.

markdown_text/summary.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
This applet randomly generates a set of fictious 'patients' and their disease
2+
pathways to demonstrate the use of hypergraphs in understanding multimorbidity. The
3+
sidebar on the left of this page can be used to change the number of 'patients' to
4+
generate and the maximum number of diseases to include in their pathways.
5+
In changing the number of patients and diseases, the outputs will change
6+
and this is purposeful to enable you to observe how population alterations result in different outcomes.

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ networkx
99
hypernetx
1010
matplotlib
1111
numpy
12-
numba
1312
pandas
1413
seaborn
1514
streamlit

0 commit comments

Comments
 (0)