Mercurial > repos > devteam > cuffmerge
annotate cuff_macros.xml @ 4:7a9ca385b471 draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
| author | iuc |
|---|---|
| date | Tue, 16 Jun 2020 16:58:15 +0000 |
| parents | 3ed34b8bddfc |
| children | 8cedf303be28 |
| rev | line source |
|---|---|
| 0 | 1 <macros> |
| 2 <token name="@VERSION@">2.2.1</token> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
3 |
| 0 | 4 <xml name="requirements"> |
| 5 <requirements> | |
| 6 <requirement type="package" version="2.2.1">cufflinks</requirement> | |
| 7 <yield /> | |
| 8 </requirements> | |
| 9 </xml> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
10 |
| 0 | 11 <xml name="condition_inputs"> |
| 12 <!-- DEFAULT : use BAM/SAM files --> | |
| 13 <conditional name="in_type"> | |
| 14 <param name="set_in_type" type="select" label="Input data type" | |
| 15 help="CuffNorm supports either CXB (from cuffquant) or SAM/BAM input files. Mixing is not supported. Default: SAM/BAM"> | |
| 16 <option value="BAM">SAM/BAM</option> | |
| 17 <option value="CXB">Cuffquant (CXB)</option> | |
| 18 <option value="CONDITION_LIST">List of single replicate conditions</option> | |
| 19 <option value="CONDITION_REPLICATE_LIST">List of multiple replicate conditions</option> | |
| 20 </param> | |
| 21 <when value="BAM"> | |
| 22 <repeat name="conditions" title="Condition" min="2"> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
23 <param name="name" label="Condition name" type="text"/> |
| 0 | 24 <param name="samples" label="Replicates" type="data" format="sam,bam" multiple="true"/> |
| 25 </repeat> | |
| 26 </when> | |
| 27 <when value="CXB"> | |
| 28 <repeat name="conditions" title="Condition" min="2"> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
29 <param name="name" label="Condition name" type="text"/> |
| 0 | 30 <param name="samples" label="Replicates" type="data" format="cxb" multiple="true"/> |
| 31 </repeat> | |
| 32 </when> | |
| 33 <when value="CONDITION_LIST"> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
34 <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list" /> |
| 0 | 35 </when> |
| 36 <when value="CONDITION_REPLICATE_LIST"> | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
37 <param name="conditions" label="List of Conditions" type="data_collection" collection_type="list:list" /> |
| 0 | 38 </when> |
| 39 </conditional> | |
| 40 </xml> | |
| 41 <token name="@CONDITION_SAMPLES@"> | |
| 42 #if $in_type.set_in_type in ['BAM', 'CXB'] | |
| 43 #for $condition in $in_type.conditions: | |
| 44 #set samples = ','.join( [ str( $sample ) for $sample in $condition.samples ] ) | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
45 '$samples' |
| 0 | 46 #end for |
| 47 #elif $in_type.set_in_type == 'CONDITION_LIST' | |
| 48 #for $sample in $in_type.conditions: | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
49 '$sample' |
| 0 | 50 #end for |
| 51 #elif $in_type.set_in_type == 'CONDITION_REPLICATE_LIST' | |
| 52 #for $condition_list in $in_type.conditions: | |
| 53 #set samples = ','.join( [ str( $sample ) for $sample in $condition_list ] ) | |
|
2
0ed8b7f6d506
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffmerge commit eb18f691975ef9539b5ebd4f118343c8ad967a1f
devteam
parents:
1
diff
changeset
|
54 '$samples' |
| 0 | 55 #end for |
| 56 #end if | |
| 57 </token> | |
| 58 <token name="@CONDITION_LABELS@"> | |
| 59 #import re | |
| 60 #if $in_type.set_in_type in ['BAM', 'CXB'] | |
| 61 #set labels = '\'' + '\',\''.join( [ str( $condition.name ) for $condition in $in_type.conditions ] ) + '\'' | |
| 62 #elif $in_type.set_in_type in ['CONDITION_LIST', 'CONDITION_REPLICATE_LIST'] | |
| 63 #set labels = '\'' + '\',\''.join( map(lambda x: re.sub('[^\w\-_]', '_', x), $in_type.conditions.keys() ) ) + '\'' | |
| 64 #end if | |
| 65 --labels $labels | |
| 66 </token> | |
| 67 <xml name="cufflinks_gtf_inputs"> | |
| 68 <param format="gtf" name="inputs" type="data" label="GTF file(s) produced by Cufflinks" help="" multiple="true" /> | |
| 69 </xml> | |
|
4
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
70 <token name="@CUFFLINKS_LINK_GTF_INPUTS@"><![CDATA[ |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
71 ## Inputs. |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
72 #for $i, $input_file in enumerate($inputs): |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
73 ln -s '${input_file}' input_$i && |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
74 #end for |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
75 ]]></token> |
| 0 | 76 <token name="@CUFFLINKS_GTF_INPUTS@"> |
| 77 ## Inputs. | |
|
4
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
78 #for $i, $input_file in enumerate($inputs): |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
79 'input_$i' |
| 0 | 80 #end for |
| 81 </token> | |
| 82 <token name="@HAS_MULTIPLE_INPUTS@">getattr(inputs, "__len__", [].__len__)() >= 2</token> | |
|
4
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
83 |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
84 <xml name="citations"> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
85 <citations> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
86 <citation type="doi">10.1038/nbt.1621</citation> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
87 <yield/> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
88 </citations> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
89 </xml> |
|
7a9ca385b471
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/cufflinks/cuffmerge commit a0b0845a9d1b3e7ecdeacd1e606133617e3918bd"
iuc
parents:
3
diff
changeset
|
90 |
|
1
02f427c3614b
planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents:
0
diff
changeset
|
91 </macros> |
