Merge pull request #7916 from mvdbeek/fix_gff2bed_things

[19.05] Remove GFF headers during conversion and test fix
This commit is contained in:
John Chilton
2019-05-08 15:10:05 -04:00
committed by GitHub
2 changed files with 7 additions and 4 deletions
+7 -2
View File
@@ -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&#009;bed2gff&#009;mRNA&#009;346188&#009;388197&#009;0&#009;+&#009;.&#009;mRNA BC114771;"/>
<has_line line="chr28&#009;bed2gff&#009;exon&#009;388086&#009;388197&#009;0&#009;+&#009;.&#009;exon BC114771;"/>
</assert_contents>
</output>
</test>
</tests>
<help>
-2
View File
@@ -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