Skip to content

Commit 5bcea5a

Browse files
committed
Fixed types and rebuilt.
1 parent c5657d5 commit 5bcea5a

File tree

2 files changed

+38
-37
lines changed

2 files changed

+38
-37
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ gsea metric-rank \
1919
example/sarcopenia/target.tsv \
2020
example/sarcopenia/data.tsv \
2121
example/sarcopenia/set.json \
22+
--standard-deviation 3 \
2223
--number-of-permutations 10 \
2324
--more-plots "WP_DNA_MISMATCH_REPAIR;WP_CELL_CYCLE"
2425
```

src/GSEA.jl

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ Run data-rank (single-sample) GSEA.
8787
8888
# Options
8989
90-
- `--standard-deviation`: 0. For column-wise normalization. 0 skips normalization.
91-
- `--exponent`: 1.
90+
- `--standard-deviation`: For column-wise normalization. 0 skips normalization.
91+
- `--exponent`:
9292
- `--algorithm`: "ks0" | "a0" | "da2" | "da2w" | "da2w0w".
93-
- `--minimum`: 1. The minimum set size.
94-
- `--maximum`: 1000. The maximum set size.
95-
- `--fraction`: 0. The minimum fraction of set members present.
96-
- `--number-of-plots`: 2.
97-
- `--low`: "Low".
98-
- `--high`: "High".
93+
- `--minimum`: The minimum set size.
94+
- `--maximum`: The maximum set size.
95+
- `--fraction`: The minimum fraction of set members present.
96+
- `--number-of-plots`:
97+
- `--low`:
98+
- `--high`:
9999
"""
100100
@cast function data_rank(
101101
directory,
102102
tsv,
103103
json;
104-
standard_deviation::Real = 0,
105-
exponent::Real = 1,
104+
standard_deviation::Float64 = 0.0,
105+
exponent::Float64 = 1.0,
106106
algorithm = "ks0",
107107
minimum::Int = 1,
108108
maximum::Int = 1000,
109-
fraction::Real = 0,
109+
fraction::Float64 = 0.0,
110110
number_of_plots::Int = 2,
111111
low = "Low",
112112
high = "High",
@@ -172,27 +172,27 @@ Run user-rank (pre-rank) GSEA.
172172
173173
# Options
174174
175-
- `--exponent`: 1.
175+
- `--exponent`:
176176
- `--algorithm`: "ks0" | "a0" | "da2" | "da2w" | "da2w0w".
177-
- `--minimum`: 1. The minimum set size.
178-
- `--maximum`: 1000. The maximum set size.
179-
- `--fraction`: 0. The minimum fraction of set members present.
180-
- `--number-of-permutations`: 100.
181-
- `--seed`: 20150603.
182-
- `--number-of-plots`: 2.
183-
- `--more-plots`: "". ;-separated set names.
184-
- `--low`: "Low".
185-
- `--high`: "High".
177+
- `--minimum`: The minimum set size.
178+
- `--maximum`: The maximum set size.
179+
- `--fraction`: The minimum fraction of set members present.
180+
- `--number-of-permutations`:
181+
- `--seed`:
182+
- `--number-of-plots`:
183+
- `--more-plots`: ;-separated set names.
184+
- `--low`:
185+
- `--high`:
186186
"""
187187
@cast function user_rank(
188188
directory,
189189
tsv,
190190
json;
191-
exponent::Real = 1,
191+
exponent::Float64 = 1.0,
192192
algorithm = "ks0",
193193
minimum::Int = 1,
194194
maximum::Int = 1000,
195-
fraction::Real = 0,
195+
fraction::Float64 = 0.0,
196196
number_of_permutations::Int = 100,
197197
seed::Int = 20150603,
198198
number_of_plots::Int = 2,
@@ -240,33 +240,33 @@ Run metric-rank (standard) GSEA.
240240
241241
# Options
242242
243-
- `--standard-deviation`: 0. For column-wise normalization. 0 skips normalization.
243+
- `--standard-deviation`: For column-wise normalization. 0 skips normalization.
244244
- `--metric`: "signal-to-noise-ratio" | "mean-difference" | "log-ratio".
245-
- `--exponent`: 1.
245+
- `--exponent`:
246246
- `--algorithm`: "ks0" | "a0" | "da2" | "da2w" | "da2w0w".
247-
- `--minimum`: 1. The minimum set size.
248-
- `--maximum`: 1000. The maximum set size.
249-
- `--fraction`: 0. The minimum fraction of set members present.
247+
- `--minimum`: The minimum set size.
248+
- `--maximum`: The maximum set size.
249+
- `--fraction`: The minimum fraction of set members present.
250250
- `--permutation`: "sample" | "set".
251-
- `--number-of-permutations`: 100.
252-
- `--seed`: 20150603.
253-
- `--number-of-plots`: 2.
254-
- `--more-plots`: "". ;-separated set names.
255-
- `--low`: "Low".
256-
- `--high`: "High".
251+
- `--number-of-permutations`:
252+
- `--seed`:
253+
- `--number-of-plots`:
254+
- `--more-plots`: ;-separated set names.
255+
- `--low`:
256+
- `--high`:
257257
"""
258258
@cast function metric_rank(
259259
directory,
260260
tsv1,
261261
tsv2,
262262
json;
263-
standard_deviation::Real = 0,
263+
standard_deviation::Float64 = 0.0,
264264
metric = "signal-to-noise-ratio",
265-
exponent::Real = 1,
265+
exponent::Float64 = 1.0,
266266
algorithm = "ks0",
267267
minimum::Int = 1,
268268
maximum::Int = 1000,
269-
fraction::Real = 0,
269+
fraction::Float64 = 0.0,
270270
permutation = "sample",
271271
number_of_permutations::Int = 100,
272272
seed::Int = 20150603,

0 commit comments

Comments
 (0)