diff convert_extract_sequence_file.py @ 1:d7747e6f329f draft default tip

planemo upload commit 0a1bbb0870f6b776175151d4bc818c5546731ca8-dirty
author bebatut
date Thu, 28 Apr 2016 08:34:50 -0400
parents b4cf778be846
children
line wrap: on
line diff
--- a/convert_extract_sequence_file.py	Tue Apr 26 08:17:42 2016 -0400
+++ b/convert_extract_sequence_file.py	Thu Apr 28 08:34:50 2016 -0400
@@ -42,7 +42,7 @@
         return None
     split_line = id_line[1:].split(' ')
     seq_id = split_line[0]
-    description = ' '.join(split_line[1:])
+    description = id_line[1:]
     new_line = get_new_line(input_file, generate_error = False)
     seq = ''
     while new_line != None:
@@ -265,7 +265,7 @@
         if args.custom_extraction_type == 'True':
             to_extract = args.to_extract[1:-1].split(',')
             with open(args.output_information, 'w') as output_information_file:
-                output_information_file.write('\t'.join(to_extract) + '\n')
+                #output_information_file.write('\t'.join(to_extract) + '\n')
                 for record in self.conserved_records:
                     extracted_info = record.extract_information(to_extract)
                     string_info = [str(info) for info in extracted_info]