Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gens v3.0.0 #169

Merged
merged 266 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
1887a59
Adds parsing support for common .bed column names
raysloks Sep 30, 2022
d7c7efa
Merge pull request #9 from Clinical-Genomics/annotation-bed-fix
raysloks Sep 30, 2022
83b4b30
Adds gunicorn default command to dockerfile
Oct 5, 2022
84214fb
Merge pull request #10 from Clinical-Genomics/dockerfile-server
raysloks Oct 5, 2022
76a2466
Adds docker build and push for master branch
raysloks Oct 6, 2022
39d1962
Merge pull request #11 from Clinical-Genomics/docker-action
raysloks Oct 6, 2022
670d890
Adds --chdir to gunicorn command
raysloks Oct 6, 2022
62c33b7
Merge pull request #12 from Clinical-Genomics/dockerfile-server
raysloks Oct 6, 2022
ef62224
Changes to accurately reflect Gens' WSGI setup
raysloks Oct 6, 2022
2860d61
Merge pull request #13 from Clinical-Genomics/dockerfile-server
raysloks Oct 6, 2022
885734d
Adds case name as an additional database field
raysloks Nov 23, 2022
ef511b0
Merge pull request #14 from Clinical-Genomics/case-name
raysloks Nov 23, 2022
9ea03d7
Adds case name to most, if not all, places needed
raysloks Dec 6, 2022
3dad0c1
Merge pull request #15 from Clinical-Genomics/case-name
raysloks Dec 7, 2022
a10834c
Replaces case name with case id
raysloks Dec 9, 2022
4abc3d3
Removes a now obsolete query
raysloks Dec 9, 2022
1dc99cb
Fixes some descriptions
raysloks Dec 9, 2022
cb40630
Fixes a typo
raysloks Dec 9, 2022
e381266
Fixes a few descriptions
raysloks Dec 9, 2022
a29e1b4
Adds case id to where it's missing
raysloks Dec 9, 2022
6255a61
Merge pull request #17 from Clinical-Genomics/case-name
raysloks Dec 9, 2022
a72ddda
Replaces the last case name
raysloks Dec 9, 2022
6cf0f49
Merge pull request #18 from Clinical-Genomics/case-name
raysloks Dec 9, 2022
c84dff7
store_sample logs DuplicateKeyError (no crash)
raysloks Feb 24, 2023
ed4259a
Merge pull request #20 from Clinical-Genomics/duplicate-key-error
raysloks Feb 24, 2023
7fc2cdd
Adds msg to LOG.warning
raysloks Feb 24, 2023
8233f87
Merge pull request #21 from Clinical-Genomics/duplicate-key-error
raysloks Feb 24, 2023
18deaba
Adds github action for prod docker image
raysloks Feb 27, 2023
0b29642
Merge pull request #22 from Clinical-Genomics/docker-prod
raysloks Feb 27, 2023
45eebe8
Adds indivudual id parameter handling
raysloks Apr 4, 2023
ef1c512
Merge pull request #23 from Clinical-Genomics/individual-id
raysloks Apr 4, 2023
c1ee72a
Adds up to date gvcfvaf.pl
Apr 27, 2023
e628257
Adds preproc dockerfile and action
Apr 27, 2023
fc7b9f4
Updates preproc dockerfile and action
raysloks May 2, 2023
7bafdae
Tests another change
raysloks May 2, 2023
7ebc5be
Fixes another '.' comparison
raysloks May 2, 2023
b347b50
Simplifies gnomad/gvcf comparison loop
raysloks May 5, 2023
b0dd622
Fixes the shared baf.tmp issue
raysloks May 5, 2023
8d0743d
individual_id linking from home sample list
dnil May 8, 2023
6f0e962
Temp freeze flask to pre 2.3 to build
dnil May 8, 2023
617fdd0
fetch case_id..
dnil May 8, 2023
6bd9b8a
make that conditional on if case_id is set
dnil May 8, 2023
f7d3846
typo, and use latest github actions
dnil May 8, 2023
0c47abc
A few more action versions plus slightly better compatibility with ol…
dnil May 8, 2023
3e7c5bd
also use latest changelog enforcer action
dnil May 8, 2023
6463543
see if we cant fix-mock the css import in test as well
dnil May 8, 2023
f2c16ae
yarn that identity module
dnil May 8, 2023
bff497a
high time to update package lock - still on gens 2.0
dnil May 8, 2023
83e653a
Merge pull request #28 from Clinical-Genomics/case_link_sample_list
dnil May 8, 2023
c907036
get-variant-data throw json errors
mhkc Dec 1, 2022
43acca9
Fixed additional status codes
mhkc Dec 1, 2022
747ee9c
minor cleanup
mhkc Dec 1, 2022
7bfc22e
removed reference to missing templates
mhkc Dec 1, 2022
1a33614
Fixed issue with updating annotations
mhkc Mar 9, 2023
de51024
patched update db command
mhkc Mar 9, 2023
f03cf1e
CHANGELOG
dnil May 8, 2023
dd48f16
Merge pull request #31 from Clinical-Genomics/cherry_synk_lund-master
dnil May 8, 2023
dbaed44
Merge branch 'Clinical-Genomics-Lund:master' into master
dnil May 8, 2023
0a301a5
Fixes the cutoff bug I added with prev changes
raysloks May 8, 2023
d9d1b92
Restores original "variants skipped" meaning
raysloks May 8, 2023
234b77d
Added a few missing $
raysloks May 8, 2023
f9f712c
Fixes the "no +1" baf bug
raysloks May 9, 2023
2bf52f0
Ignores calls that "cannot be made"
raysloks May 9, 2023
650f701
Merge pull request #27 from Clinical-Genomics/preproc
raysloks May 11, 2023
f40974c
Removes leading '/' in a few places
raysloks Nov 16, 2023
491d434
Adds line to changelog
raysloks Nov 16, 2023
894d680
Merge pull request #40 from Clinical-Genomics/static_url_fix
raysloks Nov 16, 2023
8f745a2
Merge remote-tracking branch 'upstream/master' into lund_merge
raysloks Nov 16, 2023
f491e02
Updates package-lock with npm install
raysloks Nov 16, 2023
af06bed
Merge pull request #42 from Clinical-Genomics/lund_merge
raysloks Nov 17, 2023
68e20af
Fixes titles, var names still mixed up in spots
raysloks Nov 21, 2023
84a62f1
Adds to changelog
raysloks Nov 21, 2023
49b8051
Fixes changelog line
raysloks Nov 21, 2023
bb86138
Merge pull request #45 from Clinical-Genomics/view-title
raysloks Nov 22, 2023
7a62420
Update github actions and fix security issue
Dec 6, 2023
1c8ad68
Merge pull request #46 from Clinical-Genomics/update_actions
dnil Dec 15, 2023
a5c42c9
Add some docs info for track loading
dnil Dec 21, 2023
f87e870
changelog
dnil Dec 21, 2023
81e4a88
changelog
dnil Dec 21, 2023
7f9cb73
Merge pull request #49 from Clinical-Genomics/add_some_tracks_docs
dnil Dec 21, 2023
89f3f45
Oauth extension
dnil Feb 12, 2024
6056c98
login page sketch
dnil Feb 12, 2024
1b5c4da
Landing / login page sketch
dnil Feb 12, 2024
233ef39
User handling
dnil Feb 13, 2024
e3861a2
Includes etc
dnil Feb 13, 2024
085289e
Enable google oauth login button, fix form
dnil Feb 13, 2024
f271742
CSS fixes, esp some urls are off..
dnil Feb 13, 2024
bd32747
Reverting to use the Docker path versions..
dnil Feb 15, 2024
251a9d9
missing import
dnil Feb 15, 2024
4b23a2e
Landing page css
dnil Feb 16, 2024
08bfd4c
Layout email login
dnil Feb 16, 2024
be4c8a0
Merge pull request #50 from Clinical-Genomics/oauth_login
dnil Feb 16, 2024
f590187
use sample_id for variant retrieval
dnil Feb 16, 2024
109334c
changelog
dnil Feb 16, 2024
f84066b
Legacy display name safe as well
dnil Feb 16, 2024
b30ea5a
Merge pull request #51 from Clinical-Genomics/sample_id_for_variant
dnil Feb 16, 2024
71551ed
Clear visual clutter by hiding balanced variants
dnil Feb 21, 2024
5ae4a1c
changelog
dnil Feb 21, 2024
dbbff5b
Merge branch 'master' into bnd_variant
dnil Feb 21, 2024
31a60d4
also hide text
dnil Feb 21, 2024
8630e94
Variant tooltip includes length
dnil Feb 21, 2024
e981cb0
lint
dnil Feb 21, 2024
a9a59c6
lint
dnil Feb 21, 2024
40bdc75
Custom pan speed
dnil Feb 22, 2024
ad52313
Changelog
dnil Feb 22, 2024
c1c96c1
Higher standard pan speed
dnil Feb 22, 2024
38455aa
Merge branch 'master' into fast_pan
dnil Feb 22, 2024
fb8c60b
en passant
dnil Feb 22, 2024
d57b780
Merge pull request #53 from Clinical-Genomics/bnd_variant
dnil Feb 22, 2024
5bae6ae
Merge branch 'master' into fast_pan
dnil Feb 22, 2024
26e05bb
fix logarithmic start of pan
dnil Feb 22, 2024
cca9caa
Fixes parse_bed to use csv.DictReader correctly
raysloks Sep 22, 2022
bd257d0
Create stage_docker_push.yml
raysloks Aug 31, 2022
e6ffcba
Change main to master in docker workflow
raysloks Sep 5, 2022
0e4c07f
db config tweak: host+port->URI & split gens/scout
raysloks Sep 19, 2022
5a281a6
Fixes io operation on closed file error
raysloks Sep 26, 2022
d59d4af
Fixes the list of expected database config vars
raysloks Sep 26, 2022
443be12
Gitignore
Jakob37 Nov 15, 2024
79a4bc9
Resolve merge
raysloks Sep 26, 2022
0b0cb38
Adds parsing support for common .bed column names
raysloks Sep 30, 2022
d8d241a
Adds gunicorn default command to dockerfile
Oct 5, 2022
73ce8a5
Adds docker build and push for master branch
raysloks Oct 6, 2022
9c9aed1
Adds --chdir to gunicorn command
raysloks Oct 6, 2022
f58c681
Changes to accurately reflect Gens' WSGI setup
raysloks Oct 6, 2022
353d8bb
Adds case name as an additional database field
raysloks Nov 23, 2022
e1a4c28
Adds case name to most, if not all, places needed
raysloks Dec 6, 2022
034d70b
Merge
raysloks Dec 9, 2022
fe3234f
Replaces the last case name
raysloks Dec 9, 2022
17505cc
merge
raysloks Feb 24, 2023
cfb1e11
Adds msg to LOG.warning
raysloks Feb 24, 2023
39085d1
Adds github action for prod docker image
raysloks Feb 27, 2023
6dc5e6c
Merge
raysloks Apr 4, 2023
898a96b
Merge
raysloks Dec 9, 2022
014eec7
Removes a now obsolete query
raysloks Dec 9, 2022
92c32bf
Fixes some descriptions
raysloks Dec 9, 2022
410be87
Fixes a typo
raysloks Dec 9, 2022
9d785c8
Fixes a few descriptions
raysloks Dec 9, 2022
d680818
Adds case id to where it's missing
raysloks Dec 9, 2022
9647754
Merge
Jakob37 Nov 15, 2024
9175c16
Merge
dnil May 8, 2023
4b5c677
Merge
dnil May 8, 2023
c01adc7
fetch case_id..
dnil May 8, 2023
f255370
make that conditional on if case_id is set
dnil May 8, 2023
c5b9307
typo, and use latest github actions
dnil May 8, 2023
89908cb
A few more action versions plus slightly better compatibility with ol…
dnil May 8, 2023
cdd9a1d
also use latest changelog enforcer action
dnil May 8, 2023
f604d3b
Jest config
dnil May 8, 2023
0351e82
yarn that identity module
dnil May 8, 2023
891c43c
Merge
Dec 6, 2023
6c06fd6
Fixes titles, var names still mixed up in spots
raysloks Nov 21, 2023
80ce8bf
Add some docs info for track loading
dnil Dec 21, 2023
a25c2c3
Always this changelog
Jakob37 Nov 15, 2024
c2085bb
Oauth merge
Jakob37 Nov 15, 2024
ae01fd4
Merge remote-tracking branch 'stockholm/sample_id_for_variant' into s…
Jakob37 Nov 15, 2024
3b9653e
Clear visual clutter by hiding balanced variants
dnil Feb 21, 2024
c1fc29b
Changelog merge
dnil Feb 21, 2024
6159682
also hide text
dnil Feb 21, 2024
e653f75
Variant tooltip includes length
dnil Feb 21, 2024
37f7a45
lint
dnil Feb 21, 2024
8fce209
lint
dnil Feb 21, 2024
c8313a4
Merge remote-tracking branch 'stockholm/fast_pan' into stockholm-tran…
Jakob37 Nov 15, 2024
de90203
Fix #58 - dont shrink distance on pan over chr start
dnil Feb 22, 2024
ebd7e0f
addition is hard :)
dnil Feb 22, 2024
9e814b5
indeed
dnil Feb 22, 2024
43cf816
Version 2.2 merge
dnil Feb 28, 2024
396f623
Remove markus from docker compose
Jakob37 Nov 19, 2024
2ad4be7
Fix leftover diff
Jakob37 Nov 19, 2024
f22ae74
Fix #48 - produce prod docker image copy with branch tag, and update …
dnil Mar 1, 2024
0d6988d
Changelog
dnil Mar 1, 2024
5cffa70
and switch
dnil Mar 1, 2024
c999121
changelog action setting
dnil Mar 1, 2024
3d2a087
Broken DNA backround static path
dnil Mar 4, 2024
6cee8b0
Merge
dnil Mar 4, 2024
a6a4e99
reading and spelling
dnil Mar 4, 2024
2c1384b
Changelog
Jakob37 Nov 19, 2024
565fe00
Sync package lock
Jakob37 Nov 19, 2024
2be2b5f
linkout preparation
dnil Feb 28, 2024
789a8b3
Merge
dnil Mar 5, 2024
1b7168d
slight mod to scout endpoint uri
dnil Mar 8, 2024
c1a0547
add interaction for pinning and variant link out
dnil Mar 8, 2024
60d835b
missing closing if
dnil Mar 8, 2024
d32d351
quote url
dnil Mar 8, 2024
77357db
Changelog
dnil Mar 8, 2024
dc0a3e6
a little less anonymous listener
dnil Mar 8, 2024
4a7a0dc
move event handler to object
dnil Mar 8, 2024
3bff5e5
click and dblclick coord events, and en passant spello
dnil Mar 11, 2024
62e43e5
await url
dnil Mar 11, 2024
571ae68
make that a bit more variant specific
dnil Mar 11, 2024
74f6fdd
moved most..
dnil Mar 11, 2024
2b91c60
Merge
dnil Mar 11, 2024
309c5d8
curlies
dnil Mar 11, 2024
171d44d
test for existence
dnil Mar 11, 2024
68e872b
debug..
dnil Mar 11, 2024
dcf154c
re-pass scoutBaseURL
dnil Mar 11, 2024
89ae579
use document id..
dnil Mar 11, 2024
89f60ea
correct log
dnil Mar 13, 2024
1309366
package.json conflict
dnil Mar 19, 2024
b38082d
lets wait with pinning and classifying - this is a lot already
dnil Mar 20, 2024
da4427b
Bump version to 2.3
Jakob37 Nov 19, 2024
86acb2d
fix docker push
dnil Mar 27, 2024
8dd8683
docker preproc push as well
dnil Mar 27, 2024
b6cb1a1
Changelog
Jakob37 Nov 19, 2024
65b8e8f
again...
dnil Mar 27, 2024
9067974
Makes `genomeBuild` get passed on in `drawTrack`
raysloks May 30, 2024
91c52b3
adds to changelog
raysloks May 30, 2024
9427bbf
Reraises DuplicateKeyError when storing sample, and better error message
raysloks May 30, 2024
ecccecf
changelog
raysloks May 30, 2024
519e184
Adds nonfunctional --force flag
raysloks Jun 5, 2024
8e1c0e0
Adds --force flag functionality
raysloks Jun 7, 2024
46e8d9c
Disables re-raising of DuplicateKeyError
raysloks Jun 7, 2024
d773eae
Updates changelog
raysloks Jun 7, 2024
0b9b5f8
prints warning to stderr when overwriting old entry
raysloks Jun 28, 2024
e169c49
updates changelog
raysloks Jun 28, 2024
73bd596
Fixes update_one call
raysloks Jun 28, 2024
5c234a8
update changelog
raysloks Jun 28, 2024
804c074
Merge
raysloks Jul 8, 2024
80e7c3b
Updates changelog
raysloks Jul 10, 2024
9997b81
Fixes "# samples loaded into gens"
raysloks Jul 10, 2024
13aa550
Updates changelog
raysloks Jul 12, 2024
1e6693e
Merge
raysloks Jul 15, 2024
da97292
Merge
raysloks Jul 15, 2024
839d153
Updates changelog
raysloks Jul 15, 2024
64cc60e
Changes start to position
raysloks Jul 17, 2024
9b3fc50
Sorts filteredVariants to maybe fix faulty height stacking
raysloks Jul 17, 2024
85a9206
Does proper calculation of max height order before rendering
raysloks Jul 17, 2024
3337a02
Limits height stacking to supported variant categories
raysloks Jul 17, 2024
113b631
Fixes other typos and a docstring
raysloks Jul 17, 2024
63a7365
Updates changelog
raysloks Jul 17, 2024
3d877e8
Merge
raysloks Aug 14, 2024
3ea8d61
adds proper scaling to overlay
raysloks Aug 14, 2024
5834972
only draw labels for visible variants
raysloks Aug 14, 2024
a3e6bb1
adds hardcoded margin
raysloks Aug 14, 2024
3b2a100
adjusts hardcoded margin
raysloks Aug 14, 2024
c841b97
updates changelog
raysloks Aug 14, 2024
ab03b40
fixes overlay not rendering right after expanding variant track
raysloks Aug 14, 2024
faf7e5d
adds very basic expand button
raysloks Aug 15, 2024
e26c71b
Merge
dnil Oct 25, 2024
1473475
oc to this - looks like a small bug
dnil Oct 25, 2024
dee3b61
unused imports
dnil Oct 25, 2024
91024a7
replace a couple of map statements with forEach
dnil Oct 25, 2024
78146d4
note the global apiHost in request js
dnil Oct 25, 2024
3deeb39
format
dnil Oct 25, 2024
3301c19
Sync remaining diff with Stockholm
Jakob37 Nov 19, 2024
d87a0aa
Delete command
raysloks Jul 8, 2024
87f6571
Attempt to clarify changelog
Jakob37 Jan 27, 2025
92502eb
Update version to 3.0.0
Jakob37 Jan 27, 2025
8328b3c
Ronja full name
Jakob37 Jan 27, 2025
1d889b2
Another version update spot
Jakob37 Jan 27, 2025
7ffb679
Small syntax fixes
Jakob37 Jan 28, 2025
84fb63c
Changelog
Jakob37 Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ docker-compose.yml

# volumes
volumes/
dump/

# other
*.aed
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ env:
es2021: true
extends:
- standard
- "eslint:recommended"
- "prettier"
parserOptions:
ecmaVersion: 12
sourceType: module
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/docker_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish to Docker

on:
release:
types:
- created

jobs:
docker-push:
name: Create docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/gens:${{ github.event.release.tag_name }}, clinicalgenomics/gens:latest"
6 changes: 3 additions & 3 deletions .github/workflows/keep_a_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
changelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v1.4.0
- uses: actions/checkout@v4
- uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: 'CHANGELOG.md'
skipLabel: 'Skip-Changelog'
skipLabels: 'Skip-Changelog'
36 changes: 36 additions & 0 deletions .github/workflows/preproc_docker_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish preproc to Docker

on:
release:
types:
- created

jobs:
docker-preproc-push:
name: Create preproc Docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./utils/
file: ./utils/Dockerfile
push: true
tags: "clinicalgenomics/gens-preproc:${{ github.event.release.tag_name }}, clinicalgenomics/gens-preproc:latest"
37 changes: 37 additions & 0 deletions .github/workflows/preproc_stage_docker_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish preproc to Docker stage

on:
pull_request:
branches:
- master

jobs:
docker-preproc-stage-push:
name: Create preproc stage Docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
if: steps.branch-name.outputs.is_default == 'false'
uses: docker/build-push-action@v5
with:
context: ./utils/
file: ./utils/Dockerfile
push: true
tags: "clinicalgenomics/gens-preproc-stage:${{steps.branch-name.outputs.current_branch}}, clinicalgenomics/gens-preproc-stage:latest"
39 changes: 39 additions & 0 deletions .github/workflows/stage_docker_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to Docker stage

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
docker-stage-push:
name: Create staging docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/gens-stage:${{steps.branch-name.outputs.current_branch}}, clinicalgenomics/gens-stage:latest"
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
mongodb-version: ["3.6"]
python-version: [3.8]
mongodb-version: ["7"]

steps:

# Check out Scout code
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Set up python
- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}

Expand Down Expand Up @@ -49,9 +49,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
tags
coverage
*.aed
dump/
frontend/
docker-compose.override.yml

# python
*.pyc
Expand All @@ -16,6 +19,7 @@ utils/hg38_annotations/
venv/
*.egg-info
.eggs
.idea

# node
node_modules
Expand Down
64 changes: 60 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,69 @@ This project adheres to [Semantic Versioning](http://semver.org/)

About changelog [here](https://keepachangelog.com/en/1.0.0/)

## [x.x.x]
## 3.0.0 - Merging Solnas and Lunds changes
### Added
- `--force` flag to `gens loads sample` for overwriting any existing sample in case of key conflict.
- `--force` flag prints a warning to stderr when overwriting an existing sample.
- `gens delete sample` command
- Height ordering for variants track.
### Fixed
- Pan able to exit chrosome when using genome build 17
- `--force` flag `update_one` call not being called properly
- Incorrect total sample count on home page.
- Some typos and documentation.
- Labels often not being visible on larger variants.

### Merged for Solna from Lund 2.1.2
#### Changed
- Changed cached method from simple to file system as it would be thread safe
#### Fixed
- Fixed cache issue that could result in chromosome information not being updated
- Fixed max arg error when searching for some genes
- Fixed bug that prevented updating annotation tracks

## [2.3 (Solna)]
### Added
- Link out to Scout: introduce config variable for base URL
- Link out to Scout: case links on home sample list
- Link out to Scout: click variant to open Scout page
### Changed
- Archive prod docker image with release tag name. Update action versions.
### Fixed
- Fixed bug that prevented updating annotation tracks
- Error image background static path
- GitHub action DockerHub push on release

## [2.2 (Solna)]
### Added
- Document track processing and loading
- OAuth authentication
### Changed
- Use sample id instead of display name for variant retrieval
- Hide balanced variants
- Keyboard pan speed increased
- Don't shrink pan window when attemting to pan over start

## [2.1.1b (Solna)]
### Added
### Changed
- Changes the main view's page title to be `sample_name` and adds `sample_name` and `case_id` to the header title
- Updated external images used in GitHub actions, including tj-actions/branch-names to v7 (fixes a security issue)
- Updated Python and MongoDB version used in tests workflow to 3.8 and 7 respectively

## [2.1.1 (Solna)]
### Added
### Changed
- Updated flask and pinned connexion to v2
- Updated node version of github action to 17.x
### Fixed
- Fixed annotation tracks being hidden behind other elements
- Use sample id as individual id to link out from Gens home sample list
- Some fixes from MHKC CG-Lund, e.g. status codes and a JSON error
- Removes some leading `/` that were breaking links
- Increased contrast of region selector
- Chromosome bands are displayed properly

## [2.1.2]
## [2.1.2 (Lund)]
### Added
### Changed
- Changed cached method from simple to file system as it would be thread safe
Expand All @@ -20,7 +75,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Fixed cache issue that could result in chromosome information not being updated
- Fixed max arg error when searching for some genes

## [2.1.1]
## [2.1.1 (Lund)]
### Added
### Changed
- Updated flask and pinned connexion to v2
Expand Down Expand Up @@ -75,6 +130,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Reinstated tooltips to display additional information on genetic elements
### Changed
- Use popper for positioning tooltips
- Prettier for code formatting
### Fixed

## [1.2.0]
Expand Down
25 changes: 22 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# BUILDER PYTHON #
##################

FROM python:3.8.1-slim as python-builder
FROM python:3.8.1-slim AS python-builder

# Set build variables
ENV PYTHONDONTWRITEBYTECODE=1
Expand All @@ -24,7 +24,7 @@ RUN apt-get update && \
# BUILDER NODE #
################

FROM node:20.8.1-alpine as node-builder
FROM node:20.8.1-alpine AS node-builder
WORKDIR /usr/src/app
COPY package.json package-lock.json webpack.config.js gulpfile.js ./
COPY assets assets
Expand Down Expand Up @@ -58,10 +58,29 @@ COPY utils utils

# copy compiled web assetes
COPY --from=node-builder /usr/src/app/build/css/error.min.css gens/static/css/
COPY --from=node-builder /usr/src/app/build/css/home.min.css /usr/src/app/build/css/about.min.css gens/blueprints/home/static/
COPY --from=node-builder /usr/src/app/build/css/home.min.css /usr/src/app/build/css/landing.min.css /usr/src/app/build/css/about.min.css gens/blueprints/home/static/
COPY --from=node-builder /usr/src/app/build/*/gens.min.* gens/blueprints/gens/static/

# make mountpoints and change ownership of app
RUN mkdir -p /access /fs1/results /fs1/results_dev && chown -R app:app /home/app/app /access /fs1 /fs1/results_dev
# Change the user to app
USER app

ENV GUNICORN_WORKERS=1
ENV GUNICORN_THREADS=1
ENV GUNICORN_BIND="0.0.0.0:5000"
ENV GUNICORN_TIMEOUT=400

CMD gunicorn \
--workers=$GUNICORN_WORKERS \
--bind=$GUNICORN_BIND \
--threads=$GUNICORN_THREADS \
--timeout=$GUNICORN_TIMEOUT \
--chdir /home/app/app/ \
--proxy-protocol \
--forwarded-allow-ips="10.0.2.100,127.0.0.1" \
--log-syslog \
--access-logfile - \
--error-logfile - \
--log-level="debug" \
gens.wsgi:app
Loading