mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Merge pull request #7916 from mvdbeek/fix_gff2bed_things
[19.05] Remove GFF headers during conversion and test fix
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<edam_operations>
|
||||
<edam_operation>operation_3434</edam_operation>
|
||||
</edam_operations>
|
||||
<command interpreter="python">bed_to_gff_converter.py $input $out_file1</command>
|
||||
<command>python '$__tool_directory__/bed_to_gff_converter.py' '$input' '$out_file1'</command>
|
||||
<inputs>
|
||||
<param format="bed" name="input" type="data" label="Convert this dataset"/>
|
||||
</inputs>
|
||||
@@ -13,7 +13,12 @@
|
||||
<tests>
|
||||
<test>
|
||||
<param name="input" value="9.bed"/>
|
||||
<output name="out_file1" file="bed2gff_out.gff"/>
|
||||
<output name="out_file1">
|
||||
<assert_contents>
|
||||
<has_line line="chr28	bed2gff	mRNA	346188	388197	0	+	.	mRNA BC114771;"/>
|
||||
<has_line line="chr28	bed2gff	exon	388086	388197	0	+	.	exon BC114771;"/>
|
||||
</assert_contents>
|
||||
</output>
|
||||
</test>
|
||||
</tests>
|
||||
<help>
|
||||
|
||||
@@ -13,8 +13,6 @@ def __main__():
|
||||
skipped_lines = 0
|
||||
first_skipped_line = 0
|
||||
out = open(output_name, 'w')
|
||||
out.write("##gff-version 2\n")
|
||||
out.write("##bed_to_gff_converter.py\n\n")
|
||||
i = 0
|
||||
for i, line in enumerate(open(input_name)):
|
||||
complete_bed = False
|
||||
|
||||
Reference in New Issue
Block a user