Skip to content

Commit

Permalink
test 1-1 uniprot mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Oct 3, 2024
1 parent 3eb1c67 commit 3179e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hub/dataload/sources/chembl/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def parse_data(data):
uniprot_accessions.append(accession)
if uniprot_accessions:
output = {
"_id": item["target_chembl_id"],
"_id": uniprot_accessions[0],
"chembl_target": item["target_chembl_id"],
"xrefs": {
"accession": uniprot_accessions,
"accession": uniprot_accessions[0],
},
}
yield output
Expand Down
2 changes: 1 addition & 1 deletion src/hub/dataload/sources/chembl/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ChemblUploader(uploader.BaseSourceUploader):

keylookup = MyGeneKeyLookup(
input_types=[
["swissprot", "chembl.xrefs.accession"],
("swissprot", "chembl.xrefs.accession"),
],
skip_on_failure=True,
)
Expand Down

0 comments on commit 3179e29

Please sign in to comment.