Mercurial > repos > iuc > onto_tk_get_parent_terms_by_relationship_type
diff get_parent_terms_by_relationship_type.xml @ 0:8e81546cdee9 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/onto-toolkit commit 9422f839ae354d4c26b02d4494abdeaad518d0e6
author | iuc |
---|---|
date | Fri, 10 Nov 2017 11:30:46 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_parent_terms_by_relationship_type.xml Fri Nov 10 11:30:46 2017 -0500 @@ -0,0 +1,51 @@ +<tool id="onto_tk_get_parent_terms_by_relationship_type" name="Get the terms" version="@VERSION@.0"> + <description>filtered by a relationship type</description> + <macros> + <import>onto_macros.xml</import> + </macros> + <expand macro="requirements" /> + <command detect_errors="aggressive"> + perl '$__tool_directory__/get_parent_terms_by_relationship_type.pl' + '$input' + '$term_id' + '$rel_id' > '$output' + </command> + <inputs> + <expand macro="input_ontology" /> + <expand macro="term_id" /> + <expand macro="rel_id" /> + </inputs> + <outputs> + <data format="tabular" name="output" label="Parent terms of ${on_string} by $rel_id"/> + </outputs> + <tests> + <test> + <param name="input" value="pre_cco_core.obo" ftype="obo"/> + <param name="term_id" value="CCO:P0000019"/> + <param name="rel_id" value="part_of"/> + <output name="output" file="ancestors_rel_filtered.tab" ftype="tabular"/> + </test> + </tests> + <help> + +.. class:: infomark + +Collects the terms (list of IDs) from a given term (existing ID) through a given relationship type in the given OBO ontology. +**Example** + +id: A +name: A +A part_of B +A part_of D +A participates_in F + + +If you ask for the parent terms of **A** along part_of you will get:: + + B + D + + </help> + <expand macro="citations" /> +</tool> +