Mercurial > repos > ebi-gxa > seurat_read10x
comparison seurat_read10x.xml @ 2:2d121013176f draft
planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit bbe3c1f7fd8489951f2d90415fe80dd5cf961ca0
author | ebi-gxa |
---|---|
date | Fri, 10 Jul 2020 21:48:16 -0400 |
parents | 265dcc5bc1e8 |
children | 948ce48561f9 |
comparison
equal
deleted
inserted
replaced
1:265dcc5bc1e8 | 2:2d121013176f |
---|---|
1 <tool id="seurat_read10x" name="Seurat Read10x" version="@SEURAT_VERSION@_@VERSION@+galaxy0"> | 1 <tool id="seurat_read10x" name="Seurat Read10x" version="@SEURAT_VERSION@+galaxy1"> |
2 <description>Loads 10x data into a serialized seurat R object</description> | 2 <description>Loads Tabular or 10x data into a serialized seurat R object</description> |
3 <macros> | 3 <macros> |
4 <import>seurat_macros.xml</import> | 4 <import>seurat_macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements" /> | 6 <expand macro="requirements" /> |
7 <stdio> | 7 <stdio> |
8 <exit_code range="1:" /> | 8 <exit_code range="1:" /> |
9 </stdio> | 9 </stdio> |
10 <command><![CDATA[ | 10 <command><![CDATA[ |
11 ln -s "$matrix" matrix.mtx; | |
12 ln -s "$genes" genes.tsv; | |
13 ln -s "$barcodes" barcodes.tsv; | |
14 | 11 |
15 seurat-read-10x.R -d ./ | 12 #if str($input.format) == "mtx": |
13 ln -s "$matrix" matrix.mtx; | |
14 ln -s "$genes" genes.tsv; | |
15 ln -s "$barcodes" barcodes.tsv; | |
16 # end if | |
16 | 17 |
18 seurat-read-10x.R | |
19 #if str($input.format) == "mtx": | |
20 -d ./ | |
21 #else | |
22 -f $input.file | |
23 # end if | |
17 #if $metadata | 24 #if $metadata |
18 --metadata '$metadata' | 25 --metadata '$metadata' |
19 #end if | 26 #end if |
20 #if $min_cells | 27 #if $min_cells |
21 --min-cells '$min_cells' | 28 --min-cells '$min_cells' |
26 | 33 |
27 @OUTPUT_OBJECT@ | 34 @OUTPUT_OBJECT@ |
28 | 35 |
29 ]]></command> | 36 ]]></command> |
30 <inputs> | 37 <inputs> |
31 <param type="data" name="matrix" help="Raw expression quantification as a sparse matrix in Matrix Market format, where each column is a gene and each row is a barcode/cell." format="txt" label="Expression matrix in sparse matrix format (.mtx)" /> | 38 <conditional name="input" label="Input expression data"> |
32 <param type="data" name="genes" help="Matrix market column file for genes" label="Gene table" format="tsv,tabular"/> | 39 <param type="select" name="format" label="Choose the format of the input" help="10X MTX or tabular"> |
33 <param type="data" name="barcodes" help="Matrix market row file for genes" label="Barcode/cell table" format="tsv,tabular"/> | 40 <option value="mtx" selected="true">10X-type MTX</option> |
41 <option value="tab" selected="true">tab-delimited text</option> | |
42 </param> | |
43 <when value="tab"> | |
44 <param type="data" name="file" label="Expression table" help="Tab-delimted expression table" format="tabular"/> | |
45 </when> | |
46 <when value="mtx"> | |
47 <param type="data" name="matrix" help="Raw expression quantification as a sparse matrix in Matrix Market format, where each column is a gene and each row is a barcode/cell." format="txt" label="Expression matrix in sparse matrix format (.mtx)" /> | |
48 <param type="data" name="genes" help="Matrix market column file for genes" label="Gene table" format="tsv,tabular"/> | |
49 <param type="data" name="barcodes" help="Matrix market row file for genes" label="Barcode/cell table" format="tsv,tabular"/> | |
50 </when> | |
51 </conditional> | |
34 <param label="Cell Metadata" optional="true" name="metadata" argument="--metadata" type="data" format="tsv,tabular" help="File with metdata for the cells, first column should be cell identifiers as used in the cells 10x file."/> | 52 <param label="Cell Metadata" optional="true" name="metadata" argument="--metadata" type="data" format="tsv,tabular" help="File with metdata for the cells, first column should be cell identifiers as used in the cells 10x file."/> |
35 <param label="Minimum cells to include features" optional="true" name="min_cells" argument="--min-cells" type="integer" help="Include features detected in at least this many cells. Will subset the counts matrix as well. To reintroduce excluded features, create a new object with a lower cutoff."/> | 53 <param label="Minimum cells to include features" optional="true" name="min_cells" argument="--min-cells" type="integer" help="Include features detected in at least this many cells. Will subset the counts matrix as well. To reintroduce excluded features, create a new object with a lower cutoff."/> |
36 <param label="Minimum features to include cells" optional="true" name="min_features" argument="--min-features" type="integer" help="Include cells where at least this many features are detected."/> | 54 <param label="Minimum features to include cells" optional="true" name="min_features" argument="--min-features" type="integer" help="Include cells where at least this many features are detected."/> |
37 <expand macro="output_object_params"/> | 55 <expand macro="output_object_params"/> |
38 </inputs> | 56 </inputs> |
55 | 73 |
56 **What it does** | 74 **What it does** |
57 | 75 |
58 @SEURAT_INTRO@ | 76 @SEURAT_INTRO@ |
59 | 77 |
60 **Read 10x-Genomics-formatted mtx directory (`read_10x_mtx`)** | 78 **Read expression data from a tabular file or a 10x-Genomics-formatted mtx directory (`read_10x_mtx`)** |
61 | 79 |
62 The mtx directory should contain: | 80 For mtx, the directory should contain: |
63 | 81 |
64 1) Raw expression quantification as a sparse matrix in Matrix Market format, where the each column is a gene and each row is a barcode/cell. | 82 1) Raw expression quantification as a sparse matrix in Matrix Market format, where the each column is a gene and each row is a barcode/cell. |
65 | 83 |
66 2) A gene table of at least two columns where the first column gives the gene IDs. | 84 2) A gene table of at least two columns where the first column gives the gene IDs. |
67 | 85 |
70 The above-mentioned files can be obtained by running `EBI SCXA Data Retrieval` | 88 The above-mentioned files can be obtained by running `EBI SCXA Data Retrieval` |
71 with a dataset accession. Otherwise, they need to be provided as separate Galaxy | 89 with a dataset accession. Otherwise, they need to be provided as separate Galaxy |
72 datasets. | 90 datasets. |
73 | 91 |
74 **Inputs** | 92 **Inputs** |
75 * Raw expression quantification as a sparse matrix in Matrix Market format, where the each column is a gene and each row is a barcode/cell. | 93 * A tabular file of expression data OR |
76 * A gene table of at least two columns where the first column gives the gene IDs. | 94 * Raw expression quantification as a sparse matrix in Matrix Market format, where the each column is a gene and each row is a barcode/cell. |
77 * A barcode/cell table of at least one column giving the barcode/cell IDs. | 95 * A gene table of at least two columns where the first column gives the gene IDs. |
96 * A barcode/cell table of at least one column giving the barcode/cell IDs. | |
78 * Optionally, a file with cell metadata. | 97 * Optionally, a file with cell metadata. |
79 | 98 |
80 **Outputs** | 99 **Outputs** |
81 * R object for Seurat | 100 * R object for Seurat |
82 | 101 |