From 2355e7095ce5a809f34dbf1faf919967b17d525e Mon Sep 17 00:00:00 2001 From: iquasere Date: Tue, 26 Sep 2023 14:35:11 +0100 Subject: [PATCH] Fixed getting fasta --- upimapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upimapi.py b/upimapi.py index c5bb912..d22d332 100644 --- a/upimapi.py +++ b/upimapi.py @@ -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