Skip to content

Commit 0a10315

Browse files
committed
Simplified fix from 9954fb7
1 parent 9aecf3f commit 0a10315

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎pypath/inputs_v2/pmidb.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
files_header = {
4343
'interaction': None, # Already present
4444
'protein_infor': ['UniProt', 'gene', 'GO', 'link'],
45-
'metabolite_info': ['kegg', 'hmdb', 'name', 'link', 'formula'],
45+
'metabolites_infor': ['kegg', 'hmdb', 'name', 'link', 'formula'],
4646
}
4747

4848
config = ResourceConfig(
@@ -64,7 +64,7 @@
6464

6565
download = {
6666
f: Download(
67-
url=BASE_URL % ('metabolites_infor' if f == 'metabolite_info' else f),
67+
url=BASE_URL % f,
6868
filename=f'{f}.txt',
6969
subfolder='PMIDB',
7070
large=True,
@@ -184,7 +184,7 @@ def parser(opener, header = None, sep = '\t', **_kwargs):
184184
),
185185
)
186186

187-
schema_metabolite_info = EntityBuilder(
187+
schema_metabolites_infor = EntityBuilder(
188188
entity_type=EntityTypeCv.SMALL_MOLECULE,
189189
identifiers=IdentifiersBuilder(
190190
CV(term=IdentifierNamespaceCv.KEGG, value=f('kegg')),
@@ -220,7 +220,7 @@ def parser(opener, header = None, sep = '\t', **_kwargs):
220220
# C00002 P00350 TRUE NA NA PMID:29307493 LiP-SMap Escherichia coli DDA and DIA FC>2,Q<0.01
221221
# XXX: We discarded those with interaction = FALSE, also not using columns: mean, MS Quality control method and Candidate selection cutoff
222222

223-
# metabolite_info.txt
223+
# metabolites_infor.txt
224224
# kegg hmdb name link formula
225225
# 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
226226
# XXX: File has no header, added custom one, column link is skipped

0 commit comments

Comments
 (0)