Mercurial > repos > iuc > extract_genomic_dna
diff extract_genomic_dna.py @ 3:b71579ad576c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/extract_genomic_dna commit bd4fbe120288bf8452e479cbd82aa1bbf5c4bd31
author | iuc |
---|---|
date | Mon, 19 Dec 2016 11:57:37 -0500 |
parents | 702970e4a134 |
children | c8467246b57e |
line wrap: on
line diff
--- a/extract_genomic_dna.py Wed Mar 09 05:07:21 2016 -0500 +++ b/extract_genomic_dna.py Mon Dec 19 11:57:37 2016 -0500 @@ -2,11 +2,11 @@ import argparse import os -import extract_genomic_dna_utils as egdu import bx.seq.nib import bx.seq.twobit -from bx.intervals.io import Header, Comment +from bx.intervals.io import Comment, Header +import extract_genomic_dna_utils as egdu parser = argparse.ArgumentParser() parser.add_argument('--input_format', dest='input_format', help="Input dataset format") @@ -110,7 +110,7 @@ nibs[chrom] = nib = bx.seq.nib.NibFile(open("%s/%s.nib" % (seq_path, chrom))) try: sequence = nib.get(start, end - start) - except Exception, e: + except Exception as e: warning = "Unable to fetch the sequence from '%d' to '%d' for build '%s'. " % (start, end - start, args.genome) warnings.append(warning) if not invalid_lines: