-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(semantic-release): Add semantic release.
[skip ci]
- Loading branch information
1 parent
7b2417c
commit 9717f45
Showing
20 changed files
with
137 additions
and
35 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
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,2 +1,30 @@ | ||
# betula | ||
Automatic pre-curation of GTDB trees. | ||
# GTDB Precurate | ||
|
||
[![PyPI](https://img.shields.io/pypi/v/gtdb_precurate.svg)](https://pypi.python.org/pypi/gtdb_precurate) | ||
|
||
`gtdb_precurate` is an internally used tool used that provides automatic pre-curation of GTDB trees. | ||
|
||
## Installation | ||
|
||
gtdb_precurate is available on PyPI and can be installed with pip: | ||
|
||
```bash | ||
pip install gtdb_precurate | ||
``` | ||
|
||
## Usage | ||
|
||
After a successful install, the `gtdb_precurate` command should be available. | ||
|
||
The following positional arguments are required: | ||
|
||
* `metadata` - This is the path to the metadata file, it should contain a header as the first line. | ||
The only requirement is that it has the following columns: `formatted_accession` and `ncbi_wgs_formatted`. | ||
* `red_dict` - This is the path to the RED dictionary output by PhyloRank. | ||
* `red_decorated_tree` - This is the path to the scaled RED decorated output by PhyloRank. | ||
* `out_directory` - This is the path to the directory where the output files will be written. | ||
|
||
The following optional arguments are available: | ||
|
||
* `--min-bootstrap` - This is the minimum bootstrap value to consider a node to be supported. Default: 95.0. | ||
* `--debug` - This enables debug logging. Default: False. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
__author__ = 'Aaron Mussig' | ||
__author_email__ = '[email protected]' | ||
__copyright__ = 'Copyright 2023' | ||
__credits__ = ['Aaron Mussig'] | ||
__description__ = 'Automatic pre-curation of GTDB trees.' | ||
__email__ = '[email protected]' | ||
__license__ = 'GPL3' | ||
__maintainer__ = 'Aaron Mussig' | ||
__maintainer_email__ = '[email protected]' | ||
__name__ = 'gtdb_precurate' | ||
__python_requires__ = '>=3.8' | ||
__status__ = 'Production' | ||
__title__ = 'GTDB Precurate' | ||
__url__ = 'https://github.com/Ecogenomics/gtdb_precurate' | ||
__version__ = '1.0.0' |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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,60 @@ | ||
import os | ||
import re | ||
|
||
from setuptools import setup, find_packages | ||
|
||
|
||
def read_meta(): | ||
"""Read each of the keys stored in __init__.py | ||
Returns | ||
------- | ||
dict[str, str] | ||
A dictionary containing each of the string key value pairs. | ||
""" | ||
path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'gtdb_precurate/__init__.py') | ||
with open(path) as fh: | ||
hits = re.findall(r'__(\w+)__ ?= ?["\'](.+)["\']\n', fh.read()) | ||
return {k: v for k, v in hits} | ||
|
||
|
||
def readme(): | ||
with open('README.md') as f: | ||
return f.read() | ||
|
||
|
||
meta = read_meta() | ||
setup( | ||
author=meta['author'], | ||
author_email=meta['author_email'], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
], | ||
data_files=[("", ["LICENSE"])], | ||
description=meta['description'], | ||
entry_points={ | ||
'console_scripts': [ | ||
'gtdb_precurate = gtdb_precurate.__main__:main' | ||
] | ||
}, | ||
install_requires=["dendropy>=4.1.0"], | ||
license=meta['license'], | ||
long_description=readme(), | ||
long_description_content_type='text/markdown', | ||
maintainer=meta['maintainer'], | ||
maintainer_email=meta['maintainer_email'], | ||
name=meta['name'], | ||
packages=find_packages(), | ||
python_requires=meta['python_requires'], | ||
url=meta['url'], | ||
version=meta['version'] | ||
) |