Mercurial > repos > bgruening > salmonquantmerge
annotate salmonquantmerge.xml @ 10:42628a3010d4 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 3b330b885fde7c730c5d121f6b37e1d99d3721e1
| author | bgruening |
|---|---|
| date | Fri, 31 Oct 2025 19:16:59 +0000 |
| parents | 58b9ef13fcca |
| children |
| rev | line source |
|---|---|
|
7
923b40fc4442
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 363aead8810baedaff299537616cebdab36a8664
bgruening
parents:
6
diff
changeset
|
1 <tool id="salmonquantmerge" name="Salmon quantmerge" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE_VERSION@"> |
|
0
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
2 <description>Merge multiple quantification results into a single file</description> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
3 <macros> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
5 </macros> |
|
9
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
6 <expand macro="xrefs"/> |
|
0
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
|
9
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
8 <expand macro="version_command"/> |
|
0
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
|
9
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
10 #import re |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
11 |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
12 #for $counter, $input_data in enumerate($quantfiles): |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
13 rank_of_series=$counter |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
14 mkdir ${counter}.quantmerge && |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
15 ln -s '$input_data.quants' ${counter}.quantmerge/quant.sf && |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
16 #end for |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
17 salmon --no-version-check quantmerge |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
18 --quants *.quantmerge |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
19 --names |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
20 #for $counter, $input_data in enumerate($quantfiles): |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
21 #if $input_data.names and re.sub(' ', '', '$input_data.names') != '': |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
22 '${input_data.names}' |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
23 #else: |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
24 #set $identifier=re.sub('[^\w\-\s]', '_', str($input_data.quants.element_identifier)) |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
25 "$identifier" |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
26 #end if |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
27 #end for |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
28 --column '${column}' |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
29 ${genes} |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
30 #if $missing: |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
31 --missing '${missing}' |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
32 #end if |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
33 -o qmergeout.tab |
|
0
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
34 ]]></command> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
35 <inputs> |
|
9
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
36 <repeat name="quantfiles" title="Quant file and names"> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
37 <param argument="--quants" type="data" format="tsv,tabular" label="Salmon quant tabular output files"/> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
38 <param argument="--names" type="text" label="One-word sample names" optional="True"/> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
39 </repeat> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
40 <param argument="--column" type="select" label="Columns" help="Name of columns that will be merged in the output file"> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
41 <option value="len" selected="True">Length</option> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
42 <option value="elen">Effective Length</option> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
43 <option value="tpm">Transcripts per Million</option> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
44 <option value="numreads">NumReads</option> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
45 </param> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
46 <param argument="--genes" type="boolean" truevalue="--genes" falsevalue="" checked="False" label="Genes" help="Use gene quantifications instead of transcript"/> |
|
58b9ef13fcca
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 1971e35a365a91ae36c990b374a552a46196e888
bgruening
parents:
7
diff
changeset
|
47 <param argument="--missing" type="integer" label="Missing" optional="True" help="The value of missing values"/> |
|
0
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
48 </inputs> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
49 <outputs> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
50 <data name="mergedfile" format="tabular" label="${tool.name} on ${on_string}" from_work_dir="qmergeout.tab"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
51 </outputs> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
52 <tests> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
53 <test expect_num_outputs="1"> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
54 <repeat name="quantfiles"> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
55 <param name="quants" value="quant2.sf"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
56 <param name="names" value="asdf"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
57 </repeat> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
58 <repeat name="quantfiles"> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
59 <param name="quants" value="quant1.sf"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
60 <param name="names" value="qwerty"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
61 </repeat> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
62 <output name="mergedfile" ftype="tabular"> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
63 <assert_contents> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
64 <has_text text="qwerty"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
65 <has_text text="NM_014621"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
66 <has_n_columns n="3"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
67 </assert_contents> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
68 </output> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
69 </test> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
70 </tests> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
71 <help><![CDATA[ |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
72 @salmonhelp@ |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
73 ]]></help> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
74 <expand macro="citations"/> |
|
864924030095
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/salmon commit 8f432498890670fd03a197bd3d1aa2638d1ff2b3"
bgruening
parents:
diff
changeset
|
75 </tool> |
