Skip to content

Commit

Permalink
adding lib imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dabane-ghassan committed Aug 11, 2021
1 parent 9ab1fb9 commit 54cb405
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions cazy_little_helper/create_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
@author: dabane-ghassan
"""
from __future__ import absolute_import
from parsers import Parser
from model import Model
from cazy_little_helper.parsers import Parser
from cazy_little_helper.model import Model

def launch_create_model(
path: str,
Expand Down
4 changes: 2 additions & 2 deletions cazy_little_helper/find_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@author: dabane-ghassan
"""
from __future__ import absolute_import
from parsers import Parser
from toolkit import Toolkit
from cazy_little_helper.parsers import Parser
from cazy_little_helper.toolkit import Toolkit

def launch_find(
ids_file: str,
Expand Down
4 changes: 2 additions & 2 deletions cazy_little_helper/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from sklearn.calibration import CalibratedClassifierCV
from sklearn.utils import shuffle
from joblib import dump
from preprocessor import Preprocessor
from scraper import Scraper
from cazy_little_helper.preprocessor import Preprocessor
from cazy_little_helper.scraper import Scraper

class Model:
"""A class to represent the architecture of CAZy's little helper,
Expand Down
8 changes: 4 additions & 4 deletions cazy_little_helper/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import numpy as np
import pandas as pd
from metapub.pubmedcentral import get_pmcid_for_otherid
from scraper import Scraper
from preprocessor import Preprocessor
from scorer import Scorer
from toolkit import Toolkit
from cazy_little_helper.scraper import Scraper
from cazy_little_helper.preprocessor import Preprocessor
from cazy_little_helper.scorer import Scorer
from cazy_little_helper.toolkit import Toolkit

class Pipeline:
"""A prediction pipeline class.
Expand Down
4 changes: 2 additions & 2 deletions cazy_little_helper/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
@author: dabane-ghassan
"""
from __future__ import absolute_import
from parsers import Parser
from pipeline import Pipeline
from cazy_little_helper.parsers import Parser
from cazy_little_helper.pipeline import Pipeline

def launch_pipeline(
input_data: str,
Expand Down
16 changes: 9 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

setuptools.setup(
name='cazy-little-helper',
version='0.1',
version='1.0',
description='A biocuration assistant for the CAZy database.',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/dabane-ghassan/cazy-little-helper',
author='dabane-ghassan',
author_email = 'dabane.ghassan@gmail.com',
#download_url = 'https://github.com/dabane-ghassan/dnazip/archive/v0.2.tar.gz',
download_url = 'https://github.com/dabane-ghassan/cazy-little-helper/archive/refs/tags/v1.0.tar.gz',
license='MIT',
packages=setuptools.find_packages(include=['cazy-little-helper', 'cazy-little-helper.*']),
classifiers=[
Expand All @@ -30,10 +30,12 @@
'mock >= 4.0.0',
]
},
#entry_points={
# 'gui_scripts': [
# 'dnazip=dnazip.main:main'
# ]
#},
entry_points={
'console_scripts': [
'predict=cazy_little_helper.predict:main',
'create=cazy_little_helper.create_model:main',
'find=cazy_little_helper.find_ids:main',
]
},
python_requires='>=3.6',
)

0 comments on commit 54cb405

Please sign in to comment.