Mercurial > repos > tduigou > doe_synbio_sampler
annotate sampler.xml @ 2:cd6d2c983e69 draft
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
author | tduigou |
---|---|
date | Sat, 01 Jul 2023 01:31:52 +0000 |
parents | 164616ec7f18 |
children | 0111a6eb7b98 |
rev | line source |
---|---|
0
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
1 <tool id="doe_synbio_sampler" name="iCFree sampler" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="@LICENCE@"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
2 <description>Generate data points using latin hypercube sampling (LHS)</description> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
3 <macros> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
4 <import>macros.xml</import> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
5 <token name="@TOOL_VERSION@">2.1.1</token> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
6 </macros> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
7 <requirements> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
8 <requirement type="package" version="@TOOL_VERSION@">icfree</requirement> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
9 </requirements> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
10 <expand macro="stdio"/> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
11 <command detect_errors="exit_code"><![CDATA[ |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
12 python -m icfree.sampler |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
13 '$cfps_file' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
14 --nb-sampling-steps '$adv.nb_sampling_steps' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
15 --nb-samples '$nb_samples' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
16 #if str($adv.sampling_ratio) != "" |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
17 #set ratios = ' '.join(['"' + $x + '"' for $x in $adv.sampling_ratio.split()]) |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
18 --sampling-ratios $ratios |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
19 #end if |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
20 #if str($adv.seed_cond.seed_param) == 'not_random' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
21 --seed '$adv.seed_cond.seed' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
22 #end if |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
23 --output-format 'tsv' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
24 --output-folder . && |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
25 mv sampling.tsv '$output_sampling' |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
26 ]]></command> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
27 <inputs> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
28 <param name="cfps_file" type="data" format="tabular" label="CFPS parameters and features" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
29 <param name="nb_samples" type="integer" value="99" min="1" max="198" label="Number of samples to generate" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
30 <section name="adv" title="Advanced Options" expanded="false"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
31 <param name="nb_sampling_steps" type="integer" value="5" min="1" max="10" label="Number of values for all factors when performing the sampling" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
32 <param name="sampling_ratio" type="text" value="" label="Ratios associated for all factors" help="Only float, space separated, are allowed"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
33 <validator type="regex" message="Float separated by a space between in the range: 0.0 - 1.0">^(?:(0.\d+|1\.0)(\s0?\.\d+|1\.0)*)*$</validator> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
34 </param> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
35 <conditional name="seed_cond"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
36 <param name="seed_param" type="select" label="Seed" help="Choose a seed or let it as random"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
37 <option value="random" selected="true">random</option> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
38 <option value="not_random">fixed</option> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
39 </param> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
40 <when value="random"/> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
41 <when value="not_random"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
42 <param name="seed" type="text" value="0" label="Seed value" help="Only integer allowed"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
43 <validator type="empty_field" message="Not empty, select random"/> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
44 <validator type="regex" message="Only integer allowed">^(?:\d+)$</validator> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
45 </param> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
46 </when> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
47 </conditional> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
48 </section> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
49 </inputs> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
50 <outputs> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
51 <data name="output_sampling" format="tabular" label="${tool.name}" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
52 </outputs> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
53 <tests> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
54 <!-- test 1: check if identical outputs are produced with default parameters --> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
55 <test> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
56 <param name="cfps_file" value="converter_proCFPS_parameters.tsv" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
57 <param name="seed_param" value="not_random" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
58 <param name="seed" value="0" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
59 <output name="output_sampling" file="sampler_sampling.test-1.tsv" ftype="tabular" compare="diff" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
60 </test> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
61 <!-- test 2: advanced arguments --> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
62 <test> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
63 <param name="cfps_file" value="converter_proCFPS_parameters.tsv" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
64 <param name="nb_sampling_steps" value="3" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
65 <param name="nb_samples" value="100" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
66 <param name="sampling_ratio" value="0.4 0.2 0.3" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
67 <param name="seed_param" value="not_random" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
68 <param name="seed" value="0" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
69 <param name="nb_samples" value="100" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
70 <output name="output_sampling" file="sampler_sampling.test-2.tsv" ftype="tabular" compare="diff" /> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
71 </test> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
72 </tests> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
73 <help><![CDATA[ |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
74 Sampler |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
75 ======= |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
76 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
77 This module generates a list of values for all parameters given in the input file. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
78 The values are generated using a Latin Hypercube Sampling (LHS) method (lhs function from the pyDOE package). |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
79 The number of values generated is given by the user and the values are saved in csv or tsv file. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
80 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
81 It is important to note that the user can pass some values that he whishes to combine. In this case, we are dealing with discrete space, and because LHS is working on continuous space the result sampling can contain duplicates. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
82 To avoid this, we have set some filters to select the appropriate sampling method: |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
83 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
84 * If the result sampling contain duplicates, then we replace them by random samples. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
85 * Proceed with full random sampling. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
86 * Generate all the combinations. |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
87 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
88 Input |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
89 ----- |
2
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
90 |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
91 Below is an example of an input file: |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
92 |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
93 | Parameter | maxValue | Ratios | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
94 |-----------|----------|---------------------| |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
95 | CP | 125 | 0.0 0.1 0.3 0.5 1.0 | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
96 | CPK | 125 | 1 | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
97 | tRNA | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
98 | AA | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
99 | ribosomes | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
100 | mRNA | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
101 | Mg | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
102 | K | 125 | | |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
103 |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
104 The first column is the parameter (or factor) names. |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
105 |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
106 The second column is the maxValue of the parameter that will be used in the sampling. |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
107 |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
108 The third column is the specific ratios we want to have for this parameter. If nothing defined, then take ratios given in program options. |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
109 If one single number is given, then take this number as a const value. |
cd6d2c983e69
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit b29963ef22900ba666d9be11f1dc09e4e3febf8b
tduigou
parents:
0
diff
changeset
|
110 If no value is given, then take the default ratios (`nb_samples` linear ratios from 0 to 1). |
0
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
111 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
112 Advanced options: |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
113 ----------------- |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
114 * **Number of sampling steps**: Number of values for all factors when performing the sampling (default: 5) |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
115 * **Sampling ratios**: Ratios for all factors when performing the sampling |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
116 * **Number of samples**: Number of samples to generate for all factors when performing the sampling (default: 99) |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
117 |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
118 Output |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
119 ------ |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
120 * a TSV file with the sampling values for each parameter |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
121 ]]></help> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
122 <expand macro="creator"/> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
123 <citations> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
124 <citation type="bibtex"> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
125 @unpublished{icfree |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
126 author = {Joan Hérisson, Yorgo El Moubayed}, |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
127 title = {{icfree}}, |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
128 url = {https://github.com/brsynth/icfree-ml/}, |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
129 } |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
130 </citation> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
131 </citations> |
164616ec7f18
planemo upload for repository ['https://github.com/brsynth/icfree-ml', 'https://github.com/pablocarb/doebase'] commit 6c01728900e4ebd1a833a7e7d697f61561d86dc6-dirty
tduigou
parents:
diff
changeset
|
132 </tool> |