comparison ct_get_tool_perf_table.xml @ 0:10889190fe31 draft

"planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 941a94360593f8dfb7804834f29fb2642ddd53a2"
author ebi-gxa
date Wed, 08 Apr 2020 11:35:15 -0400
parents
children 71602426b328
comparison
equal deleted inserted replaced
-1:000000000000 0:10889190fe31
1 <tool id="ct_get_tool_perf_table" name="Cell types - get tool performance table" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">
2 <description>Get performance table for a list of outputs generated by various tools</description>
3 <macros>
4 <import>ct_macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 mkdir -p input_dir;
9 #for $input_file in $input_files:
10 cp '$input_file' input_dir/;
11 #end for
12
13 ln -s $'${ontology_graph}' cl-basic.obo;
14
15 get_tool_performance_table.R --input-dir input_dir --ref-file "${ref_file}" --num-cores "${num_cores}" --exclusions "${exclusions}" --parallel "${parallel}" --ontology-graph cl-basic.obo --lab-cl-mapping "${lab_cl_mapping}" --barcode-col-ref "${barcode_col_ref}" --barcode-col-pred "${barcode_col_pred}" --label-column-ref "${label_col_ref}" --label-column-pred "${label_col_pred}" --semantic-sim-metric "${semantic_sim_metric}" --output-path "${output_path}" ]]></command>
16 <inputs>
17 <param type="data" name="input_files" label="Input tables" multiple="true" format="txt" help="Classification tables obtained from multiple classisifiers" />
18 <param type="data" name="ref_file" label="Reference metadata file" format="txt" help="Metadata file with reference labels" />
19 <param type="boolean" name="parallel" label="Parallel execution" checked="false" help="Should the table values be computed in parallel?" />
20 <param type="integer" name="num_cores" label="Number of cores" value='1' help="Number of cores used for computation" />
21 <param type="data" name="exclusions" label="Exclusions" format="yml" optional="true" help="Config file with exclusions" />
22 <param type="data" name="ontology_graph" label="Ontology graph" format="obo" help="Ontology graph to run semantis similarity computations" />
23 <param type="data" name="lab_cl_mapping" label="Label - CL term mapping" format="rdata" help="Mapping between cell labels and ontology terms" />
24 <param type="text" name="barcode_col_ref" label="Reference file barcode field" value='cell_id' help="Name of barcode field in reference metadata file" />
25 <param type="text" name="barcode_col_pred" label="Predicted file barcode field" value="cell_id" help="Name of barcode field in predictions file" />
26 <param type="text" name="label_col_ref" label="Reference label column" value="cell_type" help="Label column in reference file" />
27 <param type="text" name="label_col_pred" label="Predicted file label column" value="pred_label" help="Name of label field in predictions file" />
28 <param type="text" name="semantic_sim_metric" label="Semantic similarity metric" value="edge_resnik" help="Type of semantic similarity metric used" />
29 </inputs>
30 <outputs>
31 <data name="output_path" format="tsv" />
32 </outputs>
33 <tests>
34 <test>
35 <param name="input_files" value="results_dir/garnett_output.txt,results_dir/scmap-cell_output.txt,results_dir/scmap-cluster_output.txt,results_dir/scpred_output.txt" />
36 <param name="ref_file" value="reference_sdrf.tsv" />
37 <param name="ontology_graph" value="cl-basic.obo" />
38 <param name="lab_cl_mapping" value="label_cl_dict.rds" />
39 <param name="parallel" value="TRUE" />
40 <param name="exclusions" value="exclusions.yml" />
41 <param name="barcode_col_ref" value="Assay" />
42 <param name="barcode_col_pred" value="cell_id" />
43 <param name="label_col_ref" value="Sample.Characteristic.cell.type." />
44 <param name="label_col_pred" value="predicted_label" />
45 <output name="output_path" file="tool_perf_table.tsv" compare="sim_size" />
46 </test>
47 </tests>
48 <help><![CDATA[
49 @HELP@
50
51 @VERSION_HISTORY@
52 ]]></help>
53 <expand macro="citations" />
54 </tool>