Mercurial > repos > bgruening > uniprot_rest_interface
diff uniprot.py @ 10:5e57b0a0e8d0 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/uniprot_rest_interface commit daea630529977907a5fcfec24baeb920e41a4dd2
author | bgruening |
---|---|
date | Thu, 31 Jul 2025 17:11:00 +0000 |
parents | f31d8d59ffb6 |
children |
line wrap: on
line diff
--- a/uniprot.py Tue Aug 06 14:49:34 2024 +0000 +++ b/uniprot.py Thu Jul 31 17:11:00 2025 +0000 @@ -292,5 +292,8 @@ sleep(5) if not isinstance(results, str): - results = "\n".join(results) + if args.format in ["fasta", "txt"]: + results = "".join(results) + else: + results = "\n".join(results) args.out.write(f"{results}\n")