Skip to content

Commit

Permalink
added trembl to keylookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 committed Oct 3, 2024
1 parent 36888a7 commit a3ec8ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hub/dataload/sources/chembl/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class ChemblUploader(uploader.BaseSourceUploader):
keylookup = MyGeneKeyLookup(
input_types=[
("swissprot", "chembl.xrefs.accession"),
("trembl", "chembl.xrefs.accession"),
],
skip_on_failure=True,
)
Expand All @@ -54,7 +55,7 @@ def load_data(self, data_folder):
os.path.join(data_folder, self.TARGET_FILENAME_PATTERN)
)
# for doc in load_data(target_filepaths):
# yield doc
# yield doc
return self.keylookup(load_data)(target_filepaths)

@classmethod
Expand Down

0 comments on commit a3ec8ac

Please sign in to comment.