Skip to content

Commit 03d1710

Browse files
authored
Merge branch 'main' into fix/61-handle-an0
2 parents 248d2a9 + 6495961 commit 03d1710

15 files changed

Lines changed: 50 additions & 52 deletions

File tree

.ebextensions/01_download_data.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ container_commands:
2525
test: test -f "/usr/local/share/seqrepo.tar.gz"
2626
command: "rm /usr/local/share/seqrepo.tar.gz"
2727

28-
04_install_package:
28+
05_install_package:
2929
leader_only: true
3030
command: |
3131
set -euo pipefail

.github/workflows/release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
env:
1919
REGISTRY: ghcr.io
2020
IMAGE_NAME: ${{ github.repository }}
21-
ANYVLM_VERSION: ${{ github.event.release.tag_name }}
2221

2322
steps:
2423
- name: Checkout repository
@@ -48,8 +47,6 @@ jobs:
4847
push: true
4948
tags: ${{ steps.meta.outputs.tags }}
5049
labels: ${{ steps.meta.outputs.labels }}
51-
build-args: |
52-
ANYVLM_VERSION=${{ env.ANYVLM_VERSION }}
5350

5451
- name: Generate artifact attestation
5552
uses: actions/attest-build-provenance@v3

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ LABEL org.opencontainers.image.source=https://github.com/genomicmedlab/anyvlm
44
LABEL org.opencontainers.image.description="AnyVLM container image"
55
LABEL org.opencontainers.image.licenses=Apache-2.0
66

7-
ARG ANYVLM_VERSION
8-
RUN echo "Building AnyVLM version: ${ANYVLM_VERSION}"
9-
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ANYVLM=${ANYVLM_VERSION}
10-
117
RUN apt-get update && \
128
apt-get install -y libpq-dev gcc && \
139
rm -rf /var/lib/apt/lists/*
@@ -17,7 +13,7 @@ WORKDIR /app
1713
COPY pyproject.toml .
1814
COPY src ./src
1915

20-
RUN pip install --upgrade pip setuptools setuptools_scm
16+
RUN pip install --upgrade pip setuptools
2117
RUN pip install --no-cache-dir .
2218

2319
EXPOSE 8000

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ else
2121
endif
2222
XRM=xargs -0${_XRM_R} rm
2323

24-
# Provide version for container builds
25-
export ANYVLM_VERSION := $(shell git describe --tags --abbrev=0 2>/dev/null || echo 0.0.0)
2624

2725
############################################################################
2826
#= BASIC USAGE

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ A set of Docker Compose resources are provided as part of the AnyVLM project. Se
3232
Given an available AnyVLM node, submit a VCF which contains allele frequency data:
3333

3434
```bash
35-
curl -X POST "http://localhost:8080/ingest_vcf?assembly=grch38" \
35+
curl -X POST "http://localhost:8080/anyvlm/ingest_vcf?assembly=grch38" \
3636
-F "file=@/path/to/variants.vcf.gz"
3737
```
3838

3939
Then, submit a query for allele frequency
4040

4141
```bash
42-
curl "http://localhost:8080/variant_counts?assemblyId=GRCh38&referenceName=22&start=44389414&referenceBases=A&alternateBases=G"
42+
curl "http://localhost:8080/anyvlm/variant_counts?assemblyId=GRCh38&referenceName=7&start=140714556&referenceBases=A&alternateBases=T"
4343
```
4444

4545
A successful query returns a response like the following:
4646

4747
```json
48-
{"beaconHandovers":[{"handoverType":{"id":"GREGoR-NCH","label":"GREGoR AnyVLM Reference"},"url":"https://variants.gregorconsortium.org/"}],"meta":{"apiVersion":"v1.0","beaconId":"org.anyvlm.gregor","returnedSchemas":[{"entityType":"genomicVariant","schema":"ga4gh-beacon-variant-v2.0.0"}]},"responseSummary":{"exists":true,"numTotalResults":2},"response":{"resultSets":[{"exists":true,"id":"GREGoR-NCH Homozygous","results":[],"resultsCount":2,"setType":"genomicVariant"},{"exists":true,"id":"GREGoR-NCH Heterozygous","results":[],"resultsCount":0,"setType":"genomicVariant"},{"exists":true,"id":"GREGoR-NCH Hemizygous","results":[],"resultsCount":0,"setType":"genomicVariant"}]}}
48+
{"beaconHandovers":[{"handoverType":{"id":"CUSTOM:GREGoR-NCH","label":"GREGoR AnyVLM Reference"},"url":"https://variants.gregorconsortium.org/","note":null}],"meta":{"apiVersion":"v1.0","beaconId":"org.anyvlm.gregor","returnedSchemas":[{"entityType":"genomicVariant","schema":"ga4gh-beacon-variant-v2.0.0"}]},"responseSummary":{"exists":true,"numTotalResults":34},"response":{"resultSets":[{"exists":true,"id":"CUSTOM:GREGoR-NCH Homozygous","results":[],"resultsCount":0,"setType":"genomicVariant"},{"exists":true,"id":"CUSTOM:GREGoR-NCH Heterozygous","results":[],"resultsCount":34,"setType":"genomicVariant"},{"exists":true,"id":"CUSTOM:GREGoR-NCH Hemizygous","results":[],"resultsCount":0,"setType":"genomicVariant"},{"exists":false,"id":"CUSTOM:GREGoR-NCH Unknown","results":[],"resultsCount":0,"setType":"genomicVariant"}]}}
4949
```
5050

5151
See the [usage](https://anyvlm.readthedocs.org/en/stable/usage.html) page in the documentation for more information.

compose.dev.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ services:
22
anyvlm:
33
build:
44
context: .
5-
args:
6-
# NOTE: Makefile sets this to ANYVLM_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.0.0)
7-
ANYVLM_VERSION: ${ANYVLM_VERSION:?ANYVLM_VERSION must be set to the AnyVLM version being used}
85
depends_on:
96
anyvlm_db:
107
required: true

docs/source/configuration/docker_compose.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ The Docker Compose configuration is split across multiple files to separate conc
2222
* ``compose.dev.yaml``
2323
Defines AnyVLM-specific development services, including FastAPI and PostgreSQL services built from local Dockerfiles. This file is intended for developers working on the AnyVLM codebase.
2424

25-
.. note::
26-
27-
``compose.dev.yaml`` and the ``Dockerfile`` expect ``ANYVLM_VERSION`` to be set to the AnyVLM version being used (for example, ``1.0.0``) when running Docker Compose or building the image directly. This is handled automatically when using the Makefile.
28-
2925
* ``compose.anyvar.yaml``
3026
Defines the services required to run the AnyVar REST service and its dependencies. This file is optional and is provided as a convenience for users who do not already have AnyVar running.
3127

docs/source/getting_started/docker_compose.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ Full stack with AnyVar
5858

5959
.. code-block:: console
6060
61-
% ANYVLM_VERSION=0.0.0 docker compose -f compose.dev.yaml -f compose.anyvar.yaml up --build
61+
% docker compose -f compose.dev.yaml -f compose.anyvar.yaml up --build
6262
6363
Once the containers are running, visit `http://127.0.0.1:8080 <http://127.0.0.1:8080>`_ to view the interactive Swagger UI and confirm the service is responding.

docs/source/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Given a VCF describing cohort-level allele frequency, submit a ``POST`` request
1212

1313
.. code-block:: console
1414
15-
% curl -X POST "http://localhost:8080/ingest_vcf?assembly=grch38" \
15+
% curl -X POST "http://localhost:8080/anyvlm/ingest_vcf?assembly=grch38" \
1616
-F "file=@/path/to/variants.vcf.gz"
1717
1818
VCF Requirements
@@ -42,7 +42,7 @@ Issue a ``GET`` request to ``/variant_counts`` with arguments for reference sequ
4242

4343
.. code-block:: console
4444
45-
% curl "http://localhost:8080/variant_counts?assemblyId=GRCh38&referenceName=22&start=10510105&referenceBases=T&alternateBases=A"
45+
% curl "http://localhost:8080/anyvlm/variant_counts?assemblyId=GRCh38&referenceName=22&start=10510105&referenceBases=T&alternateBases=A"
4646
4747
Parameters
4848
----------

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[project]
22
name = "anyvlm"
3+
version="1.0.0-rc2"
34
authors = [
45
{ name="biocommons contributors", email="biocommons-dev@googlegroups.com" },
56
]
@@ -31,7 +32,6 @@ dependencies = [
3132
"pysam==0.23.0", # see https://github.com/ga4gh/vrs-python/issues/560
3233
"pyyaml",
3334
]
34-
dynamic = ["version"]
3535

3636
[project.optional-dependencies]
3737
test = [
@@ -70,16 +70,10 @@ Source = "https://github.com/genomicmedlab/anyvlm/"
7070
[project.scripts]
7171
anyvlm = "anyvlm.cli:_cli"
7272

73-
7473
[build-system]
75-
requires = [
76-
"setuptools >= 65.3",
77-
"setuptools_scm >= 8"
78-
]
74+
requires = ["setuptools >= 65.3"]
7975
build-backend = "setuptools.build_meta"
8076

81-
[tool.setuptools_scm]
82-
8377
[tool.pytest.ini_options]
8478
addopts = "--cov=anyvlm --cov-report term-missing"
8579
testpaths = ["tests"]

0 commit comments

Comments
 (0)