Mercurial > repos > recetox > aoptk_publication_tracker
comparison macros.xml @ 0:0f01dc62c4f3 draft default tip
planemo upload for repository https://github.com/rdurnik/aoptk commit df42dbae2ad18cec86a3b927123fdc3f1c82287c
| author | recetox |
|---|---|
| date | Wed, 04 Feb 2026 09:43:20 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0f01dc62c4f3 |
|---|---|
| 1 <macros> | |
| 2 <token name="@TOOL_VERSION@">0.1.6</token> | |
| 3 <token name="@VERSION_SUFFIX@">0</token> | |
| 4 | |
| 5 <xml name="requirements"> | |
| 6 <requirement type="package" version="@TOOL_VERSION@">aoptk</requirement> | |
| 7 <credentials name="email_credentials" | |
| 8 label="Your e-mail address" | |
| 9 version="1.0" | |
| 10 description="E-mail is required to follow NCBI/PubMed guidelines."> | |
| 11 <variable name="email" inject_as_env="EMAIL" optional="true"/> | |
| 12 </credentials> | |
| 13 </xml> | |
| 14 | |
| 15 <xml name="inputs"> | |
| 16 <param argument="--query" type="text" value="" label="Your search term" help="Type your search term as you would in PubMed/Europe PMC."> | |
| 17 <sanitizer invalid_char=""> | |
| 18 <valid initial="string.letters,string.digits"> | |
| 19 <add value="_" /> | |
| 20 <add value=" " /> | |
| 21 <add value="'" /> | |
| 22 <add value=""" /> | |
| 23 <add value="(" /> | |
| 24 <add value=")" /> | |
| 25 <add value="*" /> | |
| 26 <add value="[" /> | |
| 27 <add value="]" /> | |
| 28 <add value="-" /> | |
| 29 <add value=":" /> | |
| 30 <add value="/" /> | |
| 31 <!-- Lowercase Greek letters --> | |
| 32 <add value="α" /> | |
| 33 <add value="β" /> | |
| 34 <add value="γ" /> | |
| 35 <add value="δ" /> | |
| 36 <add value="ε" /> | |
| 37 <add value="ζ" /> | |
| 38 <add value="η" /> | |
| 39 <add value="θ" /> | |
| 40 <add value="ι" /> | |
| 41 <add value="κ" /> | |
| 42 <add value="λ" /> | |
| 43 <add value="μ" /> | |
| 44 <add value="ν" /> | |
| 45 <add value="ξ" /> | |
| 46 <add value="ο" /> | |
| 47 <add value="π" /> | |
| 48 <add value="ρ" /> | |
| 49 <add value="σ" /> | |
| 50 <add value="τ" /> | |
| 51 <add value="υ" /> | |
| 52 <add value="φ" /> | |
| 53 <add value="χ" /> | |
| 54 <add value="ψ" /> | |
| 55 <add value="ω" /> | |
| 56 <!-- Uppercase Greek letters --> | |
| 57 <add value="Α" /> | |
| 58 <add value="Β" /> | |
| 59 <add value="Γ" /> | |
| 60 <add value="Δ" /> | |
| 61 <add value="Ε" /> | |
| 62 <add value="Ζ" /> | |
| 63 <add value="Η" /> | |
| 64 <add value="Θ" /> | |
| 65 <add value="Ι" /> | |
| 66 <add value="Κ" /> | |
| 67 <add value="Λ" /> | |
| 68 <add value="Μ" /> | |
| 69 <add value="Ν" /> | |
| 70 <add value="Ξ" /> | |
| 71 <add value="Ο" /> | |
| 72 <add value="Π" /> | |
| 73 <add value="Ρ" /> | |
| 74 <add value="Σ" /> | |
| 75 <add value="Τ" /> | |
| 76 <add value="Υ" /> | |
| 77 <add value="Φ" /> | |
| 78 <add value="Χ" /> | |
| 79 <add value="Ψ" /> | |
| 80 <add value="Ω" /> | |
| 81 </valid> | |
| 82 </sanitizer> | |
| 83 <validator type="regex">[0-9a-zA-Z_ ()*'"[\]\[\]\-:.\[\]α-ωΑ-Ω]+</validator> | |
| 84 </param> | |
| 85 <param name="literature_database" type="select" label="Select which database to search." help="PubMed only accepts searches with up to 10 000 results. No limit for Europe PMC."> | |
| 86 <option value="pubmed" selected="true">PubMed</option> | |
| 87 <option value="europepmc">EuropePMC</option> | |
| 88 </param> | |
| 89 </xml> | |
| 90 | |
| 91 | |
| 92 <token name="@init_scores@"> | |
| 93 from matchms.importing import load_from_msp, scores_from_json | |
| 94 from matchms import Scores | |
| 95 #if $scores.use_scores == "True" | |
| 96 scores = scores_from_json("$scores_in") | |
| 97 join_type = "$scores.join_type" | |
| 98 #else | |
| 99 scores = Scores(references=list(load_from_msp("$references")), queries=list(load_from_msp("$queries")), is_symmetric=False) | |
| 100 join_type = "left" | |
| 101 #end if | |
| 102 </token> | |
| 103 | |
| 104 <token name="@init_logger@"> | |
| 105 from matchms import set_matchms_logger_level | |
| 106 set_matchms_logger_level("WARNING") | |
| 107 </token> | |
| 108 </macros> |