view scmap_get_std_output.xml @ 7:2f63b1cd9122 draft

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit a1ad1ddd9b8e4db5bb82c3accae8311e0e488b19"
author ebi-gxa
date Fri, 27 Nov 2020 13:42:47 +0000
parents 0d713384d8d8
children 601a933714f1
line wrap: on
line source

<tool id="scmap_get_std_output" name="Scmap get standard output" version="@TOOL_VERSION@+galaxy0"  profile="@PROFILE@">
    <description>Create final output in standard format to allow for downstream analysis of predicted labels by tools of the EBI gene expression group's cell-types-analysis package</description>
    <macros>
         <import>scmap_macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        scmap_get_std_output.R --predictions-file "${input_predictions_file}" --output-table "${output_predictions_file}" --include-scores "${include_scores}"  --tool '${tool}' --sim-col-name "${sim_col_name}"
        #if $index
          --index "${index}"
        #end if   
    ]]></command>
    <inputs>
        <param type="data" name="input_predictions_file" label="Scmap predictions file in text format" format="txt" help="Path to the predictions file in text format" />
        <param type="boolean" name="include_scores" checked="false"  label="Should prediction scores be included?" help="Boolean indicating whether similarity scores should be included in the final output" />
        <param type="data" name="index" label="Scmap index object" optional="true" format="rdata" help="Scmap index object in rdata format" />
        <param type="select" name="tool" label="Tool used (cell/cluster)"  help="What tool was used - scmap-cell or scmap-cluster?">
            <option value="scmap-cell">Scmap-cell</option>
            <option value="scmap-cluster">Scmap-cluster</option>
        </param>
        <param type="text" name="sim_col_name" value="scmap_cluster_siml" label="Column name of similarity scores" help="Name of column that contains distances between clusters/cells" />
    </inputs>
    <outputs>
        <data name="output_predictions_file" format="txt" />
    </outputs>
    <tests>
        <test>
            <param name="input_predictions_file" value="closest_cells_clusters.tsv" />
            <param name="include_scores" value="TRUE" />
            <output name="output_predictions_file" value="scmap_output_tbl.txt" compare="sim_size" />
        </test>
    </tests>
    <help><![CDATA[
    Generate output tables in tab-separated format compatible with input specified in cell-types-analysis package: https://github.com/ebi-gene-expression-group/cell-types-analysis. 
    See the example snippet below: 
    ________________________________________
    |  cell_id   | predicted_label | score |
    | ERR2632411 | memory B cell   |  0.8  |
    ...
    
    @VERSION_HISTORY@
    ]]></help>
    <expand macro="citations" />
</tool>