-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/reference_alleles' into develop
- Loading branch information
Showing
16 changed files
with
962 additions
and
465 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,53 @@ | ||
name: Python tests | ||
# This workflow is triggered on pushes and PRs to the repository. | ||
# Only run if we changed a Python file | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- "docs/**" | ||
- "CHANGELOG.md" | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- "CHANGELOG.md" | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
runners: | ||
description: "Runners to test on" | ||
type: choice | ||
options: | ||
- "ubuntu-latest" | ||
- "self-hosted" | ||
default: "self-hosted" | ||
|
||
# Cancel if a newer run with the same workflow name is queued | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.10 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run tests | ||
run: | | ||
pytest |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Read the Docs configuration file for MkDocs projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
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,4 @@ | ||
Sphinx>=3.3.1 | ||
sphinxcontrib-napoleon | ||
sphinx_rtd_theme>=0.5.0 | ||
myst-parser |
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,18 +1,30 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "taranis" | ||
version = "3.0.0" | ||
dynamic = ["dependencies"] | ||
requires-python = ">=3.10" | ||
|
||
authors = [ | ||
{name = "Sara Monzon", email = "[email protected]"}, | ||
{name = "Luis Chapado", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Luis Chapado", email = "[email protected]"} | ||
] | ||
description = "Tools for gene-by-gene allele calling analysis" | ||
readme = "README.md" | ||
authors = ["Sara Monzon <[email protected]>"] | ||
license = "GNU-3.0" | ||
license = {file = "LICENSE"} | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
|
||
[tool.poetry.scripts] | ||
taranis = "taranis.__main__:run_taranis" | ||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[project.scripts] | ||
taranis = "taranis.__main__:run_taranis" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["img", "virtualenv"] | ||
|
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,6 @@ | ||
[pytest] | ||
filterwarnings = | ||
ignore::pytest.PytestRemovedIn8Warning:_pytest.nodes:140 | ||
testpaths = | ||
tests | ||
python_files = test_*.py |
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,6 +1,8 @@ | ||
biopython | ||
igraph | ||
rich | ||
click | ||
leidenalg | ||
questionary | ||
bio | ||
scikit-learn | ||
|
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,37 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup, find_packages | ||
|
||
version = "3.0.0" | ||
|
||
with open("README.md") as f: | ||
readme = f.read() | ||
|
||
with open("requirements.txt") as f: | ||
required = f.read().splitlines() | ||
|
||
setup( | ||
name="taranis", | ||
version=version, | ||
description="Tools for gene-by-gene allele calling analysis", | ||
long_description=readme, | ||
long_description_content_type="text/markdown", | ||
keywords=[ | ||
"buisciii", | ||
"bioinformatics", | ||
"pipeline", | ||
"sequencing", | ||
"NGS", | ||
"next generation sequencing", | ||
], | ||
author="Sara Monzon", | ||
author_email="[email protected]", | ||
url="https://github.com/BU-ISCIII/taranis", | ||
license="GNU GENERAL PUBLIC LICENSE v.3", | ||
entry_points={"console_scripts": ["taranis=taranis.__main__:run_taranis"]}, | ||
python_requires=">=3.9, <4", | ||
install_requires=required, | ||
packages=find_packages(exclude=("docs")), | ||
include_package_data=True, | ||
zip_safe=False, | ||
) |
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
Oops, something went wrong.