-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from databio/dev
Release 0.4.1
- Loading branch information
Showing
15 changed files
with
135 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: test coverage | ||
|
||
on: | ||
push: | ||
branches: [master, dev] | ||
|
||
jobs: | ||
cli-coverage-report: | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
os: [ ubuntu-latest ] # can't use macOS when using service containers or container jobs | ||
runs-on: ${{ matrix.os }} | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: dockerpassword | ||
POSTGRES_DB: pipestat-test | ||
POSTGRES_HOST: localhost | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dev dependencies | ||
run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi | ||
|
||
- name: Install test dependencies | ||
run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi | ||
|
||
- run: pip install . | ||
|
||
- name: Run tests | ||
run: coverage run -m pytest | ||
|
||
- name: build coverage | ||
run: coverage html -i | ||
|
||
- run: smokeshow upload htmlcov | ||
env: | ||
SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage} | ||
SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 50 | ||
SMOKESHOW_GITHUB_CONTEXT: coverage | ||
SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }} | ||
SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
# bbconf | ||
<h1 align="center">bbconf</h1> | ||
|
||
![Run pytests](https://github.com/databio/bbconf/workflows/Run%20pytests/badge.svg) | ||
[![codecov](https://codecov.io/gh/databio/bbconf/branch/master/graph/badge.svg)](https://codecov.io/gh/databio/bbconf) | ||
[![pypi-badge](https://img.shields.io/pypi/v/bbconf?color=%2334D058)](https://pypi.org/batabio/bbconf) | ||
[![pypi-version](https://img.shields.io/pypi/pyversions/bbconf.svg?color=%2334D058)](https://pypi.org/databio/bbconf) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
[![Github badge](https://img.shields.io/badge/source-github-354a75?logo=github)](https://github.com/databio/bbconf) | ||
[![coverage](https://coverage-badge.samuelcolvin.workers.dev/databio/bbconf.svg)](https://coverage-badge.samuelcolvin.workers.dev/redirect/databio/bbconf) | ||
|
||
|
||
*BEDBASE* project configuration package | ||
*BEDBASE* project configuration package (agent) | ||
|
||
## What is this? | ||
|
||
`bbconf` standardizes reporting of [bedstat](https://github.com/databio/bedstat) and [bedbuncher](https://github.com/databio/bedsbuncher) results. It formalizes a way for these pipelines and downstream tools to communicate -- the produced results can easily and reliably become an | ||
input for the server ([bedhost](https://github.com/databio/bedhost)). The object exposes API for interacting with the results and is backed by a [PostgreSQL](https://www.postgresql.org/) database. | ||
`bbconf` is a configuration and management tool for BEDbase, facilitating the reading of configuration files, | ||
setting up connections to PostgreSQL and Qdrant databases, managing file paths, and storing transformer models. | ||
It formalizes communication pathways for pipelines and downstream tools, ensuring seamless interaction." | ||
|
||
## Installation | ||
--- | ||
|
||
**Documentation**: <a href="https://docs.bedbase.org/bedboss" target="_blank">https://docs.bedbase.org/bedboss</a> | ||
|
||
**Source Code**: <a href="https://github.com/databio/bbconf" target="_blank">https://github.com/databio/bbconf</a> | ||
|
||
--- | ||
|
||
Install from [GitHub releases](https://github.com/databio/bbconf/releases) or from PyPI using `pip`: | ||
## Installation | ||
To install `bbclient` use this command: | ||
``` | ||
pip install bbclient | ||
``` | ||
or install the latest version from the GitHub repository: | ||
``` | ||
pip install --user bbconf | ||
pip install git+https://github.com/databio/bbconf.git | ||
``` | ||
|
||
## Documentation | ||
- [Bedbase configuration file](docs/config.ipynb) | ||
- [Usage demonstration](docs/demo.ipynb) | ||
- [Python API](docs/bbc_api.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import logging | ||
import coloredlogs | ||
|
||
from bbconf.bbconf import BedBaseConf, get_bedbase_cfg | ||
from ._version import __version__ | ||
from .const import PKG_NAME | ||
|
||
__all__ = ["BedBaseConf", "get_bedbase_cfg", "__version__"] | ||
|
||
_LOGGER = logging.getLogger(PKG_NAME) | ||
coloredlogs.install( | ||
logger=_LOGGER, | ||
datefmt="%H:%M:%S", | ||
fmt="[%(levelname)s] [%(asctime)s] [BBCONF] %(message)s", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.