annotate __efetch_build_options.py @ 8:b151cd22921f draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit dae34e5e182b4cceb808d7353080f14aa9a78ca9"
author iuc
date Wed, 23 Sep 2020 09:42:47 +0000
parents 2ff5369b4b51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
1 #!/usr/bin/env python
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
2 # Daniel Blankenberg
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
3 # Creates the options for tool interface
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
4 from __future__ import print_function
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
5
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
6 import re
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
7
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
8 # http://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
9 db_list = '''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
10 <DbName>annotinfo</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
11 <DbName>assembly</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
12 <DbName>bioproject</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
13 <DbName>biosample</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
14 <DbName>biosystems</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
15 <DbName>blastdbinfo</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
16 <DbName>books</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
17 <DbName>cdd</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
18 <DbName>clinvar</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
19 <DbName>clone</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
20 <DbName>dbvar</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
21 <DbName>gap</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
22 <DbName>gapplus</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
23 <DbName>gds</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
24 <DbName>gencoll</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
25 <DbName>gene</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
26 <DbName>genome</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
27 <DbName>geoprofiles</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
28 <DbName>grasp</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
29 <DbName>gtr</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
30 <DbName>homologene</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
31 <DbName>medgen</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
32 <DbName>mesh</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
33 <DbName>ncbisearch</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
34 <DbName>nlmcatalog</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
35 <DbName>nuccore</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
36 <DbName>nucest</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
37 <DbName>nucgss</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
38 <DbName>nucleotide</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
39 <DbName>omim</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
40 <DbName>orgtrack</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
41 <DbName>pcassay</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
42 <DbName>pccompound</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
43 <DbName>pcsubstance</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
44 <DbName>pmc</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
45 <DbName>popset</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
46 <DbName>probe</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
47 <DbName>protein</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
48 <DbName>proteinclusters</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
49 <DbName>pubmed</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
50 <DbName>pubmedhealth</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
51 <DbName>seqannot</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
52 <DbName>snp</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
53 <DbName>sra</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
54 <DbName>structure</DbName>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
55 <DbName>taxonomy</DbName>
8
b151cd22921f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit dae34e5e182b4cceb808d7353080f14aa9a78ca9"
iuc
parents: 6
diff changeset
56 <DbName>unigene</DbName>'''.replace("<DbName>", "").replace("</DbName>", "").split("\n")
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
57
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
58
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
59 help = ''' (all)
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
60 docsum xml Document Summary
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
61 docsum json Document Summary
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
62 full text Full Document
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
63 uilist xml Unique Identifier List
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
64 uilist text Unique Identifier List
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
65 full xml Full Document
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
66
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
67 bioproject
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
68 native BioProject Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
69 native xml RecordSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
70
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
71 biosample
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
72 native BioSample Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
73 native xml BioSampleSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
74
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
75 biosystems
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
76 native xml Sys-set
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
77
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
78 gds
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
79 native xml RecordSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
80 summary text Summary
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
81
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
82 gene
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
83 gene_table xml Gene Table
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
84 native text Gene Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
85 native asn.1 Entrezgene
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
86 native xml Entrezgene-Set
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
87 tabular tabular Tabular Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
88
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
89 homologene
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
90 alignmentscores text Alignment Scores
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
91 fasta fasta FASTA
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
92 homologene text Homologene Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
93 native text Homologene List
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
94 native asn.1 HG-Entry
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
95 native xml Entrez-Homologene-Set
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
96
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
97 mesh
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
98 full text Full Record
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
99 native text MeSH Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
100 native xml RecordSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
101
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
102 nlmcatalog
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
103 native text Full Record
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
104 native xml NLMCatalogRecordSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
105
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
106 pmc
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
107 medline text MEDLINE
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
108 native xml pmc-articleset
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
109
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
110 pubmed
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
111 abstract xml Abstract
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
112 medline text MEDLINE
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
113 native asn.1 Pubmed-entry
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
114 native xml PubmedArticleSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
115
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
116 (sequences)
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
117 acc text Accession Number
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
118 est xml EST Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
119 fasta fasta FASTA
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
120 fasta xml TinySeq
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
121 fasta_cds_aa fasta CDS Products
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
122 fasta_cds_na fasta Coding Regions
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
123 ft text Feature Table
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
124 gb text GenBank Flatfile
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
125 gb xml GBSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
126 gbc xml INSDSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
127 gbwithparts text GenBank with Contig Sequences
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
128 gene_fasta fasta FASTA of Gene
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
129 gp text GenPept Flatfile
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
130 gp xml GBSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
131 gpc xml INSDSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
132 gss text GSS Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
133 ipg text Identical Protein Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
134 ipg xml IPGReportSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
135 native text Seq-entry
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
136 native xml Bioseq-set
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
137 seqid asn.1 Seq-id
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
138
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
139 snp
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
140 chr text Chromosome Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
141 docset text Summary
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
142 fasta fasta FASTA
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
143 flt text Flat File
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
144 native asn.1 Rs
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
145 native xml ExchangeSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
146 rsr tabular RS Cluster Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
147 ssexemplar text SS Exemplar List
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
148
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
149 sra
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
150 native xml EXPERIMENT_PACKAGE_SET
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
151 runinfo xml SraRunInfo
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
152
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
153 structure
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
154 mmdb asn.1 Ncbi-mime-asn1 strucseq
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
155 native text MMDB Report
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
156 native xml RecordSet
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
157
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
158 taxonomy
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
159 native text Taxonomy List
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
160 native xml TaxaSet'''.split("\n")
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
161
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
162
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
163 db = {}
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
164 for db_name in db_list:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
165 db[db_name] = []
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
166
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
167 section = None
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
168 for line in help:
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
169 line = re.split(r'\s{2,}', line.strip())
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
170 # Ignore empties
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
171 if len(line) == 0:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
172 continue
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
173 # Section headers have one item
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
174 elif len(line) == 1:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
175 section = line[0]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
176 db[section] = []
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
177 # Format lines have 2+
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
178 elif len(line) == 2:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
179 parent_format = line[0]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
180 description = line[1]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
181
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
182 if parent_format not in db[section]:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
183 db[section].append((parent_format, None, description))
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
184 elif len(line) == 3:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
185 parent_format = line[0]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
186 format_modifier = line[1]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
187 description = line[2]
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
188
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
189 if parent_format not in db[section]:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
190 db[section].append((parent_format, format_modifier, description))
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
191
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
192
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
193 all_formats = db['(all)']
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
194 del db['(all)']
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
195 sequences_formats = db['(sequences)']
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
196 del db['(sequences)']
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
197 del db['']
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
198
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
199 for key in db:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
200 db[key] += all_formats
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
201
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
202 for key in ('nuccore', 'nucest', 'nucgss', 'nucleotide'):
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
203 db[key] += sequences_formats
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
204
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
205 MACRO_TPL = '''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
206
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
207 '''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
208
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
209 WHEN_TPL = ''' <when value="{format}">
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
210 <param name="output_format" type="select" label="Output Format">
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
211 {format_options}
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
212 </param>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
213 </when>'''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
214
5
e269b3b5185b planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 15bcc5104c577b4b9c761f2854fc686c07ffa9db
iuc
parents: 3
diff changeset
215 FORMAT_OPTION_TPL = '''<option value="{name_type}">{name_type_human}</option>'''
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
216
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
217 format_names = {}
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
218
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
219 print(''' <xml name="db">
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
220 <conditional name="db">
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
221 <expand macro="dbselect" />''')
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
222 for key in sorted(db):
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
223 format_options = []
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
224
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
225 for (parent_format, format_modifier, description) in sorted(db[key]):
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
226 name_human = description
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
227 if format_modifier:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
228 name_human += ' (%s)' % format_modifier
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
229 format_string = '%s-%s' % (parent_format, format_modifier)
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
230
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
231 format_options.append(FORMAT_OPTION_TPL.format(
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
232 name_type=format_string,
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
233 name_type_human=name_human,
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
234 ))
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
235
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
236 format_names[format_string] = format_modifier
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
237
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
238 print(WHEN_TPL.format(
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
239 format=key,
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
240 format_options='\n '.join(format_options)
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
241 ))
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
242
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
243 print(''' </conditional>
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
244 </xml>''')
3
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
245
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
246 CHANGE_FORMAT_TPL = '''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
247 <xml name="efetch_formats">
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
248 <change_format>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
249 {formats}
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
250 </change_format>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
251 </xml>
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
252 '''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
253
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
254 CHANGE_FORMAT_WHEN_TPL = '''<when input="output_format" value="{key}" format="{value}"/>'''
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
255 # Format options
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
256
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
257
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
258 whens = []
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
259 for (k, v) in format_names.items():
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
260 if v is None:
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
261 v = 'text'
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
262 elif v == 'asn.1':
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
263 v = 'asn1'
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
264
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
265 whens.append(CHANGE_FORMAT_WHEN_TPL.format(
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
266 key=k, value=v
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
267 ))
aa88712a7536 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 041f11d6eb83568deda382857b121274dffe9825
iuc
parents:
diff changeset
268
6
2ff5369b4b51 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
iuc
parents: 5
diff changeset
269 print(CHANGE_FORMAT_TPL.format(formats='\n '.join(whens)))