changeset 15:0a3943480712

planemo upload for repository https://toolrepo.galaxytrakr.org/view/jpayne/bioproject_to_srr_2/556cac4fb538
author jpayne
date Tue, 21 May 2024 01:05:30 -0400
parents 18e1cb6018fd
children dc2c003078e9
files bio2srr.py test-data/accessions.txt
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bio2srr.py	Mon May 20 02:25:23 2024 -0400
+++ b/bio2srr.py	Tue May 21 01:05:30 2024 -0400
@@ -257,7 +257,8 @@
     log(f"Writing {len(accessions)} unique accessions to accessions.txt")
 
     with open("accessions.txt", "w") as f:
-        f.writelines(accessions)
+        for accession in accessions:
+            f.write(accession + "\n")
 
 
 if __name__ == "__main__":
--- a/test-data/accessions.txt	Mon May 20 02:25:23 2024 -0400
+++ b/test-data/accessions.txt	Tue May 21 01:05:30 2024 -0400
@@ -1,1 +1,5 @@
-SRR13160357SRR13160358SRR13160359SRR13160360SRR13167188
\ No newline at end of file
+SRR13160357
+SRR13160358
+SRR13160359
+SRR13160360
+SRR13167188