Skip to content

Commit

Permalink
Fixed getting fasta
Browse files Browse the repository at this point in the history
  • Loading branch information
iquasere committed Sep 26, 2023
1 parent 6b05433 commit 2355e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upimapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def uniprot_request(ids, columns=None, output_format='tsv'):
Output:
Returns the content of the response from UniProt
"""
fields = f'&fields={string4mapping(columns=columns)}'
fields = f'&fields={string4mapping(columns=columns)}' if output_format == 'tsv' else ''
WEBSITE_API = api_info['servers'][0]['url']
resp = get_url(f"{WEBSITE_API}/uniprotkb/accessions?accessions={','.join(ids)}{fields}&format={output_format}")
return resp.text
Expand Down

0 comments on commit 2355e70

Please sign in to comment.