Skip to content

Commit da508e2

Browse files
Merge pull request #127 from rigdenlab/development
Minor update
2 parents b3b713e + 9437818 commit da508e2

28 files changed

+300
-62
lines changed

.docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM centos:8 AS build
1+
FROM fedora:33 AS build
22
RUN dnf update -y
33
RUN dnf install curl gcc initscripts postgresql-server postgresql-contrib python3-devel python3-pip redis systemd -y
44
RUN mkdir /opt/conplot
55
RUN curl https://codeload.github.com/rigdenlab/conplot/tar.gz/master | tar zx -C /opt/conplot/
66
WORKDIR /opt/conplot/conplot-master
7-
RUN python3.6 -m pip install --upgrade pip
8-
RUN python3.6 -m pip install gevent
9-
RUN python3.6 -m pip install -r requirements.txt
7+
RUN python3.9 -m pip install --upgrade pip
8+
RUN python3.9 -m pip install gevent
9+
RUN python3.9 -m pip install -r requirements.txt

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v1
26-
- name: Set up Python3.6 x64
26+
- name: Set up Python3.9 x64
2727
uses: actions/setup-python@v1
2828
with:
29-
python-version: 3.6
29+
python-version: 3.9
3030
architecture: 'x64'
3131
- name: Install dependencies
3232
run: |
3333
python -m pip install --upgrade pip
3434
pip install -r requirements.txt
3535
pip install docker-py
36+
- name: Start Redis Server
37+
uses: supercharge/[email protected]
38+
with:
39+
redis-version: 5
3640
- name: Run tests.py
41+
env:
42+
KEYDB_URL: $ {{ secrets.KEYDB_URL }}
3743
run: |
3844
python tests.py
3945
job_build:

CHANGELOG.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@ Changelog
22
=========
33

44

5+
0.3.2
6+
-----
7+
8+
Added
9+
~~~~~
10+
- Citation on home page
11+
- Added more exhaustive tests
12+
13+
Changed
14+
~~~~~
15+
- Account recovery is automated: users will receive an automated email with instructions to reset password
16+
- Docker image now deployed on fedora 33 instead of CentOS 8
17+
- Users can upload both VFORMAT and HFORMAT psipred files instead of only VFORMAT
18+
19+
520
0.3.1
621
-----
722

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Actions Status](https://github.com/rigdenlab/conplot/workflows/Test%20&%20Build/badge.svg)](https://github.com/rigdenlab/conplot/actions)
44
[![Docker Automated build](https://img.shields.io/docker/automated/filosanrod/conplot)](https://hub.docker.com/r/filosanrod/conplot)
55
[![RRID](https://img.shields.io/badge/RRID-SCR_019216-informational)](https://scicrunch.org/scicrunch/Resources/record/nlx_144509-1/SCR_019216/resolver)
6+
[![DOI](https://img.shields.io/badge/DOI-10.1093%2Fbioinformatics%2Fbtab049-blue.svg)](https://doi.org/10.1093/bioinformatics/btab049)
67

78
## About ConPlot
89

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def serve_layout():
4343
'routes_pathname_prefix': '/conplot/',
4444
'requests_pathname_prefix': '/conplot/',
4545
})
46-
keydb_pool = keydb_utils.create_pool()
46+
keydb_pool = keydb_utils.create_pool(os.environ.get('KEYDB_URL'))
4747
app.layout = serve_layout
4848

4949

components/listgrpoups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ def PanelLayoutHelpList():
383383

384384
def MandatoryInputHelpList():
385385
return html.Ul([
386-
html.Li('FASTA file. This file should contain only one sequence, the one corresponding '
387-
'with the structure of interest. If there are multiple sequences, ConPlot will '
386+
html.Li('Sequence file. This should be a FASTA file containing only one sequence, the one '
387+
'corresponding with the structure of interest. If there are multiple sequences, ConPlot will '
388388
'only consider the first sequence present in the file. Please note that unlike '
389389
'other types of input, only one sequence can be uploaded in each session at '
390390
'any given time. If you want to upload a new sequence, that means you will '

components/modals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def MismatchModal(*args):
88
return dbc.Modal([
99
ModalHeader("Mismatch Detected"),
1010
dbc.ModalBody([
11-
html.P("""We are having problems to match the uploaded sequence with the following prediction files. Please
11+
html.P("""We were unable to match the uploaded sequence with the following prediction files. Please
1212
ensure that these predictions correspond with the protein sequence in the uploaded FASTA file.""",
1313
style={'text-align': "justify"}),
1414
html.Ul([html.Li('%s' % arg) for arg in args], id='mismatched-fnames-div')
@@ -20,7 +20,7 @@ def MismatchSequenceModal(*args):
2020
return dbc.Modal([
2121
ModalHeader("Sequence Mismatch"),
2222
dbc.ModalBody([
23-
html.P("""We are having problems to match the uploaded sequence with contact maps in the following files.
23+
html.P("""We were unable to match the uploaded sequence with contact maps in the following files.
2424
Please ensure that the provided the sequence corresponds with the structure in these contact maps.""",
2525
style={'text-align': "justify"}),
2626
html.Ul([html.Li('File: %s' % arg) for arg in args], id='mismatched-maps-div')
@@ -112,7 +112,7 @@ def InvalidFormatModal():
112112
html.P("""The file you just attempted to upload does not comply with the file format guidelines. Make sure
113113
that you are uploading the correct file and you have selected the correct format. If you are not sure about
114114
how the file format looks like, you can read about each format on our help page. If you are sure that the
115-
format of your file is correct, please report the bug on the 'Contact' tab.""",
115+
format of your file is correct, please report the bug on the 'Get in touch with us' tab.""",
116116
style={'text-align': "justify"})
117117
),
118118
], id='invalid-input-modal', is_open=True)

layouts/help.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ def Body(cache):
120120
'TIPS:',
121121
html.Ul([
122122
html.Br(),
123-
html.Li(['PSIPRED server produces two output files that contain the same '
124-
'information, but using different formats: a ',
125-
html.I('.ss2'), ' file and a ', html.I('.horiz'),
126-
' file. ConPlot is only compatible with the ', html.I('ss2'),
127-
' format file, please do not attempt to uploade the ', html.I('.horiz'),
128-
' file.']),
129123
html.Li('You will not be able to upload a file until you first select its format '
130124
'in the dropdown selection menu.'),
131125
html.Li(['You can only upload one file at a time when you use the ',

layouts/home.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,19 @@ def Body():
8282
dbc.CardLink(html.U('help page'), href=UrlIndex.HELP.value),
8383
' to read about how to use ConPlot and take advantage of its full potential!'
8484
], style={"font-size": "120%", "text-align": "justify"}),
85+
html.Br(),
86+
html.Br(),
87+
html.H4('Cite us', className="card-text", style={'text-align': "center"}),
88+
html.Hr(),
89+
html.Br(),
90+
html.P('If you found ConPlot useful for your work and you would like to cite us '
91+
'please use the following reference:',
92+
style={"font-size": "120%", "text-align": "justify"}),
93+
html.I('Sánchez Rodríguez, et al., ConPlot: Web-based application for the visualisation '
94+
'of protein contact maps integrated with other data, Bioinformatics, 2021.',
95+
style={"font-size": "120%", "text-align": "justify"}),
96+
html.Br(),
97+
html.A(html.I(html.U('DOI: 10.1093/bioinformatics/btab049')), href=UrlIndex.CITATION.value)
8598
]),
8699
]),
87100
], width=10)

loaders/tests/test_sequenceloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_2(self):
5151
self.assertIsNone(hydro_data)
5252
self.assertTrue(invalid)
5353

54-
def test_6(self):
54+
def test_3(self):
5555
expected = [0.33, 0.22, 0.5, 0.12, -0.58, 1.14, -0.06, -0.81, 1.81, -0.69, -0.44, 0.43, -0.31, 0.19, 1.0, 0.33,
5656
0.11, -0.53, -0.24, 0.23]
5757
seq = protein.letters

0 commit comments

Comments
 (0)