diff extract_bcs.py @ 50:0b9aab6aaebf draft

Uploaded 16cfcafe8b42055c5dd64e62c42b82b455027a40
author rnateam
date Tue, 26 Jan 2016 04:38:27 -0500
parents bb59215dfd8f
children
line wrap: on
line diff
--- a/extract_bcs.py	Sat Dec 19 06:16:22 2015 -0500
+++ b/extract_bcs.py	Tue Jan 26 04:38:27 2016 -0500
@@ -1,5 +1,15 @@
 #!/usr/bin/env python
 
+import argparse
+import logging
+import re
+from sys import stdout
+from Bio.SeqIO.QualityIO import FastqGeneralIterator
+# avoid ugly python IOError when stdout output is piped into another program
+# and then truncated (such as piping to head)
+from signal import signal, SIGPIPE, SIG_DFL
+signal(SIGPIPE, SIG_DFL)
+
 tool_description = """
 Exract barcodes from a FASTQ file according to a user-specified pattern.
 
@@ -19,17 +29,6 @@
 Status: Testing
 """
 
-import argparse
-import logging
-import re
-from sys import stdout
-from Bio.SeqIO.QualityIO import FastqGeneralIterator
-
-# avoid ugly python IOError when stdout output is piped into another program
-# and then truncated (such as piping to head)
-from signal import signal, SIGPIPE, SIG_DFL
-signal(SIGPIPE, SIG_DFL)
-
 # parse command line arguments
 parser = argparse.ArgumentParser(description=tool_description,
                                  epilog=epilog,