Skip to content

Commit b8be62b

Browse files
committed
add more docs stuff
1 parent 65ed067 commit b8be62b

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
# AnyVLM
1+
# *AnyVLM* - Lightweight, Portable Variant-Level Matching
2+
3+
AnyVLM is a Python-based web service that supports the [GA4GH Variant-Level Matching (VLM) Protocol](https://www.ga4gh.org/what-we-do/ga4gh-implementation-forum/federated-variant-level-matching-vlm-project/). It is designed to be dependency-light and trivial to stand up in environments ranging from local development to modern cloud platforms. AnyVLM provides a minimal VLM implementation suitable for institutions interested in adding their data to a federated knowledge network.
4+
5+
## Information
6+
7+
[![rtd](https://img.shields.io/badge/docs-readthedocs-green.svg)](http://anyvlm.readthedocs.io/) [![changelog](https://img.shields.io/badge/docs-changelog-green.svg)](https://anyvlm.readthedocs.io/en/latest/changelog.html) [![GitHub license](https://img.shields.io/github/license/genomicmedlab/anyvlm.svg)](https://github.com/genomicmedlab/anyvlm/blob/main/LICENSE) [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.18249699-blue)](https://doi.org/10.5281/zenodo.18249699)
8+
9+
## Latest Release
10+
11+
[![GitHub tag](https://img.shields.io/github/tag/genomicmedlab/anyvlm.svg)](https://github.com/genomicmedlab/anyvlm) [![pypi_rel](https://img.shields.io/pypi/v/genomicmedlab.anyvlm.svg)](https://pypi.org/project/genomicmedlab.anyvlm/)
12+
13+
## Development
14+
15+
[![action status](https://github.com/genomicmedlab/anyvlm/actions/workflows/python-package.yml/badge.svg)](https://github.com/genomicmedlab/anyvlm/actions/workflows/python-cqa.yml) [![issues](https://img.shields.io/github/issues-raw/genomicmedlab/anyvlm.svg)](https://github.com/genomicmedlab/anyvlm/issues) [![GitHub Open Pull Requests](https://img.shields.io/github/issues-pr/genomicmedlab/anyvlm.svg)](https://github.com/genomicmedlab/anyvlm/pull/) [![GitHub Contributors](https://img.shields.io/github/contributors/genomicmedlab/anyvlm.svg)](https://github.com/genomicmedlab/anyvlm/graphs/contributors/) [![GitHub stars](https://img.shields.io/github/stars/genomicmedlab/anyvlm.svg?style=social&label=Stars)](https://github.com/genomicmedlab/anyvlm/stargazers) [![GitHub forks](https://img.shields.io/github/forks/genomicmedlab/anyvlm.svg?style=social&label=Forks)](https://github.com/genomicmedlab/anyvlm/forks)
16+
17+
## Installation
18+
19+
A set of Docker Compose resources are provided as part of the AnyVLM project. See the [Docker-based installation instructions](https://anyvlm.readthedocs.org/en/stable/getting_started/docker_compose.html).
20+
21+
## Examples
22+
23+
Populate the DB TODO
24+
25+
Make a request TODO
26+
27+
28+
## Feedback and contributing
29+
30+
We welcome [bug reports](https://github.com/genomicmedlab/anyvlm/issues/new?template=bug-report.md), [feature requests](https://github.com/genomicmedlab/anyvlm/issues/new?template=feature-request.md), and code contributions from users and interested collaborators. The [documentation](https://anyvlm.readthedocs.io/en/latest/contributing.html) contains guidance for submitting feedback and contributing new code.

docs/source/contributing.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Contributing to AnyVLM
2+
!!!!!!!!!!!!!!!!!!!!!!
3+
4+
Installing For Development
5+
==========================
6+
7+
Clone and enter the repo, use the ``devready`` Makefile target to set up a virtual environment, then activate it and install pre-commit hooks:
8+
9+
.. code-block:: shell
10+
11+
git clone https://github.com/genomicmedlab/anyvlm.git
12+
cd anyvlm
13+
make devready
14+
source venv/3.11/bin/activate
15+
pre-commit install
16+
17+
Testing
18+
=======
19+
20+
Some configuration is required to run tests:
21+
22+
* **Install test dependencies** - in your AnyVLM environment, ensure that the ``test`` dependency group is available by running ``make testready`` in the root directory.
23+
* **Configure test database** - unit and integration tests will set up a storage instance using the connection string defined by the environment variable ``ANYVLM_TEST_STORAGE_URI`` (not ``ANYVLM_STORAGE_URI``!), which defaults to ``"postgresql://postgres:postgres@localhost:5432/anyvlm_test"``.
24+
25+
.. note::
26+
27+
Ensure that the database and role are available in the PostgreSQL instance.
28+
29+
For example, to support the connection string ``"postgresql://anyvar_test_user:anyvar_test_pw@localhost:5432/anyvar_test_db"``, run ``psql -U postgres -C "CREATE USER anyvar_test_user WITH PASSWORD anyvar_test_pw; CREATE DATABASE anyvar_test_db WITH OWNER anyvar_test_user;"``
30+
31+
* **Ensure Celery backend and broker are available, and that Celery workers are NOT running** - the task queueing tests create and manage their own Celery workers, but they do require access to a broker/backend for message transport and result storage. See `async task queuing setup instructions <todo>`_ for more. If an existing AnyVar Celery worker is running, they may not function properly.
32+
33+
.. TODO fix celery reference above
34+
35+
Tests are invoked with the ``pytest`` command. The project Makefile includes an easy shortcut:
36+
37+
.. code-block:: shell
38+
39+
make test
40+
41+
Documentation
42+
=============
43+
44+
To build documentation, use the ``docs`` Makefile target from the project root directory:
45+
46+
.. code-block::
47+
48+
make docs
49+
50+
HTML output is built in the subdirectory ``docs/build/html/``.
51+
52+
The docs use `Sphinx GitHub Changelog <https://github.com/ewjoachim/sphinx-github-changelog>`_ to automatically generate the :doc:`changelog <changelog>` page. A GitHub API token must be provided for the Sphinx build process to fetch GitHub release history and generate this page. If not provided, an error will be logged during the build and the page will be blank.

docs/source/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,12 @@ AnyVLM
66
:caption: Contents
77
:hidden:
88

9+
Getting Started<getting_started/index>
10+
Features<features>
11+
Usage<usage>
912
Configuration<configuration/index>
13+
API Reference<api_reference/index>
14+
Getting Help<getting_help>
15+
Changelog<changelog>
16+
Contributing<contributing>
17+
License<license>

0 commit comments

Comments
 (0)