You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
9
9
Standard set of data-loaders for training and making predictions for DNA sequence-based models.
10
10
11
-
All dataloaders in `kipoiseq.datasets` decorated with `@kipoi_dataloader` (SeqDataset and SeqStringDataset) are compatible Kipoi models and can be directly used when specifying a new model in `model.yaml`:
11
+
All dataloaders in `kipoiseq.dataloaders` decorated with `@kipoi_dataloader` (IntervalSeqDl and IntervalSeqStringDl) are compatible Kipoi models and can be directly used when specifying a new model in `model.yaml`:
12
12
```yaml
13
13
...
14
14
default_dataloader:
15
-
defined_as: kipoiseq.datasets.SeqDataset
15
+
defined_as: kipoiseq.dataloaders.IntervalSeqDl
16
16
default_args:
17
-
auto_resize_len: 1000# override default args in SeqDataset
17
+
auto_resize_len: 1000# override default args in IntervalSeqDl
18
18
19
19
dependencies:
20
20
pip:
@@ -31,11 +31,11 @@ pip install kipoiseq
31
31
## Getting started
32
32
33
33
```python
34
-
from kipoiseq.datasetsimportSeqDataset
34
+
from kipoiseq.dataloadersimportIntervalSeqDl
35
35
36
-
dl =SeqDataset.init_example() # use the provided example files
36
+
dl =IntervalSeqDl.init_example() # use the provided example files
37
37
# your own files
38
-
dl =SeqDataset("intervals.bed", "genome.fa")
38
+
dl =IntervalSeqDl("intervals.bed", "genome.fa")
39
39
40
40
len(dl) # length of the dataset
41
41
@@ -59,7 +59,7 @@ More info:
59
59
- See [docs](https://kipoi.org/kipoiseq/)
60
60
61
61
## How to write your own data-loaders
62
-
- Read the pytorch [Data Loading and Processing Tutorial](https://pytorch.org/tutorials/beginner/data_loading_tutorial.html) to become more familiar with transforms and datasets
63
-
- Read the code for `SeqDataset` in [kipoiseq/datasets/sequence.py](https://github.com/kipoi/kipoiseq/blob/master/kipoiseq/datasets/sequence.py)
62
+
- Read the pytorch [Data Loading and Processing Tutorial](https://pytorch.org/tutorials/beginner/data_loading_tutorial.html) to become more familiar with transforms and dataloaders
63
+
- Read the code for `IntervalSeqDl` in [kipoiseq/dataloaders/sequence.py](https://github.com/kipoi/kipoiseq/blob/master/kipoiseq/dataloaders/sequence.py)
64
64
- you can skip the `@kipoi_dataloader` and the long yaml doc-string. These are only required if you want to use dataloaders in Kipoi's model.yaml files.
65
65
- Explore the available transforms ([functional](http://kipoi.org/kipoiseq/transforms/functional/), [class-based](http://kipoi.org/kipoiseq/transforms/transforms/)) or extractors ([kipoiseq](https://github.com/kipoi/kipoiseq/blob/master/kipoiseq/extractors.py), [genomelake](https://github.com/kundajelab/genomelake/blob/master/genomelake/extractors.py))
0 commit comments