[hg] galaxy 3129: Fix MAF to BED tool. This tool should be rewri...
details: http://www.bx.psu.edu/hg/galaxy/rev/9d4945bbdcf5 changeset: 3129:9d4945bbdcf5 user: Dan Blankenberg <dan@bx.psu.edu> date: Mon Nov 30 15:33:45 2009 -0500 description: Fix MAF to BED tool. This tool should be rewritten to not use a code file, but instead use one of the standard ways to create additional outputs, similar to how maf_to_interval functions. diffstat: tools/maf/maf_to_bed.py | 3 +-- tools/maf/maf_to_bed.xml | 4 ++-- tools/maf/maf_to_bed_code.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diffs (36 lines): diff -r 92d6a9796b24 -r 9d4945bbdcf5 tools/maf/maf_to_bed.py --- a/tools/maf/maf_to_bed.py Mon Nov 30 14:55:30 2009 -0500 +++ b/tools/maf/maf_to_bed.py Mon Nov 30 15:33:45 2009 -0500 @@ -15,8 +15,7 @@ input_filename = sys.argv[1] output_filename = sys.argv[2] #where to store files that become additional output - database_tmp_dir = './database/tmp' #os.path.join(os.path.split(os.path.split(os.path.realpath(output_filename))[0])[0],'tmp') #database/tmp - + database_tmp_dir = sys.argv[5] species = sys.argv[3].split(',') partial = sys.argv[4] diff -r 92d6a9796b24 -r 9d4945bbdcf5 tools/maf/maf_to_bed.xml --- a/tools/maf/maf_to_bed.xml Mon Nov 30 14:55:30 2009 -0500 +++ b/tools/maf/maf_to_bed.xml Mon Nov 30 15:33:45 2009 -0500 @@ -1,6 +1,6 @@ -<tool id="MAF_To_BED1" name="Maf to BED"> +<tool id="MAF_To_BED1" name="Maf to BED" force_history_refresh="True"> <description>Converts a MAF formated file to the BED format</description> - <command interpreter="python">maf_to_bed.py $input1 $out_file1 $species $complete_blocks</command> + <command interpreter="python">maf_to_bed.py $input1 $out_file1 $species $complete_blocks $__new_file_path__</command> <inputs> <param format="maf" name="input1" type="data" label="MAF file to convert"/> <param name="species" type="select" label="Select species" display="checkboxes" multiple="true" help="a separate history item will be created for each checked species"> diff -r 92d6a9796b24 -r 9d4945bbdcf5 tools/maf/maf_to_bed_code.py --- a/tools/maf/maf_to_bed_code.py Mon Nov 30 14:55:30 2009 -0500 +++ b/tools/maf/maf_to_bed_code.py Mon Nov 30 15:33:45 2009 -0500 @@ -46,6 +46,7 @@ newdata.state = newdata.states.ERROR newdata.dbkey = dbkey newdata.init_meta() + newdata.set_meta() newdata.set_peek() app.model.context.flush() output_data_list.append(newdata)
participants (1)
-
Greg Von Kuster