Skip to content

Commit

Permalink
Merge pull request #12 from UMCUGenetics/release/v1.2.0
Browse files Browse the repository at this point in the history
Release/v1.2.0
  • Loading branch information
rernst authored Jun 10, 2024
2 parents 0e0e1c3 + dcf5b80 commit b193363
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 28 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# Clarity Portal

## Install
```bash
python3.11 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```

## Development server
```bash
flask --app portal run --debug
```

## Production server
```bash
gunicorn -w 4 portal:app
```
8 changes: 0 additions & 8 deletions clarity_portal.py

This file was deleted.

14 changes: 0 additions & 14 deletions clarity_portal.wsgi

This file was deleted.

5 changes: 3 additions & 2 deletions portal/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SubmitSampleForm(FlaskForm):
parsed_samples = []
sum_exome_count = 0

def validate(self):
def validate(self, extra_validators=[]):
"""Extra validation, used to validate submitted samples."""
self.parsed_samples = []
self.sum_exome_count = 0
Expand Down Expand Up @@ -154,7 +154,7 @@ class SubmitDXSampleForm(FlaskForm):
parsed_samples = []
sum_exome_count = 0

def validate(self):
def validate(self, extra_validators=[]):
"""Extra validation, used to validate submitted samples."""
self.parsed_samples = {}
self.parsed_worklist = {}
Expand Down Expand Up @@ -265,6 +265,7 @@ def validate(self):
}

for line in self.helix_worklist.data:
line = line.decode('utf-8')
if not header:
header = line.rstrip().split(',')
for udf in udf_column:
Expand Down
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Flask==1.0.2
Flask==2.3.3
Flask-Bootstrap==3.3.7.1
Flask-Script==2.0.6
Flask-WTF==0.14.2
genologics==0.3.24
Flask-WTF==1.2.1
genologics==1.0.0
gunicorn==21.2.0
six==1.16.0

0 comments on commit b193363

Please sign in to comment.