|
42 | 42 | files_header = { |
43 | 43 | 'interaction': None, # Already present |
44 | 44 | 'protein_infor': ['UniProt', 'gene', 'GO', 'link'], |
45 | | - 'metabolite_info': ['kegg', 'hmdb', 'name', 'link', 'formula'], |
| 45 | + 'metabolites_infor': ['kegg', 'hmdb', 'name', 'link', 'formula'], |
46 | 46 | } |
47 | 47 |
|
48 | 48 | config = ResourceConfig( |
|
64 | 64 |
|
65 | 65 | download = { |
66 | 66 | f: Download( |
67 | | - url=BASE_URL % ('metabolites_infor' if f == 'metabolite_info' else f), |
| 67 | + url=BASE_URL % f, |
68 | 68 | filename=f'{f}.txt', |
69 | 69 | subfolder='PMIDB', |
70 | 70 | large=True, |
@@ -184,7 +184,7 @@ def parser(opener, header = None, sep = '\t', **_kwargs): |
184 | 184 | ), |
185 | 185 | ) |
186 | 186 |
|
187 | | -schema_metabolite_info = EntityBuilder( |
| 187 | +schema_metabolites_infor = EntityBuilder( |
188 | 188 | entity_type=EntityTypeCv.SMALL_MOLECULE, |
189 | 189 | identifiers=IdentifiersBuilder( |
190 | 190 | CV(term=IdentifierNamespaceCv.KEGG, value=f('kegg')), |
@@ -220,7 +220,7 @@ def parser(opener, header = None, sep = '\t', **_kwargs): |
220 | 220 | # C00002 P00350 TRUE NA NA PMID:29307493 LiP-SMap Escherichia coli DDA and DIA FC>2,Q<0.01 |
221 | 221 | # XXX: We discarded those with interaction = FALSE, also not using columns: mean, MS Quality control method and Candidate selection cutoff |
222 | 222 |
|
223 | | -# metabolite_info.txt |
| 223 | +# metabolites_infor.txt |
224 | 224 | # kegg hmdb name link formula |
225 | 225 | # C00002 HMDB00538 Adenosine 5'-triphosphate https://www.genome.jp/dbget-bin/www_bget?C00002 NC1=NC=NC2=C1N=CN2[C@@H]1O[C@H](COP(O)(=O)OP(O)(=O)OP(O)(O)=O)[C@@H](O)[C@H]1O |
226 | 226 | # XXX: File has no header, added custom one, column link is skipped |
|
0 commit comments