annotate genap2_kb_python/kb_count.xml @ 0:e8d93f1429c2 draft

Uploaded
author fwuennemann
date Fri, 16 Apr 2021 18:18:21 +0000
parents
children dbcb26e2a1db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
1 <tool id="kb_python" name="kb_python" version="@VERSION@+galaxy0">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
2 <description>performs gene and feature quantification on single-cell sequencing data.</description>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
3 <macros>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
4 <import>macros.xml</import>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
5 </macros>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
6 <requirements>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
7 <requirement type="package" version="0.25.1">kb-python</requirement>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
8 </requirements>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
9 <stdio>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
10 <exit_code range="1:" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
11 <exit_code range=":-1" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
12 <regex match="Error:" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
13 <regex match="Exception:" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
14 <regex match="Exception :" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
15 </stdio>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
16 <command detect_errors="exit_code"><![CDATA[
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
17 mkdir ./index
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
18 && mkdir ./kb_outs
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
19 #if $refTranscriptSource.TranscriptSource == "history":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
20 && ln -s '${refTranscriptSource.h_index.index_file}' './index/kb_ref.idx'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
21 && ln -s '${refTranscriptSource.h_index.t2g_file}' './index/t2g.txt'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
22 #if $workflow == "lamanno" or $workflow == "nucleus":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
23 && ln -s '${refTranscriptSource.h_index.history_lamanno.cdna_t2c}' './index/cdna_t2c.txt'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
24 && ln -s '${refTranscriptSource.h_index.history_lamanno.intron_t2c}' './index/intron_t2c.txt'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
25 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
26 #set $index_path = './index'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
27 #else if $refTranscriptSource.TranscriptSource == "built":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
28 && kb ref -i ./index/kb_ref.idx
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
29 -g ./index/t2g.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
30 -f1 ./index/cdna.fa
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
31 --workflow $workflow
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
32 #if $workflow == "lamanno" or $workflow == "nucleus":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
33 -f2 ./index/intron.fa
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
34 -c1 ./index/cdna_t2c.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
35 -c2 ./index/intron_t2c.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
36 --workflow $workflow
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
37 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
38 #if $workflow != "kite":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
39 '${refTranscriptSource.s_index.genomic_fasta}'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
40 '${refTranscriptSource.s_index.genomic_gtf}'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
41 #else:
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
42 '${refTranscriptSource.s_index.kite_table}'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
43 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
44 #set $index_path = './index'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
45 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
46 && kb count
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
47 -t \${GALAXY_SLOTS:-1}
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
48 -i $index_path/kb_ref.idx
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
49 -g $index_path/t2g.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
50 #if $workflow == "lamanno" or $workflow == "nucleus":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
51 -c1 $index_path/cdna_t2c.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
52 -c2 $index_path/intron_t2c.txt
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
53 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
54 -x $technology
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
55 #if $whitelist:
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
56 --whitelist '${optional.whitelist}'
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
57 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
58 #if $optional.multimap:
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
59 --mm
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
60 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
61 --workflow $workflow
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
62 #if $extra_dtype != "none":
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
63 $extra_dtype
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
64 #end if
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
65 -o ./kb_outs
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
66 --cellranger
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
67 $FASTQ1
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
68 $FASTQ2
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
69 ]]>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
70 </command>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
71 <inputs>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
72 <param name="workflow" label="Select the workflow you want to use:" type="select" multiple="false" format="text" help="Type of workflow. Use `lamanno` for RNA velocity based on La Manno et al. 2018 logic.
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
73 Use `nucleus` for RNA velocity on single-nucleus RNA-seq reads. Use `kite` for feature barcoding. Use `kite:10xFB` for 10x Genomics Feature Barcoding technology.">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
74 <option value="standard">standard</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
75 <option value="lamanno">lamanno</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
76 <option value="nucleus">nucleus</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
77 <option value="kite">kite</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
78 </param>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
79 <expand macro="index"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
80 <param name="technology" label="Select the scRNA-seq technology:" type="select" multiple="false" format="text" help="Choose the scRNA-seq technology used to generate the fastq data.">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
81 <option value="10XV1">10XV1</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
82 <option value="10XV2">10XV2</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
83 <option value="10XV3">10XV3</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
84 <option value="CELSEQ">CELSEQ</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
85 <option value="CELSEQ2">CELSEQ2</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
86 <option value="DROPSEQ">DROPSEQ</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
87 <option value="INDROPSV1">INDROPSV1</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
88 <option value="INDROPSV2">INDROPSV2</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
89 <option value="INDROPSV3">INDROPSV3</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
90 <option value="SCRUBSEQ">SCRUBSEQ</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
91 <option value="SURECELL">SURECELL</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
92 </param>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
93 <param name="FASTQ1" label="Select the R1 fastq file:" type="data" format="fastqsanger.gz" multiple="false"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
94 <param name="FASTQ2" label="Select the R2 fastq file:" type="data" format="fastqsanger.gz" multiple="false"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
95 <param name="extra_dtype" type="select" label="Do you want any additional output data type beside CellRanger?">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
96 <option value="none" selected = "true">No</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
97 <option value="--loom">Loom</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
98 <option value="--h5ad">H5ad</option>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
99 </param>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
100 <section name="optional" title="Optional commands" expanded="false">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
101 <param name="whitelist" type="data" format="tsv,tabular" optional="true" label="Whitelist file" help="Whitelisted barcodes to correct to. If not provided and bustools supports the technology, a pre-packaged whitelist is used. If not, the bustools
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
102 whitelist command is used."/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
103 <param name="multimap" type="boolean" optional="true" label="Include multi pseudoaligned reads?" help="Do you want to include reads that pseudoalign to multiple genes?"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
104 </section>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
105 </inputs>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
106 <outputs>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
107 <data name="barcodes" label="cellranger barcodes" format="txt" from_work_dir="kb_outs/counts_unfiltered/cellranger/barcodes.tsv"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
108 <data name="genes" label="cellranger genes" format="txt" from_work_dir="kb_outs/counts_unfiltered/cellranger/genes.tsv"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
109 <data name="matrix" label="cellranger matrix" format="mtx" from_work_dir="kb_outs/counts_unfiltered/cellranger/matrix.mtx" />
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
110 <data name="inspect" label="inspect_report" format="json" from_work_dir="kb_outs/inspect.json"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
111 <data name="runinfo" label="run info" format="json" from_work_dir="kb_outs/run_info.json"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
112 <data name="kbinfo" label="kb info" format="json" from_work_dir="kb_outs/kb_info.json"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
113 <data name="kb_ref" label="kb_ref.idx" format="kallisto.idx" from_work_dir="index/kb_ref.idx"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
114 <data name="t2g" label="t2g.txt" format="txt" from_work_dir="index/t2g.txt"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
115 <data name="cdna_t2c" label="-c1 cdna_t2c.txt" format="txt" from_work_dir="index/cdna_t2c.txt">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
116 <filter>workflow == "lamanno"</filter>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
117 </data>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
118 <data name="intron_t2c" label="-c2 intron_t2c.txt" format="txt" from_work_dir="index/intron_t2c.txt">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
119 <filter>workflow == "lamanno"</filter>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
120 </data>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
121 <data name="adata" label="adata.h5ad" format="h5ad" from_work_dir="kb_outs/counts_unfiltered/adata.h5ad">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
122 <filter >extra_dtype == "--h5ad"</filter>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
123 </data>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
124 <data name="adata" label="adata.loom" format="loom" from_work_dir="kb_outs/counts_unfiltered/adata.loom">
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
125 <filter>extra_dtype == "--loom"</filter>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
126 </data>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
127 </outputs>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
128 <tests>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
129 <expand macro="tests"/>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
130 </tests>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
131 <help><![CDATA[
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
132 This is a galaxy wrapper for kallisto-bustools (kb) for quantification of different types of single-cell sequencing data. The main kallisto-bustools homepage can be found under:
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
133 'kallisto-bustools<https://www.kallistobus.tools/>'.
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
134
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
135 The kb count command runs the kallisto and bustools programs. It can be used for pre-processing of data from a variety of single-cell RNA-seq technologies,
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
136 and for a number of different workflows (e.g. production of gene count matrices, RNA velocity analyses, etc.).
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
137
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
138 The kb package is developed and maintained by the Pachterlab under the MIT License.
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
139 ]]></help>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
140 <citations>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
141 <citation type="doi">https://doi.org/10.1101/673285</citation>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
142 </citations>
e8d93f1429c2 Uploaded
fwuennemann
parents:
diff changeset
143 </tool>