diff uniprot.py @ 11:60f7e2a6b9c7 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:09 +0000
parents 95fb5712344f
children
line wrap: on
line diff
--- a/uniprot.py	Tue Aug 06 14:49:45 2024 +0000
+++ b/uniprot.py	Thu Jul 31 17:11:09 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")