Skip to content

Commit

Permalink
Merge pull request #25 from AlmaasLab/master
Browse files Browse the repository at this point in the history
UniProt API Update
  • Loading branch information
Paulocracy authored Jul 6, 2023
2 parents cb82839 + 09251b6 commit 4b52e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopacmen/submodules/get_protein_mass_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_protein_mass_mapping(model: cobra.Model, project_folder: str, project_na
# With 'OR', all given IDs are searched, and subsequently in this script,
# the right associated masses are being picked.
query = " OR ".join(batch)
uniprot_query_url = f"https://www.uniprot.org/uniprot/?query={query}&format=tab&columns=id,mass"
uniprot_query_url = f"https://rest.uniprot.org/uniprotkb/search?query=accession:{query}&format=tsv&fields=accession,mass"
print(f"UniProt batch search for: {query}")

# Call UniProt's API :-)
Expand Down

0 comments on commit 4b52e71

Please sign in to comment.