-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Tynecki
committed
Aug 24, 2020
1 parent
059fc94
commit 9747097
Showing
7 changed files
with
108 additions
and
53 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 |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
bert_model/ | ||
.pypirc |
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,6 @@ | ||
include requirements.txt | ||
include LICENSE | ||
include CHANGELOG.md | ||
include README.md | ||
include setup.py | ||
recursive-include examples .ipynb |
34 changes: 34 additions & 0 deletions
34
examples/embeddings/Bacteriophage-proteins-embedding.ipynb
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,34 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from pha" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.6.9" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
File renamed without changes.
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,3 +1,4 @@ | ||
[metadata] | ||
description-file = README.md | ||
|
||
long_description = file: README.md | ||
long_description_content_type = text/markdown |
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,44 +1,64 @@ | ||
from distutils.core import setup | ||
from setuptools import setup | ||
from glob import glob | ||
from pathlib import Path | ||
|
||
|
||
long_description = ( | ||
CURRENT_DIR = Path(__file__).parent | ||
|
||
long_description = (CURRENT_DIR / "README.md").read_text(encoding="utf8") | ||
|
||
description = ( | ||
"PHAGES2050 is a novel Python 3.6+ programming language framework" | ||
" to boost bacteriophage research & therapy and infrastructure in" | ||
" order to achieve the full potential to fight against antimicrobial" | ||
" resistant bacteria within **Natural Language Processing (NLP)** and **Deep Learning**." | ||
" to boost bacteriophage research & therapy" | ||
) | ||
|
||
# Read requirements and process as list of strings | ||
dependencies = (CURRENT_DIR / "requirements.txt").read_text() | ||
dependencies = list(map(str.strip, filter(None, dependencies.split('\n')))) | ||
|
||
|
||
with open("requirements.txt") as requirements: | ||
# Read requirements and process as list of strings | ||
packages = list(map(str.strip, requirements.readlines())) | ||
version = '0.3.0' | ||
|
||
setup( | ||
name="phages2050", | ||
version=version, | ||
license="MIT", | ||
description=long_description, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Piotr Tynecki", | ||
author_email="[email protected]", | ||
url="https://github.com/ptynecki/PHAGES2050", | ||
download_url=f"https://github.com/ptynecki/PHAGES2050/archive/v{version}.tar.gz", | ||
install_requires=packages, | ||
keywords=[ | ||
"bacteriophages", | ||
"phages", | ||
"phage therapy", | ||
"phage research", | ||
"amr", | ||
"genome embedding", | ||
"protein embedding", | ||
], | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
], | ||
python_requires=">=3.6", | ||
) | ||
version = "0.0.2" | ||
|
||
setup( | ||
name="phages2050", | ||
version=version, | ||
license="MIT", | ||
description=description, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Piotr Tynecki", | ||
author_email="[email protected]", | ||
url="https://github.com/ptynecki/PHAGES2050", | ||
download_url=f"https://github.com/ptynecki/PHAGES2050/archive/v{version}.tar.gz", | ||
setup_requires=[ | ||
'setuptools>=49.6.0', | ||
'wheel>=0.35.1' | ||
], | ||
install_requires=dependencies, | ||
packages=[ | ||
"crawlers", | ||
"crawlers.ncbi", | ||
"crawlers.millardlab", | ||
"features", | ||
"features.extractors", | ||
"embeddings", | ||
"embeddings.proteins", | ||
], | ||
data_files=glob('examples/*/**'), | ||
include_package_data=True, | ||
keywords=[ | ||
"bacteriophages", | ||
"phages", | ||
"phage therapy", | ||
"phage research", | ||
"amr", | ||
"genome embedding", | ||
"protein embedding", | ||
], | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
], | ||
python_requires=">=3.6", | ||
) |