# HG changeset patch # User peterjc # Date 1486657508 18000 # Node ID f414dedc46428eac1f310efa56a48263658392dc # Parent 1cead118dddee40c83e7a7bac729e495337c4dec planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/sample_seqs commit 5fb6ee31f33e8e24c1ae5d56c93ac3e0157dad72-dirty 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":