view scater-plot-pca.xml @ 2:9e5c0bb18d08 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/scater commit 154318f74839a4481c7c68993c4fb745842c4cce"
author iuc
date Thu, 09 Sep 2021 12:23:55 +0000
parents bea3359ba852
children
line wrap: on
line source

<tool id="scater_plot_pca" name="Scater: PCA plot" version="@TOOL_VERSION@" profile="@PROFILE@">
    <description>cell-level reduced dimension of a normalised SCE</description>
    <expand macro="bio_tools"/>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
Rscript '$__tool_directory__/scater-plot-pca.R'
-i '$input_loom'
#if str($colour_by).strip():
    --colour-by '$colour_by'
#end if
#if str($size_by).strip():
    --size-by '$size_by'
#end if
#if str($shape_by).strip():
    --shape-by '$shape_by'
#end if
-o '$output_plot'
    ]]></command>
    <inputs>
        <param name="input_loom" type="data" format="loom" label="Input SingleCellLoomExperiment dataset" />
        <param name="colour_by" argument="--colour-by" type="text" optional="true" label="Feature (from annotation file) to colour PCA plot points by" help="The values represented in this options should be categorical" />
        <param name="size_by" argument="--size-by" type="text" optional="true" label="Feature (from annotation file) to size PCA plot points by" help="The values represented in this options should be numerical and not categorical" />
        <param name="shape_by" argument="--shape-by" type="text" optional="true" label="Feature (from annotation file) to shape PCA plot points by" help="The values represented in this options should be categorical" />
    </inputs>
    <outputs>
        <data name="output_plot" format="pdf" label="${tool.name} on ${on_string}" />
    </outputs>
    <tests>
        <test>
            <param name="input_loom" value="scater_qcready.loom" ftype="loom" />
            <param name="colour_by" value="Treatment" />
            <param name="shape_by" value="Mutation_Status" />
            <output name="output_plot" file="scater_pca_plot.pdf" compare="sim_size" />
        </test>
    </tests>
    <help><![CDATA[
Creates a PCA plot of a normalised SingleCellLoomExperiment object using Scater.
    ]]></help>
    <expand macro="citations" />
</tool>