locuscomparepy 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locuscomparepy-0.1.0/.github/workflows/ci.yml +25 -0
- locuscomparepy-0.1.0/.github/workflows/publish.yml +29 -0
- locuscomparepy-0.1.0/.gitignore +14 -0
- locuscomparepy-0.1.0/LICENSE +674 -0
- locuscomparepy-0.1.0/NEWS.md +13 -0
- locuscomparepy-0.1.0/PKG-INFO +125 -0
- locuscomparepy-0.1.0/README.md +102 -0
- locuscomparepy-0.1.0/docs/locuscompare.png +0 -0
- locuscomparepy-0.1.0/docs/logo.png +0 -0
- locuscomparepy-0.1.0/pyproject.toml +38 -0
- locuscomparepy-0.1.0/src/locuscompare/__init__.py +25 -0
- locuscomparepy-0.1.0/src/locuscompare/analysis.py +47 -0
- locuscomparepy-0.1.0/src/locuscompare/config.py +26 -0
- locuscomparepy-0.1.0/src/locuscompare/core.py +64 -0
- locuscomparepy-0.1.0/src/locuscompare/data/__init__.py +2 -0
- locuscomparepy-0.1.0/src/locuscompare/data/eqtl.tsv +4904 -0
- locuscomparepy-0.1.0/src/locuscompare/data/gwas.tsv +6363 -0
- locuscomparepy-0.1.0/src/locuscompare/datasets.py +13 -0
- locuscomparepy-0.1.0/src/locuscompare/db.py +51 -0
- locuscomparepy-0.1.0/src/locuscompare/io.py +75 -0
- locuscomparepy-0.1.0/src/locuscompare/plot.py +102 -0
- locuscomparepy-0.1.0/tests/test_assign_color.py +22 -0
- locuscomparepy-0.1.0/tests/test_core.py +54 -0
- locuscomparepy-0.1.0/tests/test_db.py +33 -0
- locuscomparepy-0.1.0/tests/test_get_lead_snp.py +54 -0
- locuscomparepy-0.1.0/tests/test_locuscompare_validation.py +17 -0
- locuscomparepy-0.1.0/tests/test_read_metal.py +56 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
- name: Install
|
|
21
|
+
run: pip install -e ".[dev]"
|
|
22
|
+
- name: Test
|
|
23
|
+
# Database-backed tests auto-skip when the reference DB is unreachable
|
|
24
|
+
# (e.g. from GitHub-hosted runners), so the offline logic is what's gated here.
|
|
25
|
+
run: pytest -v
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Builds and publishes to PyPI when a GitHub Release is published.
|
|
4
|
+
# Uses PyPI Trusted Publishing (OIDC) -- no API token stored anywhere.
|
|
5
|
+
# One-time setup on PyPI: add a "pending publisher" for project
|
|
6
|
+
# `locuscomparepy`, owner `boxiangliu`, repo `locuscomparepy`,
|
|
7
|
+
# workflow `publish.yml`, environment `pypi`.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
publish:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
environment: pypi
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # required for trusted publishing
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.12"
|
|
27
|
+
- run: pip install build
|
|
28
|
+
- run: python -m build
|
|
29
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|