mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
GFF to Bed converter now converts the spaces to underscores to avoid UCSC problem [Brad Chapman] Closes #323
This commit is contained in:
@@ -21,7 +21,10 @@ def __main__():
|
||||
strand = '+'
|
||||
# GFF format: chrom source, name, chromStart, chromEnd, score, strand
|
||||
# Bed format: chrom, chromStart, chromEnd, name, score, strand
|
||||
out.write( "%s\t%s\t%s\t%s\t0\t%s\n" %( elems[0], start, elems[4], elems[2], strand ) )
|
||||
#
|
||||
# Replace any spaces in the name with underscores so UCSC will not complain
|
||||
name = elems[2].replace(" ", "_")
|
||||
out.write( "%s\t%s\t%s\t%s\t0\t%s\n" %( elems[0], start, elems[4], name, strand ) )
|
||||
except:
|
||||
skipped_lines += 1
|
||||
if not first_skipped_line:
|
||||
|
||||
Reference in New Issue
Block a user