Mercurial > repos > artbio > artbio_bam_cleaning
annotate macro.xml @ 2:c973ff00c785 draft
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit c761c76bb178d141766850b2b35de4c70a844231"
author | artbio |
---|---|
date | Sun, 14 Feb 2021 22:45:31 +0000 |
parents | 65d6d2b554b3 |
children |
rev | line source |
---|---|
0
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
1 <macros> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
2 <token name="@pipefail@"><![CDATA[set -o | grep -q pipefail && set -o pipefail;]]></token> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
3 |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
4 <token name="@set_fasta_index@"><![CDATA[ |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
5 #if str( $reference_source.reference_source_selector ) == "history": |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
6 ln -s '${reference_source.ref_file}' reference.fa && |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
7 samtools faidx 'reference.fa' 2>&1 || echo "Error running samtools faidx for lumpy_smoove" >&2 && |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
8 #else: |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
9 ln -s '${reference_source.index.fields.path}' reference.fa && |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
10 ln -s '${reference_source.index.fields.path}.fai' reference.fa.fai && |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
11 #end if |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
12 ]]></token> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
13 |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
14 <macro name="reference_source_conditional"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
15 <conditional name="reference_source"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
16 <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
17 <option value="cached">Use a built-in genome index</option> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
18 <option value="history">Use a genome from history and build index</option> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
19 </param> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
20 <when value="cached"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
21 <param name="index" type="select" label="Using built-in genome" help="Select genome from the list"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
22 <options from_data_table="fasta_indexes"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
23 <filter type="sort_by" column="2" /> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
24 <validator type="no_options" message="No indexes are available" /> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
25 </options> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
26 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
27 </param> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
28 </when> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
29 <when value="history"> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
30 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
31 help="You can upload a FASTA sequence to the history and use it as reference" /> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
32 </when> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
33 </conditional> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
34 </macro> |
65d6d2b554b3
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/artbio_bam_cleaning commit adfad19ff505ac7baa3688997bfa9f64243aaace"
artbio
parents:
diff
changeset
|
35 </macros> |