Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add(poetry support) #98

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ tag = True
tag_name = v{new_version}
message = Bump version: {current_version} → {new_version} [skip ci]

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]

[bumpversion:file:genotype_api/__init__.py]
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ WORKDIR /home/worker/app
COPY . /home/worker/app

# Install app requirements
RUN pip install -r requirements.txt
RUN pip install poetry
RUN poetry config virtualenvs.create false \
&& poetry install

# Install app
RUN pip install -e .

CMD gunicorn \
--workers=$GUNICORN_WORKERS \
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ install [poetry]
```
git clone https://github.com/Clinical-Genomics/genotype-api
cd genotype-api
pip install -e . -r requirements.txt
pip install poetry
poetry install
```

## Usage
Expand All @@ -26,14 +27,14 @@ Go to `http://localhost:8000/docs` and test the API
## Authorization


There is currently no working demo avalible.
To autorize you'l need to provide a valid ID-token.
There is currently no working demo available.
To autorise you'll need to provide a valid ID-token.

## Description

After sample prep a small part of the DNA is sent to MAF where they do SNP calling with a orthogonal method for a predefined set of SNPs. MAF also to gender prediction based on their result. The result from MAF is sent back as an excel sheet and this get uploaded to genotype via the `Upload Plate`-endpoint.

The same samples get sequenced and genotyped inhouse and the result of this is uploaded in the VCF format via the `Upload Sequence`-endpoint.
The same samples get sequenced and genotyped in-house and the result of this is uploaded in the VCF format via the `Upload Sequence`-endpoint.

The two analyses for each sample are then compared to check for anomalies.

Expand Down
1,607 changes: 1,607 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[tool.poetry]
name = "genotype_api"
version = "2.0.8"
description = "Genotype is a tool to validate integrity and sex of samples."
authors = ["Måns Magnusson","Maya Brandi"]
license = "MIT License"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
sqlalchemy = ">=2.0.0"
aiofiles = "^23.2.1"
bcrypt = "^4.1.2"
bump2version = "^1.0.1"
click = "^8.1.7"
coloredlogs = "^15.0.1"
email-validator = "^2.1.1"
fastapi = "0.75.0"
google-auth = "^2.28.1"
gunicorn = "^21.2.0"
httptools = "^0.6.1"
numpy = "^1.26.4"
openpyxl = "^3.1.2"
passlib = "^1.7.4"
pydantic = "1.10.14"
pymysql = "^1.1.0"
python-dotenv = "^1.0.1"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
python-multipart = "^0.0.9"
pyyaml = "^6.0.1"
requests = "^2.31.0"
sqlmodel = "^0.0.16"
uvicorn = "^0.27.1"
uvloop = "^0.19.0"


[tool.poetry.group.dev.dependencies]
bump2version = "^1.0.1"
coveralls = "^3.3.1"
pre-commit = "^3.6.2"
pylint = "^3.1.0"
pytest-cov = "^4.1.0"
pytest = ">=5.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ coveralls
pre-commit
pylint
pytest-cov
pytest>=5.2<
pytest>=5.2
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SQLAlchemy==1.4.30
SQLAlchemy>=2.0.0
aiofiles
bcrypt
bump2version
Expand Down
33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

Loading