Skip to content

Commit

Permalink
add page for table, edit for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
derBlaumond committed Dec 12, 2022
1 parent 71e1e94 commit cb54534
Show file tree
Hide file tree
Showing 8 changed files with 395 additions and 182 deletions.
16 changes: 5 additions & 11 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,14 @@
),
]
),
# html.Div(
# [
# html.Div(
# dcc.Link(
# html.A(f"{page['name']}"), href=page["relative_path"], style={'color':'black', 'display':'inline-block'}
# )
# #f"{page['name']}", href=page["relative_path"]
# )
# for page in dash.page_registry.values()
# ]
# ),
html.Br(),
html.Br(),
dash.page_container,
html.Br(),
html.Br(),
html.Br(),
html.Br(),
html.Div(["Version = v1.3.5"]),
html.Div([html.Hr(), html.Footer([dbc.Table(table)])], className="app_footer"),
]
)
Expand Down
18 changes: 15 additions & 3 deletions pages/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Therefore, the Robert Koch Institute (RKI) together with the Hasso Platter Institute (HPI) joined forces to and adapted the tool covSonar - a database framework developed at the RKI for SARS-CoV-2 - to Monkeypox.
"""
),
html.Br(),
html.H1(children="Who are we?"),
html.Div(
[
Expand Down Expand Up @@ -238,16 +239,27 @@
),
html.H1(children="Data sources:"),
html.Div(
children="""
...
"""
[
"""
MPoxRadar provides an interactive map and informative data to explore and understand current Monkeypox data. It builds on top of MPoxSonar (""",
html.Strong("GITHUB"),
""") and integrates closely with many reliable python libraries and data structures. MPoxSonar is an extension of Covsonar (the database-driven system for handling genomic sequences of SARS-CoV-2 and screening genomic profiles, developed at the RKI (""",
dcc.Link(
html.A("Link"),
href="https://github.com/rki-mf1/covsonar",
target="_blank",
),
""")) that adds support for multiple genome references and quick processing with MariaDB. """,
]
),
html.Br(),
html.H1(children="Link to code:"),
dcc.Link(
html.A("Link to Github"),
href=("https://github.com/ferbsx/MPXRadar-frontend"),
target="_blank",
),
html.Br(),
html.H1(children="Acknowledgements:"),
html.Div(
children="""
Expand Down
12 changes: 9 additions & 3 deletions pages/contact.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import dash
from dash import dcc
from dash import html

dash.register_page(__name__, path="/Contact")
Expand All @@ -14,9 +15,14 @@
),
html.Br(),
html.Div(
children="""
GitHub repository link: [github-repo-link]
"""
[
"GitHub repository link: ",
dcc.Link(
html.A("Link to Github"),
href=("https://github.com/ferbsx/MPXRadar-frontend"),
target="_blank",
),
]
),
html.Br(),
html.Div(
Expand Down
143 changes: 74 additions & 69 deletions pages/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,11 @@
from dash import html
import dash_bootstrap_components as dbc

dash.register_page(__name__, path="/Help")


table_header = [
html.Thead(
html.Tr(
[
html.Th("OS"),
html.Th("Version"),
html.Th("Chrome"),
html.Th("Firefox"),
html.Th("Microsoft Edge"),
html.Th("Safari"),
]
)
)
]

row1 = html.Tr(
[
html.Td("Linux"),
html.Td("CentOS 7"),
html.Td("Not tested"),
html.Td("61. 0"),
html.Td("n/a"),
html.Td("n/a"),
]
)
row2 = html.Tr(
[
html.Td("MacOS"),
html.Td("HighSierra"),
html.Td("Not tested"),
html.Td("61. 0"),
html.Td("n/a"),
html.Td("12.0"),
]
)
row3 = html.Tr(
[
html.Td("10"),
html.Td("10"),
html.Td("Not tested"),
html.Td("61. 0"),
html.Td("42.17134.1.0"),
html.Td("n/a"),
]
)

table_body = [html.Tbody([row1, row2, row3])]

table = dbc.Table(table_header + table_body, bordered=True)
from pages.util_help_tables import table
from pages.util_help_tables import table_1
from pages.util_help_tables import table_2

dash.register_page(__name__, path="/Help")

layout = (
html.Div(
Expand Down Expand Up @@ -109,12 +61,12 @@
html.Li(
[
html.Strong("NC_063383.1"),
""" This genome is one of the reference genomes pointed out by the National Center for Biotechnology Information
""",
""" This genome is one of the reference genomes pointed out by the National Center for Biotechnology Information""",
"(",
dcc.Link(
html.A("NCBI"),
href="https://www.ncbi.nlm.nih.gov/, target='_blank'",
href="https://www.ncbi.nlm.nih.gov/",
target="_blank",
),
"): ",
dcc.Link(
Expand All @@ -127,25 +79,25 @@
html.Li(
[
html.Strong("ON563414.1"),
""" USA Center for Disease Control sequence (as stated
""",
""" USA Center for Disease Control sequence (as stated""",
"(",
dcc.Link(
html.A("here"),
href="https://labs.epi2me.io/basic-monkeypox-workflow/#workflow-steps, target='_blank'",
href="https://labs.epi2me.io/basic-monkeypox-workflow/#workflow-steps",
target="_blank",
),
"). ",
]
),
html.Li(
[
html.Strong("MT903344.1"),
""" Monkeypox virus isolate MPXV-UK_P2 (as stated
""",
""" Monkeypox virus isolate MPXV-UK_P2 (as stated""",
"(",
dcc.Link(
html.A("here"),
href="https://labs.epi2me.io/basic-monkeypox-workflow/#workflow-steps, target='_blank'",
href="https://labs.epi2me.io/basic-monkeypox-workflow/#workflow-steps",
target="_blank",
),
"). ",
]
Expand Down Expand Up @@ -253,6 +205,28 @@
),
]
),
html.H4(
children="""
MPoxSonar commnand - user manual
"""
),
html.P(
"MPoxRadar provides an interactive map and informative data to explore and understand current Monkeypox data. It builds on top of MPoxSonar (GITHUB) and integrates closely with many reliable python libraries and data structures. MPoxSonar is an extension of Covsonar (the database-driven system for handling genomic sequences of SARS-CoV-2 and screening genomic profiles, developed at the RKI (https://github.com/rki-mf1/covsonar)) that adds support for multiple genome references and quick processing with MariaDB. Hence, with MPoxSonar as the backend, we can quickly collect mutation profiles from sequence data. Currently, the MPoxRadar provides the feature to interact with MPoxSonar for a specific type of query."
),
html.P(
"Due to security reason, we limit some MPoxSonar commands to be accessible. The following commands are currently available in MPoxRadar website;"
),
table_2,
html.Li(
[
html.Strong("Reminder"),
": Currently, we provide three reference genomes; including, NC_063383.1, ON563414.3 and MT903344.1. However, they annotate gene and protein names differently. For example, NC_063383 uses the “OPGXXX” tag (e.g., OPG003, OPG019), while ON563414.3 uses the “MPXV-USA” tag. This can affect a protein search and result in querying the same mutation profile. ( ",
html.Strong("MPXV-USA_2022_MA001-164:L246F"),
" vs. ",
html.Strong("OPG188:L246F"),
" ).",
]
),
html.H3(
children="""
FAQ:
Expand Down Expand Up @@ -285,12 +259,47 @@
Why do we have multiple references? What changes when you change the reference?
"""
),
html.Li(
[
"To support mutation analysis in different locations and times. A reference genome is an idealized representative or template of the collection of genes in one species at a certain time. With advancements in technology, the reference genome is continually refined and filled the gap of inaccuracies represented in the reference genome. This is imperative because selecting a genome reference may affect subsequent analysis, such as detecting single nucleotide polymorphisms (SNPs), phylogenetic inference, functional prediction or defining the source of errors.",
html.Br(),
"Moreover, genes are more divergent, and they are often affected by interactions with the environment, for example, temperature, pollutants or exposure to some interference that alters a transcription or replication process. So, permanent changes can be made to the genetic code of a gene as a result of these effects. When we perform DNA sequencing for the reference genome, a new DNA change might exist in the reference genome throughout time.",
html.Br(),
"Therefore, technological improvements have led to the release of reference genomes over time and annotations with better well-studied approaches, and the choice of a reference genome can improve the quality and accuracy of the downstream analysis.",
]
),
html.Br(),
html.Div(
children="""
...
What changes when you change the reference?
"""
),
html.Br(),
html.Li(
[
"Even though the new releases of genome assembly shares significant amounts of synteny with the previous version, the annotated structure of genes or individual bases in the same regions can differ. ",
html.Br(),
"This change might affect",
html.Ol(
[
html.Li("variant identification"),
html.Li("new or re-annotated coding sequences (CDS)"),
html.Li("identifier of gene and protein"),
html.Li(
[
"variant identification",
"(for more details, ",
dcc.Link(
href="https://www.ncbi.nlm.nih.gov/genomes/locustag/Proposal.pdf",
target="_blank",
),
" )",
],
style={"list-style-type": "none"},
),
]
),
]
),
html.Div(
children="""
What is the difference between a nucleotide and amino acid?
Expand All @@ -305,14 +314,10 @@
html.Br(),
html.Div(
children="""
How often it gets updated?
"""
),
html.Div(
children="""
...
How often the application gets updated?
"""
),
table_1,
html.Br(),
html.H4(
children="""
Expand Down
1 change: 0 additions & 1 deletion pages/imprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
html.Div("13353 Berlin"),
html.Br(),
html.H4("Contact: "),
html.Div("Stephan Fuchs", style={"margin-bottom": "10px"}),
dcc.Link(
html.A("fuchss@rki.de"), href="mailto:fuchss@rki.de", target="_blank"
),
Expand Down
Loading

0 comments on commit cb54534

Please sign in to comment.