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

Repo jbei org changes #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Repo jbei org changes #5

wants to merge 6 commits into from

Conversation

jdmccauley
Copy link
Contributor

  • Remove self-import

The predict_loading_concentration module was importing itself, which is
probably not what we want it doing.

  • Wrap top-level predict_loading_concentration in main

jdmccauley and others added 3 commits April 12, 2021 17:12
The predict_loading_concentration module was importing itself, which is
probably not what we want it doing.
@jdmccauley jdmccauley requested a review from tianar May 6, 2021 00:07
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.
Copy link

@tianar tianar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start!

predict_loading_concentration.py Show resolved Hide resolved
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.
Copy link

@tianar tianar left a 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

predict_loading_concentration.py Outdated Show resolved Hide resolved
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:
Copy link

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.

Copy link
Contributor Author

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!

Copy link

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?

Copy link

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.

predict_loading_concentration.py Show resolved Hide resolved
@tianar
Copy link

tianar commented May 19, 2021

Also, please check the README, in particular the installation instructions.

@jdmccauley jdmccauley force-pushed the repo_jbei_org_changes branch from b1f7cb8 to 3f04b85 Compare May 21, 2021 21:54
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.
@jdmccauley jdmccauley force-pushed the repo_jbei_org_changes branch from 3f04b85 to 56d43df Compare May 21, 2021 22:00
Copy link

@tianar tianar left a 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
Copy link

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.
Copy link

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:
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants