comparison scpred_train_model.xml @ 7:a7269f8f45aa draft default tip

"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:46:23 +0000
parents 33fa4949e080
children
comparison
equal deleted inserted replaced
6:b3c543769af9 7:a7269f8f45aa
3 <macros> 3 <macros>
4 <import>scpred_macros.xml</import> 4 <import>scpred_macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="requirements" /> 6 <expand macro="requirements" />
7 <command detect_errors="exit_code"><![CDATA[ 7 <command detect_errors="exit_code"><![CDATA[
8 scpred_train_model.R --input-object "${input_object}" --model "${model}" --output-path "${output_obj_path}" --train-probs-plot "${train_probs_plot}" 8 scpred_train_model.R --input-object "${input_object}" --model "${model}" --output-path "${output_obj_path}" --iter-num "${iter_num}" --num-cores \${GALAXY_SLOTS:-1} --tune-length "${tune_length}" --metric "${metric}" --preprocess "${preprocess}" --return-data "${return_data}" --save-predictions "${save_predictions}"
9
9 #if $train_id 10 #if $train_id
10 --train-id '${train_id}' 11 --train-id '${train_id}'
11 #end if 12 #end if
13 #if $resample_method
14 --resample-method '${resample_method}'
15 #end if
16 #if $reclassify
17 --reclassify "${reclassify}"
18 #end if
19
12 ]]></command> 20 ]]></command>
13 <inputs> 21 <inputs>
22
14 <param type="data" name="input_object" label="Input SCE object" format="rdata" help="Input SCE object in .rds format"/> 23 <param type="data" name="input_object" label="Input SCE object" format="rdata" help="Input SCE object in .rds format"/>
15 <param type="text" name="train_id" optional="true" label="Dataset ID" help="ID of the training dataset" /> 24 <param type="text" name="train_id" optional="true" label="Dataset ID" help="ID of the training dataset" />
16 <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" /> 25 <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" />
26 <param type="text" name="resample_method" optional="true" value="cv" label="Resample Method" help="Resampling method used for model fit evaluation" />
27 <param type="integer" name="iter_num" optional="true" value="5" label="Number of Iterations" help="Number of resampling iterations. Default: 5" />
28 <param type="integer" name="tune_length" optional="true" value="3" label="Tune Length" help="An integer denoting the amount of granularity in the tuning parameter grid" />
29 <param type="text" name="metric" optional="true" value="ROC,PR,Accuracy,Kappa" label="Performance Metric" help="Performance metric to be used to select best model" />
30 <param type="text" name="preprocess" optional="true" value="center,scale" label="Pre-processing Method" help="A string vector that defines a pre-processing of the predictor data. Enter values as comma-separated string. Current possibilities are 'BoxCox', 'YeoJohnson', 'expoTrans', 'center', 'scale', 'range', 'knnImpute', 'bagImpute', 'medianImpute', 'pca', 'ica' and 'spatialSign'. The default is 'center' and 'scale'." />
31 <param type="boolean" checked="false" name="return_data" label="Return Data" help="If TRUE, training data is returned within scPred object. Default: False"/>
32 <param type="text" name="save_predictions" optional="true" value="final" label="Save Predictions" help="Specifies the set of hold-out predictions for each resample that should be returned. Values can be either 'all', 'final' or 'none'." />
33 <param type="text" name="reclassify" optional="true" label="Cells to Reclassify" help="Cell types to reclassify using a different model" />
34
17 </inputs> 35 </inputs>
18 <outputs> 36 <outputs>
19 <data name="output_obj_path" format="rdata" /> 37 <data name="output_obj_path" format="rdata" />
20 <data name="train_probs_plot" format="png" />
21 </outputs> 38 </outputs>
22 <tests> 39 <tests>
23 <test> 40 <test>
24 <param name="input_object" value="scPred_feat_space.rds" /> 41 <param name="input_object" value="scPred_feat_space.rds" />
25 <output name="output_obj_path" file="scPred_trained.rds" compare="sim_size" /> 42 <param name="train_id" value="E-ENAD-16" />
43 <output name="output_obj_path" file="scPred_trained.rds" compare="sim_size" delta="10000000"/>
26 </test> 44 </test>
27 </tests> 45 </tests>
28 <help><![CDATA[ 46 <help><![CDATA[
29 @HELP@ 47 @HELP@
30 48