Skip to content

Commit 234c748

Browse files
Merge branch 'master' into 2396-update-latest-archivedf-lowcell
2 parents 95bad81 + 4b5c6da commit 234c748

File tree

227 files changed

+5581
-2537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+5581
-2537
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 63.2.13
2+
current_version = 63.5.14
33
commit = True
44
tag = True
55
tag_name = v{new_version}

.github/workflows/build_and_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out git repository
14-
uses: actions/checkout@v4.1.1
14+
uses: actions/checkout@v4
1515

16-
- name: Set up Python 3.11
16+
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"

.github/workflows/build_dockerfile_on_push.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,34 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Check out git repository
10-
uses: actions/checkout@v4.1.1
10+
uses: actions/checkout@v4
1111

1212
- name: Extract branch name and remove illegal chars
1313
id: get_branch_name
1414
shell: bash
1515
run: echo "branch=$(tr "/" "-" <<<${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
1616

1717
- name: Login to Docker Hub
18-
uses: docker/login-action@v2
18+
uses: docker/login-action@v3
1919
with:
2020
username: ${{ secrets.DOCKER_USERNAME }}
2121
password: ${{ secrets.DOCKER_PASSWORD }}
2222

2323
- name: Set up Docker Buildx
2424
id: buildx
25-
uses: docker/setup-buildx-action@v2
25+
uses: docker/setup-buildx-action@v3
26+
27+
- name: Suppress annotations during build
28+
run: echo "::stop-commands::no-annotations"
2629

2730
- name: Build and push
2831
id: docker_build
29-
uses: docker/build-push-action@v3
32+
uses: docker/build-push-action@v6
3033
with:
3134
context: ./
3235
file: ./Dockerfile
3336
push: true
3437
tags: "clinicalgenomics/cg-stage:${{steps.get_branch_name.outputs.branch}}, clinicalgenomics/cg-stage:latest"
38+
39+
- name: Resume annotations
40+
run: echo "::no-annotations::"

.github/workflows/build_dockerfile_on_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check Out Repo
14-
uses: actions/checkout@v4.1.1
14+
uses: actions/checkout@v4
1515

1616
- name: Login to Docker Hub
17-
uses: docker/login-action@v2
17+
uses: docker/login-action@v3
1818
with:
1919
username: ${{ secrets.DOCKER_USERNAME }}
2020
password: ${{ secrets.DOCKER_PASSWORD }}
2121

2222
- name: Set up Docker Buildx
2323
id: buildx
24-
uses: docker/setup-buildx-action@v2
24+
uses: docker/setup-buildx-action@v3
2525

2626
- name: Build and push
2727
id: docker_build
28-
uses: docker/build-push-action@v3
28+
uses: docker/build-push-action@v6
2929
with:
3030
context: ./
3131
file: ./Dockerfile

.github/workflows/build_publish_cli_image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out git repository
14-
uses: actions/checkout@v4.1.1
14+
uses: actions/checkout@v4
1515

1616
- name: Prepare Branch Name
1717
id: prepare_branch_name
@@ -23,7 +23,7 @@ jobs:
2323
fi
2424
2525
- name: Login to Docker Hub
26-
uses: docker/login-action@v2
26+
uses: docker/login-action@v3
2727
with:
2828
username: ${{ secrets.DOCKER_USERNAME }}
2929
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: Build and Push Docker Image
5252
id: docker_cli_build
53-
uses: docker/build-push-action@v3
53+
uses: docker/build-push-action@v6
5454
with:
5555
context: ./
5656
file: ./Dockerfile-cli

.github/workflows/installations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout Repository
15-
uses: actions/checkout@v4.1.1
15+
uses: actions/checkout@v4
1616

1717
- name: Setup Python
1818
uses: actions/setup-python@v5
@@ -25,7 +25,7 @@ jobs:
2525
virtualenvs-create: false
2626

2727
- name: Cache Dependencies
28-
uses: actions/cache@v3
28+
uses: actions/cache@v4
2929
id: cache
3030
with:
3131
path: ${{ env.pythonLocation }}

.github/workflows/tests_and_coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout Repository
15-
uses: actions/checkout@v4.1.1
15+
uses: actions/checkout@v4
1616

1717
- name: Setup Python
1818
uses: actions/setup-python@v5
@@ -25,7 +25,7 @@ jobs:
2525
virtualenvs-create: false
2626

2727
- name: Cache dependencies
28-
uses: actions/cache@v3
28+
uses: actions/cache@v4
2929
id: cache
3030
with:
3131
path: ${{ env.pythonLocation }}
@@ -35,7 +35,7 @@ jobs:
3535
if: steps.cache.outputs.cache-hit != 'true'
3636
run: poetry install --no-interaction
3737

38-
- name: Test with pytest & Coveralls
38+
- name: Test with Pytest & Coveralls
3939
run: |
4040
pytest -n logical --cov=cg/
4141
coveralls
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
"""Refactor pacbio models
2+
3+
Revision ID: d6474325c722
4+
Revises: 18dbadd8c436
5+
Create Date: 2024-09-27 15:40:49.040271
6+
7+
"""
8+
9+
import sqlalchemy as sa
10+
from sqlalchemy.dialects import mysql
11+
12+
from alembic import op
13+
14+
# revision identifiers, used by Alembic.
15+
revision = "d6474325c722"
16+
down_revision = "18dbadd8c436"
17+
branch_labels = None
18+
depends_on = None
19+
20+
21+
def upgrade():
22+
# PacbioSequencingRun
23+
op.add_column(
24+
table_name="pacbio_sequencing_run",
25+
column=sa.Column("barcoded_hifi_reads", sa.BIGINT, nullable=True),
26+
)
27+
op.add_column(
28+
table_name="pacbio_sequencing_run",
29+
column=sa.Column("barcoded_hifi_reads_percentage", sa.FLOAT, nullable=True),
30+
)
31+
op.add_column(
32+
table_name="pacbio_sequencing_run",
33+
column=sa.Column("barcoded_hifi_yield", sa.BIGINT, nullable=True),
34+
)
35+
op.add_column(
36+
table_name="pacbio_sequencing_run",
37+
column=sa.Column("barcoded_hifi_yield_percentage", sa.FLOAT, nullable=True),
38+
)
39+
op.add_column(
40+
table_name="pacbio_sequencing_run",
41+
column=sa.Column("barcoded_hifi_mean_read_length", sa.BIGINT, nullable=True),
42+
)
43+
op.add_column(
44+
table_name="pacbio_sequencing_run",
45+
column=sa.Column("run_name", type_=mysql.VARCHAR(64), nullable=True),
46+
)
47+
op.add_column(
48+
table_name="pacbio_sequencing_run",
49+
column=sa.Column("unbarcoded_hifi_reads", sa.BIGINT, nullable=True),
50+
)
51+
op.add_column(
52+
table_name="pacbio_sequencing_run",
53+
column=sa.Column("unbarcoded_hifi_yield", sa.BIGINT, nullable=True),
54+
)
55+
op.add_column(
56+
table_name="pacbio_sequencing_run",
57+
column=sa.Column("unbarcoded_hifi_mean_read_length", sa.BIGINT, nullable=True),
58+
)
59+
60+
# PacbioSampleSequencingMetrics
61+
op.add_column(
62+
table_name="pacbio_sample_run_metrics",
63+
column=sa.Column("polymerase_mean_read_length", sa.BIGINT, nullable=True),
64+
)
65+
op.drop_column(table_name="pacbio_sample_run_metrics", column_name="percent_reads_passing_q30")
66+
op.drop_column(table_name="pacbio_sample_run_metrics", column_name="failed_reads")
67+
op.drop_column(table_name="pacbio_sample_run_metrics", column_name="failed_yield")
68+
op.drop_column(table_name="pacbio_sample_run_metrics", column_name="failed_mean_read_length")
69+
70+
71+
def downgrade():
72+
# PacbioSequencingRun
73+
op.drop_column(table_name="pacbio_sequencing_run", column_name="barcoded_hifi_reads")
74+
op.drop_column(table_name="pacbio_sequencing_run", column_name="barcoded_hifi_reads_percentage")
75+
op.drop_column(table_name="pacbio_sequencing_run", column_name="barcoded_hifi_yield")
76+
op.drop_column(table_name="pacbio_sequencing_run", column_name="barcoded_hifi_yield_percentage")
77+
op.drop_column(table_name="pacbio_sequencing_run", column_name="barcoded_hifi_mean_read_length")
78+
op.drop_column(table_name="pacbio_sequencing_run", column_name="run_name")
79+
op.drop_column(table_name="pacbio_sequencing_run", column_name="unbarcoded_hifi_reads")
80+
op.drop_column(table_name="pacbio_sequencing_run", column_name="unbarcoded_hifi_yield")
81+
op.drop_column(
82+
table_name="pacbio_sequencing_run", column_name="unbarcoded_hifi_mean_read_length"
83+
)
84+
85+
# PacbioSampleSequencingMetrics
86+
op.drop_column(
87+
table_name="pacbio_sample_run_metrics", column_name="polymerase_mean_read_length"
88+
)
89+
op.add_column(
90+
table_name="pacbio_sample_run_metrics",
91+
column=sa.Column("percent_reads_passing_q30", sa.FLOAT, nullable=False),
92+
)
93+
op.add_column(
94+
table_name="pacbio_sample_run_metrics",
95+
column=sa.Column("failed_reads", sa.BIGINT, nullable=False),
96+
)
97+
op.add_column(
98+
table_name="pacbio_sample_run_metrics",
99+
column=sa.Column("failed_yield", sa.BIGINT, nullable=False),
100+
)
101+
op.add_column(
102+
table_name="pacbio_sample_run_metrics",
103+
column=sa.Column("failed_mean_read_length", sa.BIGINT, nullable=False),
104+
)

0 commit comments

Comments
 (0)