Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GlycoSHIELD-MD
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dioscuri-Biophysics
GlycoSHIELD-MD
Commits
4cbc9e23
Commit
4cbc9e23
authored
1 year ago
by
Klaus Reuter
Browse files
Options
Downloads
Patches
Plain Diff
add logo to webapp, additional tweaks
parent
83501784
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
glycoshield/app.py
+26
-21
26 additions, 21 deletions
glycoshield/app.py
webapp-landingpage/glycodensity.md
+2
-2
2 additions, 2 deletions
webapp-landingpage/glycodensity.md
webapp-landingpage/index.md
+5
-0
5 additions, 0 deletions
webapp-landingpage/index.md
with
33 additions
and
23 deletions
glycoshield/app.py
+
26
−
21
View file @
4cbc9e23
...
...
@@ -19,6 +19,7 @@ glycoshield_logo_anim = "webapp/glycoshield_anim.gif"
mpibp_logo
=
"
webapp/mpibp-logo.png
"
mpcdf_logo
=
"
webapp/mpcdf-logo.png
"
inserm_logo
=
"
webapp/inserm-logo.png
"
combined_logo
=
"
webapp/glycoshield-logos-cropped-720.png
"
glyco_logo_image_style
=
"
width:256px;min_width:128px;vertical-align:middle;margin:24px 24px
"
...
...
@@ -690,27 +691,31 @@ def clickable_image_html(image_label, image_data, image_type="png", image_height
def
show_header
(
title
=
"
GlycoSHIELD Web Application
"
,
show_institute_logo
=
True
,
show_glycoshield_logo
=
True
,
enable_institute_links
=
False
):
if
show_institute_logo
:
if
enable_institute_links
:
href
=
{
"
mpibp
"
:
"
https://www.biophys.mpg.de/
"
,
"
inserm
"
:
"
https://www.inserm.fr/
"
,
"
mpcdf
"
:
"
https://www.mpcdf.mpg.de/
"
}
else
:
href
=
{
"
mpibp
"
:
None
,
"
inserm
"
:
None
,
"
mpcdf
"
:
None
}
header_col1
,
header_col2
,
header_col3
=
st
.
columns
(
3
)
logo_image_style
=
"
height:48px;vertical-align:middle;display:block;
"
display_image
(
mpibp_logo
,
streamlit_handle
=
header_col1
,
image_style
=
logo_image_style
+
"
margin-left:24px;margin-right:auto;
"
,
href
=
href
[
"
mpibp
"
])
display_image
(
inserm_logo
,
streamlit_handle
=
header_col2
,
image_style
=
logo_image_style
+
"
margin-left:auto;margin-right:auto;
"
,
href
=
href
[
"
inserm
"
])
display_image
(
mpcdf_logo
,
streamlit_handle
=
header_col3
,
image_style
=
logo_image_style
+
"
margin-left:auto;margin-right:24px;
"
,
href
=
href
[
"
mpcdf
"
])
# if enable_institute_links:
# href = {
# "mpibp": "https://www.biophys.mpg.de/",
# "inserm": "https://www.inserm.fr/",
# "mpcdf": "https://www.mpcdf.mpg.de/"
# }
# else:
# href = {
# "mpibp": None, "inserm": None, "mpcdf": None
# }
# header_col1, header_col2, header_col3 = st.columns(3)
# logo_image_style = "height:48px;vertical-align:middle;display:block;"
# display_image(mpibp_logo, streamlit_handle=header_col1,
# image_style=logo_image_style + "margin-left:24px;margin-right:auto;",
# href=href["mpibp"])
# display_image(inserm_logo, streamlit_handle=header_col2,
# image_style=logo_image_style + "margin-left:auto;margin-right:auto;",
# href=href["inserm"])
# display_image(mpcdf_logo, streamlit_handle=header_col3,
# image_style=logo_image_style + "margin-left:auto;margin-right:24px;",
# href=href["mpcdf"])
header_col1
=
st
.
columns
(
1
)
logo_image_style
=
"
vertical-align:middle;display:block;
"
display_image
(
combined_logo
,
streamlit_handle
=
header_col1
,
image_style
=
logo_image_style
+
"
margin-left:auto;margin-right:auto;
"
)
st
.
title
(
title
)
if
show_glycoshield_logo
:
display_image
(
glycoshield_logo_still
,
image_style
=
glyco_logo_image_style
)
...
...
This diff is collapsed.
Click to expand it.
webapp-landingpage/glycodensity.md
+
2
−
2
View file @
4cbc9e23
...
...
@@ -7,13 +7,13 @@ layout: page
cryoEM, cryoET maps, or X-ray electron density maps. GlycoDENSITY sorts glycan conformers grafted with GlycoSHIELD according to
their fit to the underlying experimental data.
### Download
###
#
Download
GlycoDENSITY is released under a specific license and is available for
[
download here
](
https://dioscuri-biophysics.pages.mpcdf.de/glycodensity/
)
{:target="_blank"}.
By downloading the code you acknowledge having read and accepted the terms of the license.
### Use case
###
#
Use case
<a
href=
"https://dioscuri-biophysics.pages.mpcdf.de/glycodensity/"
target=
"_blank"
>
<img
src=
"glycodensity-large-logo.png"
alt=
"GlycoDENSITY"
>
...
...
This diff is collapsed.
Click to expand it.
webapp-landingpage/index.md
+
5
−
0
View file @
4cbc9e23
...
...
@@ -4,8 +4,13 @@
layout
:
home
---
### Introduction
Use
**GlycoSHIELD**
to graft glycan conformers on protein structures.
See our publication for more details:
[
https://doi.org/10.1101/2021.08.04.455134
](
https://doi.org/10.1101/2021.08.04.455134
)
{:target="_blank"}
### Download
The source code is freely available under the GPL3 license at
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment