-
Notifications
You must be signed in to change notification settings - Fork 0
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
Repo jbei org changes #5
base: master
Are you sure you want to change the base?
Conversation
The predict_loading_concentration module was importing itself, which is probably not what we want it doing.
Remove the run.sh and Pipfile for this repo since they are not used. Also, revert the README to its previous state in commit 651b2c3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start!
The real predict_loading_concentration function that was called in the two predict_loading_concentration.py files was located in __init__.py. This real function was moved to diva_seq_opt/utility. The duplicated predict_loading_concentration.py in diva_seq_opt was deleted, since the same actions are done by the parent directory's predict_loading_concentration.py. The __init__.py was cleared of all text, so it serves only to make diva_seq_opt a module. The main predict_loading_concentration.py was modified to make the call to predict_loading_concentration() in utility.py.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments inline
parser.add_argument('OF' ,type=str, help='Prediction Plot output file, *.png') | ||
args = parser.parse_args() | ||
#Load Model | ||
with open('./diva_seq_opt/model/model30.pkl','rb') as fp: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later on we should change this model name to e.g. model_latest.pkl and always have a copy of the latest model. For example, at the end of the year the model
directory will contain:
model_2018.pkl, model_05_2021.pkl, model_12_2021.pkl, model_latest.pkl, where the last two would be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I very much agree for the future!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please include a TODO about that before this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the path for models should not be among the code but in a separate directory at the same level as notebooks.
Also, please check the README, in particular the installation instructions. |
b1f7cb8
to
3f04b85
Compare
Moved an import statement in predict_loading_concentration:main from main() to the top. Edited setup.py to call the new predict_loading_concentration. Iterated version. Updated REAMDE to show dependency installation instructions. Finish the last sentence of the README.
3f04b85
to
56d43df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting there!
pip install diva_dna_seq | ||
The dependencies of this tool can be installed with: | ||
``` | ||
pip install -r requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about installing the package using pip? https://pypi.org/project/diva-seq-opt/
That done using setup.py. I can help with that if you'd like.
@@ -0,0 +1,6 @@ | |||
#!/bin/sh | |||
|
|||
# Installs the pipenv for running the tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be instructions for this in README.
parser.add_argument('OF' ,type=str, help='Prediction Plot output file, *.png') | ||
args = parser.parse_args() | ||
#Load Model | ||
with open('./diva_seq_opt/model/model30.pkl','rb') as fp: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the path for models should not be among the code but in a separate directory at the same level as notebooks.
The predict_loading_concentration module was importing itself, which is
probably not what we want it doing.