Repository 'sample_seqs'
hg clone https://testtoolshed.g2.bx.psu.edu/repos/peterjc/sample_seqs

Changeset 13:f414dedc4642 (2017-02-09)
Previous changeset 12:1cead118ddde (2017-02-01) Next changeset 14:074c7f9d27bf (2017-04-21)
Commit message:
planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/sample_seqs commit 5fb6ee31f33e8e24c1ae5d56c93ac3e0157dad72-dirty
modified:
tools/sample_seqs/sample_seqs.py
b
diff -r 1cead118ddde -r f414dedc4642 tools/sample_seqs/sample_seqs.py
--- 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":