comparison convertFCStxtToSCE.xml @ 0:4dc004880972 draft default tip

"planemo upload for repository https://github.com/AstraZeneca-Omics/immport-galaxy-tools/tree/develop/flowtools/convert_fcstxt_to_sce commit 611788da04fbda0b2735de1395d4407ecb75e068"
author azomics
date Thu, 22 Jul 2021 21:44:59 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4dc004880972
1 <tool id="convert_fcstxt_to_sce" name="Convert flowtext file to SCE" version="1.0+galaxy0" profile="18.01">
2 <description>Single Cell Experiment</description>
3 <requirements>
4 <requirement type="package" version="1.10.1">bioconductor-singlecellexperiment</requirement>
5 <requirement type="package" version="1.6.6">r-optparse</requirement>
6 </requirements>
7 <stdio>
8 <exit_code range="1:9" level="fatal" description="See stderr for more details." />
9 <exit_code range="10" level="fatal" description="Please provide comma separated chacter strings, of the columns to include in the assay" />
10 <exit_code range="11" level="fatal" description="Please provide comma separted chacter strings, of the columns to include in the meta data." />
11 <exit_code range="12" level="fatal" description="Please provide comma separated chacter strings, defining the marker type (included in the assay)." />
12 <exit_code range="13" level="fatal" description="Provided column names for the assay are out of range in the flowtext file given as input." />
13 <exit_code range="14" level="fatal" description="Provided column names for the metadata are out of range in the flowtext file given as input." />
14 <exit_code range="15" level="fatal" description="Please provide a metadata file with the 'sample' column name matching the 'sample' column name in the flowtext file." />
15 <exit_code range="16" level="fatal" description="Please make sure that only one of the column names in the flowtext file and metadata file match (the sample column)." />
16 <exit_code range="17" level="fatal" description="Please provide the same number of marker types, as there are markers in the assay." />
17 <exit_code range="18:"/>
18 </stdio>
19 <command><![CDATA[
20 Rscript '$__tool_directory__'/FCStxtConvertSCE.R -i '${input}' -o '${output_sce}'
21 #if $fl_cols
22 --fl_cols '${fl_cols}'
23 #end if
24 #if $mtd_cols
25 --metadata_columns '${mtd_cols}'
26 #end if
27 #if $meta_data
28 --metadata_file '${meta_data}'
29 #end if
30 #if $marker_type
31 --marker_type '${marker_type}'
32 #end if
33 ]]>
34 </command>
35 <inputs>
36 <param name="input" format="flowtext,tabular" type="data" label="Flow text file to be converted into a Single Cell Experiment object"/>
37 <param name="meta_data" format="txt" type="data" label="Metadata file" optional="true" help="Optional meta data txt file to include in Single Cell Experiment. Please see below for formatting."/>
38 <param name="fl_cols" type="text" optional="true" label="Columns with markers to be included in the Single Cell Experiment assay" help="Comma-separated list of columns (i.e.:CD8,CD4,CD8). By default, all columns except for FSC, SSC, time and Live-dead will be taken into account."/>
39 <param name="mtd_cols" type="text" optional="true" label="Columns to be included in the metadata of the Single Cell Experiment" help="Comma-separated list of columns (i.e.:Sample,Population). By default, the 'Population' and 'Sample' columns will be included in the Coldata. The coldData stors meta data for each cell in the dataset."/>
40 <param name="marker_type" type="text" optional="true" value="" label="Marker type" help="Comma-separated list of marker types (i.e: lineage,lineage,functional). This section labels the markers included in the assay. Labels must be in order of the markers in flowtext file or in order of the markers selected for the assay. Proteins labelled as l will be replaced with lineage and those with 'f' will be replaced with functional. See below for more details.">
41 </param>
42 </inputs>
43 <outputs>
44 <data name="output_sce" format="rdata.sce" from_work_dir="output.rds" label="SCE ${input.name}"/>
45 </outputs>
46 <tests>
47 <test>
48 <param name="input" value="input.flowtext"/>
49 <output name="output_sce" file="output.rds" ftype="rdata.sce" compare="sim_size"/>
50 </test>
51 <test>
52 <param name="input" value="input.flowtext"/>
53 <param name="fl_cols" value="Marker1,Marker2,Marker3,Marker4"/>
54 <param name="mtd_cols" value="Population,Sample"/>
55 <param name="marker_type" value="f,l,f,l"/>
56 <output name="output_sce" file="output.rds" ftype="rdata.sce" compare="sim_size"/>
57 </test>
58 <test>
59 <param name="input" value="input.flowtext"/>
60 <param name="meta_data" value="metadata.txt"/>
61 <param name="fl_cols" value="Marker1,Marker2,Marker3,Marker4"/>
62 <param name="mtd_cols" value="Population,Sample"/>
63 <param name="marker_type" value="f,l,f,l"/>
64 <output name="output_sce" file="output.rds" ftype="rdata.sce" compare="sim_size"/>
65 </test>
66 </tests>
67 <help><![CDATA[:A
68 This tool converts flow text files into a Single Cell Experiment object, with no tranformation or compensation.
69
70 -----
71
72 **Input files**
73
74 This tool requires a single valid flow text file. If you have multiple flowtext files please use the *Add sample information and merge tool* first.
75
76 If metadata is supplied and there are multiple samples in the flowtext file; there must be a sample column in the metadata and flowtext file, with the same column name. The sample names within the column must also match.
77 For example if there is a column in the flow text file labelled Sample with 2 samples labelled 1 and 2; there must also be a column in the meta data fiel labelled 'Sample' containing 2 rows for each sample '1' and '2' with the relevant additional columns with metadata.
78
79 By default the foward side scatter, side scatter columns, time, live dead stains, cluster info and sample columns will be discluded.
80 To override please supply a comma separated list of columns to include in the assay of the Single Cell Experiment.
81
82 By default the columns which will be included in the meta data of the SCE will be the sample and cluster results.
83 To override this please supply
84
85 By default this
86
87 **Output file**
88
89 Support the following conversion:
90 * flowtext file -> SingleCellExperiment
91 * tabular file -> SingleCellExperiment
92
93 The output of this tool is a Single Cell Experiment object. This is an R object which contains slots for fluorescence data (assay) and metaData (colData). Please the image below.
94 Converting to a SCE object will allow you to run tools for single cell RNAseq on your cytometry data.
95
96 For more information on Single Cell Experiment objects please refer to the picture below or the 'bioconductor page<https://bioconductor.org/packages/release/bioc/vignettes/SingleCellExperiment/inst/doc/intro.html>'.
97
98 -----
99
100 **Example**
101
102 *Input*: flow text file
103
104 FSC SSC Marker1 Marker2 Marker3 Marker4 Population Sample
105 449 157 551 129 169 292 1 sample1
106 894 1023 199 277 320 227 3 sample1
107 262 73 437 69 0 146 6 sample1
108 340 115 509 268 0 74 1 sample1
109 ... ... ... ... ... ... ... ...
110 523 354 554 176 213 185 2 sample2
111 678 8096 98 74 417 267 6 sample2
112 226 89 467 123 0 324 2 sample2
113 660 175 589 178 1 89 7 sample2
114 ... ... ... ... ... ... ... ...
115
116 *Input*: Metadata Table
117 Sample Pateint ID Sex Age ...
118 sample1 7245 female 54 ...
119 sample2 1423 male 36 ...
120 ... ... ... ... ...
121
122 *Output*: Single Cell Experient object
123
124 .. image:: ./images/sce_modified.png
125
126 ]]>
127 </help>
128 </tool>