Mercurial > repos > iuc > extract_genomic_dna
comparison extract_genomic_dna_utils.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 | 3088e7e70888 |
comparison
equal
deleted
inserted
replaced
2:702970e4a134 | 3:b71579ad576c |
---|---|
2 import os | 2 import os |
3 import subprocess | 3 import subprocess |
4 import sys | 4 import sys |
5 import tempfile | 5 import tempfile |
6 | 6 |
7 from bx.intervals.io import Comment, Header, GenomicInterval | 7 from bx.intervals.io import Comment, GenomicInterval, Header |
8 from bx.intervals.io import GenomicIntervalReader, NiceReaderWrapper, ParseError | 8 from bx.intervals.io import GenomicIntervalReader, NiceReaderWrapper, ParseError |
9 | 9 |
10 # Default chrom, start, end, strand cols for a bed file | 10 # Default chrom, start, end, strand cols for a bed file |
11 BED_DEFAULT_COLS = 0, 1, 2, 5 | 11 BED_DEFAULT_COLS = 0, 1, 2, 5 |
12 | 12 |
286 pass | 286 pass |
287 tmp_stderr.close() | 287 tmp_stderr.close() |
288 os.remove(tmp_name) | 288 os.remove(tmp_name) |
289 stop_err(stderr) | 289 stop_err(stderr) |
290 return seq_path | 290 return seq_path |
291 except Exception, e: | 291 except Exception as e: |
292 stop_err('Error running faToTwoBit. ' + str(e)) | 292 stop_err('Error running faToTwoBit. ' + str(e)) |
293 | 293 |
294 | 294 |
295 def get_bedtools_getfasta_default_header(chrom, start, end, strand, includes_strand_col): | 295 def get_bedtools_getfasta_default_header(chrom, start, end, strand, includes_strand_col): |
296 """ | 296 """ |