# HG changeset patch
# User iuc
# Date 1582132096 0
# Node ID e8ca9af08774fd2795cfae2b984051e68a561c26
# Parent 1f75d46e55f52594121e81c9c6578b8c85c9dc50
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/galaxy_sequence_utils/tabular_to_fastq commit d4ced60a941c4c4a2fe95de9c09a10086810b387"
diff -r 1f75d46e55f5 -r e8ca9af08774 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Wed Feb 19 17:08:16 2020 +0000
@@ -0,0 +1,9 @@
+
+ 1.1.5
+
+
+ galaxy_sequence_utils
+
+
+ >
+
diff -r 1f75d46e55f5 -r e8ca9af08774 tabular_to_fastq.py
--- a/tabular_to_fastq.py Fri Nov 01 13:22:35 2019 -0400
+++ b/tabular_to_fastq.py Wed Feb 19 17:08:16 2020 +0000
@@ -14,15 +14,14 @@
max_col = max(identifier_col, sequence_col, quality_col)
num_reads = None
skipped_lines = 0
- out = open(output_filename, 'w')
- for num_reads, line in enumerate(open(input_filename)):
- fields = line.rstrip('\n\r').split('\t')
- if len(fields) > max_col:
- out.write("@%s\n%s\n+\n%s\n" % (fields[identifier_col], fields[sequence_col], fields[quality_col]))
- else:
- skipped_lines += 1
+ with open(output_filename, 'w') as out:
+ for num_reads, line in enumerate(open(input_filename)):
+ fields = line.rstrip('\n\r').split('\t')
+ if len(fields) > max_col:
+ out.write("@%s\n%s\n+\n%s\n" % (fields[identifier_col], fields[sequence_col], fields[quality_col]))
+ else:
+ skipped_lines += 1
- out.close()
if num_reads is None:
print("Input was empty.")
else:
diff -r 1f75d46e55f5 -r e8ca9af08774 tabular_to_fastq.xml
--- a/tabular_to_fastq.xml Fri Nov 01 13:22:35 2019 -0400
+++ b/tabular_to_fastq.xml Wed Feb 19 17:08:16 2020 +0000
@@ -1,4 +1,4 @@
-
+
converter
topic_0622
@@ -6,6 +6,12 @@
operation_3434
+
+ macros.xml
+
+
+ python
+