Mercurial > repos > frogs > frogs_core
annotate normalisation_macros.xml @ 1:31abf44b6599 draft
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 16fd0dad4f7cd5e943ad399119ef6a5519b9f21f
| author | frogs |
|---|---|
| date | Fri, 06 Feb 2026 19:14:28 +0000 |
| parents | cd7675c5b15a |
| children |
| rev | line source |
|---|---|
|
0
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
2 <macros> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
3 <token name="@NORMALISATION_CMD_LINE@"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
4 normalisation.py |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
5 --input-biom '$input_biom' |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
6 --input-fasta '$input_fasta' |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
7 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
8 #if $sampling_method.sampling_by_min == "yes" |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
9 --sampling-by-min |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
10 #else |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
11 --num-reads $sampling_method.num_reads |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
12 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
13 #if $sampling_method.delete_samples == "true" |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
14 --delete-samples |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
15 #end if |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
16 #end if |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
17 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
18 --output-biom '$output_biom' |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
19 --output-fasta '$output_fasta' |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
20 --html '$html' |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
21 </token> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
22 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
23 <xml name="normalisation_inputs"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
24 <!-- Files --> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
25 <param argument="--input-fasta" type="data" format="fasta" label="Sequence file (.fasta)" help="The sequence file to normalise." /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
26 <param argument="--input-biom" type="data" format="biom1" label="Abundance file (.biom)" help="The abundance file to normalise." /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
27 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
28 <!-- Parameters --> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
29 <conditional name="sampling_method"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
30 <param name="sampling_by_min" type="select" label="Sampling method" help="Sample the total number of sequences per sample based on the number of sequences in the smallest sample (--sampling-by-min), or by defining a number of sequences manually (--num-reads)." display="radio"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
31 <option value="yes" selected="true">automatically, based on the number of sequences in the smallest sample </option> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
32 <option value="no">manually, by setting the number of sequences</option> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
33 </param> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
34 <when value="yes"/> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
35 <when value="no"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
36 <param name="num_reads" type="integer" min="1" value="" label="Number of reads" help="The final number of reads per sample." /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
37 <param argument="--delete-samples" type="select" label="Removal samples that have an initial number of reads below the number of reads to sample." display="radio"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
38 <option value="false">No, subsampling threshold need to at most equal to the smallest sample</option> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
39 <option value="true">Yes, subsampling threshold may be greater than the smallest sample</option> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
40 </param> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
41 </when> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
42 </conditional> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
43 </xml> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
44 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
45 <!-- Test --> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
46 <xml name="normalisation_test_input"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
47 <param name="input_fasta" value="references/08-affiliation_postprocessed.fasta" /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
48 <param name="input_biom" value="references/08-affiliation_postprocessed.biom" /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
49 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
50 <conditional name="sampling_method"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
51 <param name="sampling_by_min" value="no" /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
52 <param name="num_reads" value="100" /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
53 <param name="delete_samples" value="true" /> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
54 </conditional> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
55 </xml> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
56 |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
57 <xml name="normalisation_test_output"> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
58 <!-- Because of random sampling results may slightly vary --> |
|
1
31abf44b6599
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 16fd0dad4f7cd5e943ad399119ef6a5519b9f21f
frogs
parents:
0
diff
changeset
|
59 <output name="output_fasta" file="references/09-normalisation.fasta" compare="diff" lines_diff="8" /> |
|
0
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
60 <!-- Because of random sampling results may slightly vary --> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
61 <output name="html" file="references/09-normalisation.html" compare="sim_size" delta="0" /> |
|
1
31abf44b6599
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 16fd0dad4f7cd5e943ad399119ef6a5519b9f21f
frogs
parents:
0
diff
changeset
|
62 <output name="html" file="references/09-normalisation.html" compare="diff" lines_diff="8" /> |
|
0
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
63 </xml> |
|
cd7675c5b15a
planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
frogs
parents:
diff
changeset
|
64 </macros> |
