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

Stockholm transfer #169

Draft
wants to merge 148 commits into
base: current_stockholm_master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
a5e54c6
Add results_dev to dockerfile
mhkc Feb 6, 2024
6b56291
Removed caching of display_case route
mhkc Apr 5, 2024
2893b37
Changed caching type from simple to FileSystem
mhkc Apr 5, 2024
219b1f0
Updated CHANGELOG
mhkc Apr 5, 2024
b22cc7a
Fix error when searching for a gene
mhkc Apr 5, 2024
20503fe
Updated CHANGELOG
mhkc Apr 5, 2024
02a6a4d
Merge pull request #151 from Clinical-Genomics-Lund/149-api-throws-ma…
mhkc Apr 8, 2024
1031386
Merge branch 'master' into 133-sometimes-the-wrong-variant-is-being-d…
mhkc Apr 8, 2024
68fc3c3
use temp dir for flask caches
mhkc Apr 8, 2024
93ea741
Merge branch '133-sometimes-the-wrong-variant-is-being-displayed-in-g…
mhkc Apr 8, 2024
55946b2
Merge pull request #150 from Clinical-Genomics-Lund/133-sometimes-the…
mhkc Apr 8, 2024
2627cb0
Updated versions
mhkc Apr 8, 2024
5b0b198
Updated CHANGELOG
mhkc Apr 8, 2024
951ec07
Merge pull request #152 from Clinical-Genomics-Lund/release-2.1.2
mhkc Apr 8, 2024
765b646
Fixed bug that prevented updating annotation tracks
mhkc May 10, 2024
198141d
Merge pull request #157 from Clinical-Genomics-Lund/156-error-loading…
mhkc May 23, 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
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
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
10 changes: 5 additions & 5 deletions .github/workflows/docker_push.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish to Docker

on:
push:
branches:
- master
release:
types:
- created

jobs:
docker-stage-push:
docker-push:
name: Create docker image
runs-on: ubuntu-latest
steps:
Expand All @@ -33,4 +33,4 @@ jobs:
context: ./
file: ./Dockerfile
push: true
tags: "clinicalgenomics/gens:${{steps.branch-name.outputs.current_branch}}, clinicalgenomics/gens:latest"
tags: "clinicalgenomics/gens:${{ github.event.release.tag_name }}, clinicalgenomics/gens:latest"
2 changes: 1 addition & 1 deletion .github/workflows/keep_a_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- uses: dangoslen/changelog-enforcer@v3
with:
changeLogPath: 'CHANGELOG.md'
skipLabel: 'Skip-Changelog'
skipLabels: 'Skip-Changelog'
13 changes: 6 additions & 7 deletions .github/workflows/preproc_docker_push.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Publish preproc to Docker stage
name: Publish preproc to Docker

on:
pull_request:
branches:
- master
release:
types:
- created

jobs:
docker-preproc-push:
name: Create preproc docker image
name: Create preproc Docker image
runs-on: ubuntu-latest
steps:
- name: Check out git repository
Expand All @@ -28,10 +28,9 @@ jobs:
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:${{steps.branch-name.outputs.current_branch}}, clinicalgenomics/gens-preproc:latest, clinicalgenomics/gens-preproc:1.0.0"
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"
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@v8
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

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

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

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
3 changes: 3 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 Down
55 changes: 48 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,62 @@ This project adheres to [Semantic Versioning](http://semver.org/)

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

## [x.x.x]
## [Unreleased]
### Added
- Document track processing and loading
- OAuth authentication
- `--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]
### 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
- Use sample id instead of display name for variant retrieval
- Hide balanced variants
- Keyboard pan speed increased
- Archive prod docker image with release tag name. Update action versions.
### Fixed
- Error image background static path
- GitHub action DockerHub push on release

## [2.2]
### 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.1]
## [2.1.1b]
### 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.2 Lund only - Solna version in Unreleased/2.4]
### Added
### 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.1.1]
### Added
Expand All @@ -34,6 +73,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Removes some leading `/` that were breaking links
- Increased contrast of region selector
- Chromosome bands are displayed properly
- Use sample id as individual id to link out from Gens home sample list

## [2.1.0]
### Added
Expand Down Expand Up @@ -80,6 +120,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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ COPY --from=node-builder /usr/src/app/build/css/home.min.css /usr/src/app/build/
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 && chown -R app:app /home/app/app /access /fs1
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

Expand Down
2 changes: 1 addition & 1 deletion assets/__mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// __mocks__/fileMock.js

module.exports = 'test-file-stub';
module.exports = "test-file-stub";
2 changes: 1 addition & 1 deletion assets/__mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// __mocks__/styleMock.js

module.exports = {};
module.exports = {};
Loading