view scpred_train_model.xml @ 5:33fa4949e080 draft

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit bb88d0eb9c193518eb0d05321e3458a10212d3ab"
author ebi-gxa
date Fri, 14 Aug 2020 10:56:40 -0400
parents 03d1ed93e523
children a7269f8f45aa
line wrap: on
line source

<tool id="scpred_train_model" name="Scpred train" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
    <description>Train classification model</description>
    <macros>
        <import>scpred_macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
        scpred_train_model.R --input-object "${input_object}" --model "${model}" --output-path "${output_obj_path}" --train-probs-plot "${train_probs_plot}"
        #if $train_id
        --train-id '${train_id}' 
        #end if
        ]]></command>
    <inputs>
        <param type="data" name="input_object" label="Input SCE object" format="rdata" help="Input SCE object in .rds format"/>
        <param type="text" name="train_id" optional="true" label="Dataset ID" help="ID of the training dataset" />
        <param type="text" name="model" label="Model type to train" value="svmRadial" help="Model type used for training. Must be one of the models supported by Caret package. Default: svmRadial" />
    </inputs>
    <outputs>
        <data name="output_obj_path" format="rdata" />
        <data name="train_probs_plot" format="png" />
    </outputs>
     <tests>
        <test>
            <param name="input_object" value="scPred_feat_space.rds" />
            <output name="output_obj_path" file="scPred_trained.rds" compare="sim_size" />
        </test>
    </tests>
     <help><![CDATA[
    @HELP@
    
    @VERSION_HISTORY@
    ]]></help>
    <expand macro="citations" />
</tool>