Skip to content

Commit 351c920

Browse files
authored
Merge pull request #61 from kathyxchen/kipoi-export
Adding an example of how to export a model to Kipoi
2 parents 7127725 + d47116c commit 351c920

File tree

15 files changed

+2495
-15
lines changed

15 files changed

+2495
-15
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,14 @@ Selene is a Python library and command line interface for training deep neural n
77
## Installation
88

99
We recommend using Selene with Python 3.6 or above.
10-
Package installation should only take a few minutes (less than 10 minutes, typically ~2-3 minutes) with any of these methods (pip, conda, source).
10+
Package installation should only take a few minutes (less than 10 minutes, typically ~2-3 minutes) with any of these methods (conda, source). We previously supported installation through pip, but we are refraining from releasing the latest version of Selene with pip until we resolve some issues we are observing with the pip installations of torch and torchvision.
1111

1212
### Installing selene with [Anaconda](https://www.anaconda.com/download/) (for Linux):
1313

1414
```sh
1515
conda install -c bioconda selene-sdk
1616
```
1717

18-
### Installing selene with pip:
19-
```sh
20-
pip install selene-sdk
21-
```
22-
2318
### Installing selene from source:
2419

2520
First, download the latest commits from the source repository (or download the latest tagged version of Selene for a stable release):
@@ -42,6 +37,8 @@ Otherwise, if you would like to locally install Selene, you can run
4237
python setup.py install
4338
```
4439

40+
### Additional dependency for the CLI
41+
4542
Please install `docopt` before running the command-line script `selene_cli.py` provided in the repository.
4643

4744
## About Selene

docs/source/overview/faq.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ The main modules that users may want to extend are
1010
Please refer to the documentation for these classes.
1111
If you are interested in contributing new modules to Selene or requesting new functionality, please submit an issue to [Selene](https://github.com/FunctionLab/selene/issues) or e-mail <[email protected]>.
1212

13+
## Exporting a Selene-trained model to Kipoi
14+
We have provided an example of how to prepare a model for upload to [Kipoi's model zoo](http://kipoi.org/) using a model trained during case study 2. You can use [this example](https://github.com/FunctionLab/selene/tree/master/manuscript/case2/3_kipoi_export) as a starting point for preparing your own model for Kipoi. We have provided a script that can help to automate parts of the process.
15+
16+
We are also working on an export function that will be built into Selene and accessible through the CLI.
17+
1318
## Hyperparameter optimization
1419
Hyperparameter optimization is the process of finding the set of hyperparameters that yields an optimal model against a predefined score (e.g. minimizing a loss function).
1520
Hyperparameters are the variables that govern the training process (i.e. these parameters are constant during training, compared to model parameters which are optimized/"tuned" by the training process itself).

docs/source/overview/installation.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
We recommend that users either clone and build the repository or install Selene through conda. This is because there is less control over PyTorch dependencies with pip.
3+
Users can either clone and build the repository locally or install Selene through conda. We previously supported installation through pip, but are refraining from releasing the latest version of Selene through pip due to some issues we are observing when using the pip-installed torch and torchvision dependencies.
44

55
## Installing with Anaconda
66

@@ -9,14 +9,6 @@ To install with conda (recommended for Linux users), run the following command i
99
conda install -c bioconda selene-sdk
1010
```
1111

12-
## Installing with pip
13-
14-
Selene can be installed with [pip](https://pypi.org/project/pip/).
15-
To install with pip, simply type the following commands into the terminal:
16-
```
17-
pip install selene-sdk
18-
```
19-
2012
## Installing from source
2113

2214
Selene can also be installed from source.
@@ -39,4 +31,6 @@ Otherwise, if you would like to locally install Selene, you can run
3931
python setup.py install
4032
```
4133

34+
## Additional dependency for running the CLI
35+
4236
Please install `docopt` before running the command-line script `selene_cli.py` provided in the repository.

0 commit comments

Comments
 (0)