Skip to content

Commit 8db93fa

Browse files
committed
added jldoctest, added compat
1 parent 9680467 commit 8db93fa

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ColorTypes = "0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11"
2020
DataDeps = "0.3, 0.4, 0.5, 0.6, 0.7"
2121
FixedPointNumbers = "0.3, 0.4, 0.5, 0.6, 0.7, 0.8"
2222
GZip = "0.5"
23+
JSON3 = "1"
2324
MAT = "0.7, 0.8, 0.9, 0.10"
2425
PyCall = "1"
2526
Requires = "1"

src/Mutagenesis/Mutagenesis.jl

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,26 @@ The `Mutagenesis` dataset comprises 188 molecules trialed for mutagenicity on Sa
1111
[CTUAvastLab/datasets](https://github.com/CTUAvastLab/datasets/tree/main/mutagenesis).
1212
1313
Train, test and validation data can be loaded using:
14-
```julia
15-
train_x, train_y = Mutagenesis.traindata()
16-
test_x, test_y = Mutagenesis.testdata()
17-
val_x, val_y = Mutagenesis.valdata()
14+
```jldoctest
15+
julia> using Mutagenesis
16+
17+
julia> train_x, train_y = Mutagenesis.traindata();
18+
19+
julia> test_x, test_y = Mutagenesis.testdata();
20+
21+
julia> val_x, val_y = Mutagenesis.valdata();
22+
23+
julia> train_x[1:2]
24+
JSON3.Object{Base.CodeUnits{UInt8,String},SubArray{UInt64,1,Array{UInt64,1},Tuple{UnitRange{Int64}},true}} with 6 entries:
25+
:ind1 => 1
26+
:inda => 0
27+
:logp => 4.23
28+
:lumo => -1.246
29+
:mutagenic => 1
30+
:atoms => JSON3.Object[{…
31+
32+
julia> train_y[1]
33+
1
1834
```
1935
"""
2036
module Mutagenesis

0 commit comments

Comments
 (0)