/
model-template.yaml
70 lines (67 loc) · 2.07 KB
/
model-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
defined_as: kipoi.model.PyTorchModel
args:
module_class: {{ module_class }} # model_arch.WrappedDeeperDeepSEA
{% if module_kwargs %}
module_kwargs:
{% for k, v in module_kwargs.items(): -%}
{{ k }}: {{ v }}
{% endfor %}
{% endif %}
weights: {{ model_weights }} # remove this line after uploading to Zenodo
# To share the model with others, upload the `.pth.tar` to Zenodo
# or Figshare, fill in the correct URL below, comment out `selene_model.pth.tar` above,
# and uncomment these two lines (`url` and `md5` should still be nested under `weights`):
# url: https://zenodo.org/record/<zenodo id>/files/selene_model.pth?download=1
# md5: {{ selene_model_md5 }}
info:
authors:
{% for a in authors -%}
- name: {{ a['name'] }}
github: {{ a['github'] }}
{% endfor %}
license: {{ license }}
doc: >
model_name = {{ model_name }}
....
cite_as: / # update with the DOI url to the publication
# e.g. trained_on: all chromosomes except validation chromosomes 6 & 7
# and test chromosomes 8 & 9
trained_on: {{ trained_on_description }}
training_procedure: Using Selene version {{ selene_version }}
{% if tags -%}
tags:
{% for t in tags -%}
- {{ t }}
{% endfor %}
{% endif %}
default_dataloader:
defined_as: kipoiseq.dataloaders.SeqIntervalDl
default_args:
auto_resize_len: {{ seq_len }}
alphabet_axis: 0
dtype: np.float32
dependencies:
conda:
- h5py
- pytorch::pytorch-cpu=={{ pytorch_version }}
pip:
- kipoiseq
schema:
inputs:
name: seq
special_type: DNASeq
shape: (4, {{ seq_len }})
doc: DNA sequence
associated_metadata: ranges
targets:
name: Output tasks
shape: ({{ n_tasks }}, ) # (i.e. n_classes or n_genomic_features)
doc: Probability for a specific output task
column_labels:
- {{ predictor_names }} # list of classes predicted by the model
# Run `kipoi test <model_dir> -o expect.h5` to generate the file
# test:
# expect:
# url: <URL>/expect.h5
# md5: <md5 hash>
# precision_decimal: 6