view ct_get_empirical_dist.xml @ 3:ce70358b0fe3 draft

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 85476ee7f3b1d96e9d0afb972af1aaa67d990ce4"
author ebi-gxa
date Mon, 27 Apr 2020 11:12:46 -0400
parents 25bb7e49e10d
children 5bf2827cd314
line wrap: on
line source

<tool id="ct_get_empirical_dist" name="Cell types - get empirical distribution" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@">
    <description>Get empirical distribution for tool performance table</description>
    <macros>
        <import>ct_macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[

        ln -s $'${ontology_graph}' cl-basic.obo;

        get_empirical_dist.R --input-ref-file "${input_ref_file}" --label-column-ref "${label_col_ref}" --lab-cl-mapping "${lab_cl_mapping}" --num-iterations "${num_iter}" --num-cores \${GALAXY_SLOTS:-1} --ontology-graph cl-basic.obo --output-path "${output_list_path}" 

        #if $parallel
        --parallel "${parallel}"
        #end if
        #if $exclusions
        --exclusions "${exclusions}"
        #end if
        #if $exclusions
        --semantic-sim-metric "${sem_sim_metric}"
        #end if
        ]]></command>
    <inputs>
        <param type="data" name="input_ref_file" label="Input reference file" format="txt" help="Text file with reference cell labels" />
        <param type="data" name="exclusions" format="yml" label="Exclusions file" help="YML file with excluded/unlabelled terms" />
        <param type="text" name="label_col_ref" label="Reference label column" value="cell_type" help="Label column in reference file" />
        <param type="data" name="lab_cl_mapping" label="Label - CL term mapping" format="rdata" help="Mapping between cell labels and ontology terms" />
        <param type="boolean" name="parallel" label="Parallel execution" checked="false" help="Should the table values be computed in parallel?" />
        <param type="integer" name="num_iter" value='5' label="Number of iterations" help="Number of simulations to generate empirical CDF" />
        <param type="data" name="ontology_graph" label="Ontology graph" format="obo" help="Ontology graph to run semantis similarity computations" />
        <param type="text" name="sem_sim_metric" label="Semantic similarity metric" value="edge_resnik" help="Type of semantic similarity metric used" />
    </inputs>
    <outputs>
        <data name="output_list_path" format="rdata" />
    </outputs>
    <tests>
        <test>
            <param name="input_ref_file" value="reference_sdrf.tsv" />
            <param name="label_col_ref" value="Sample.Characteristic.cell.type." />
            <param name="ontology_graph" value="cl-basic.obo" />
            <param name="exclusions" value="exclusions.yml" />
            <param name="parallel" value="TRUE" />
            <param name="lab_cl_mapping" value="label_cl_dict.rds" />
            <output name="output_list_path" file="empirical_dist_list.rds" compare="sim_size" />
        </test>
    </tests>
    <help><![CDATA[
    @HELP@

    @VERSION_HISTORY@
    ]]></help>
    <expand macro="citations" />
</tool>