# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User jeremy goecks <jeremy.goecks@emory.edu> # Date 1276093621 14400 # Node ID a6b59463d4c7426a60e976064fd6f98acaac9cd4 # Parent 837aabec314e9ddbb5827972d99c395b1dff33bb Add colon as a delimiter for 'Convert delimiters to TAB' tool. --- a/tools/filters/convert_characters.py +++ b/tools/filters/convert_characters.py @@ -24,7 +24,7 @@ def main(): except: stop_err("Output file cannot be opened for writing.") - char_dict = {'T':'\t','s':'\s','Dt':'\.','C':',','D':'-','U':'_','P':'\|'} + char_dict = {'T':'\t','s':'\s','Dt':'\.','C':',','D':'-','U':'_','P':'\|','Co':':'} from_ch = char_dict[from_char] + '+' #making an RE to match 1 or more occurences. skipped = 0 --- a/tools/filters/convert_characters.xml +++ b/tools/filters/convert_characters.xml @@ -11,6 +11,7 @@ <option value="D">Dashes</option><option value="U">Underscores</option><option value="P">Pipes</option> + <option value="Co">Colons</option></param><param format="txt" name="input" type="data" label="in Query"/></inputs> @@ -22,11 +23,11 @@ <param name="convert_from" value="s"/><param name="input" value="1.bed"/><output name="out_file1" file="eq-convert.dat"/> - </test> - <test> - <param name="convert_from" value="s"/> - <param name="input" value="a.txt"/> - <output name="out_file1" file="a.tab"/> + </test> + <test> + <param name="convert_from" value="s"/> + <param name="input" value="a.txt"/> + <output name="out_file1" file="a.tab"/></test></tests><help>