Mercurial > repos > rnateam > bctools
diff convert_bc_to_binary_RY.py @ 50:0b9aab6aaebf draft
Uploaded 16cfcafe8b42055c5dd64e62c42b82b455027a40
author | rnateam |
---|---|
date | Tue, 26 Jan 2016 04:38:27 -0500 |
parents | 17ef0e0dae68 |
children |
line wrap: on
line diff
--- a/convert_bc_to_binary_RY.py Sat Dec 19 06:16:22 2015 -0500 +++ b/convert_bc_to_binary_RY.py Tue Jan 26 04:38:27 2016 -0500 @@ -1,5 +1,13 @@ #!/usr/bin/env python +import argparse +import logging +from string import maketrans +from sys import stdout +from Bio import SeqIO +from Bio.Seq import Seq +from Bio.Alphabet import IUPAC + tool_description = """ Convert standard nucleotides to IUPAC nucleotide codes used for binary barcodes. @@ -19,19 +27,6 @@ Status: Testing """ -import argparse -import logging -from string import maketrans -from sys import stdout -from Bio import SeqIO -from Bio.Seq import Seq -from Bio.Alphabet import IUPAC - -# # 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,