mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Merge branch 'ccedmendoza_patch-1' of https://github.com/bernt-matthias/galaxy into ccedmendoza_patch-1
This commit is contained in:
@@ -60,9 +60,8 @@ def gff_filter(gff_file, attribute_name, ids_file, output_file):
|
||||
continue
|
||||
fields = line.split('\t')
|
||||
attributes = parse_gff_attributes(fields[8])
|
||||
if (attribute_name in attributes) and (attributes[attribute_name] in ids_dict):
|
||||
if attribute_name in attributes and attributes[attribute_name] in ids_dict:
|
||||
output.write(line)
|
||||
output.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<tool id="gtf_filter_by_attribute_values_list" name="Filter GTF data by attribute values_list" version="0.2">
|
||||
<description></description>
|
||||
<command>
|
||||
python '$__tool_directory__/gtf_filter_by_attribute_values_list.py' '$input' '$attribute_name' '$ids' '$output'
|
||||
</command>
|
||||
<command><![CDATA[
|
||||
python '$__tool_directory__/gtf_filter_by_attribute_values_list.py' '$input' $attribute_name '$ids' '$output'
|
||||
]]></command>
|
||||
<inputs>
|
||||
<param format="gtf" name="input" type="data" label="Filter"/>
|
||||
<param name="attribute_name" type="select" label="Using attribute name">
|
||||
|
||||
Reference in New Issue
Block a user