changeset 13:f414dedc4642 draft

planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/sample_seqs commit 5fb6ee31f33e8e24c1ae5d56c93ac3e0157dad72-dirty
author peterjc
date Thu, 09 Feb 2017 11:25:08 -0500
parents 1cead118ddde
children 074c7f9d27bf
files tools/sample_seqs/sample_seqs.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/sample_seqs/sample_seqs.py	Wed Feb 01 09:37:46 2017 -0500
+++ b/tools/sample_seqs/sample_seqs.py	Thu Feb 09 11:25:08 2017 -0500
@@ -268,12 +268,11 @@
             raise ValueError(
                 "Records in Fasta files should start with '>' character")
         try:
-            id = line[1:].split(None, 1)[0]
+            line[1:].split(None, 1)[0]
         except IndexError:
             if not no_id_warned:
                 sys.stderr.write("WARNING - Malformed FASTA entry with no identifier\n")
-        no_id_warned = True
-        id = None
+                no_id_warned = True
         lines = [line]
         line = handle.readline()
         while True:
@@ -346,6 +345,7 @@
                 count = writer.write_file(iterator_filter(SffIterator(in_handle)))
     return count
 
+
 if seq_format == "sff":
     count = sff_filter(in_file, out_file, sampler, interleaved)
 elif seq_format == "fasta":