Mercurial > repos > iuc > ivar_removereads
comparison ivar_removereads.xml @ 11:7f1cfa4c0e32 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit a14db40361bcb2ee608bccd9222e1654aaea3324
author | iuc |
---|---|
date | Wed, 11 Jan 2023 09:56:04 +0000 |
parents | ee29337f905c |
children | 8c05afb547fa |
comparison
equal
deleted
inserted
replaced
10:ee29337f905c | 11:7f1cfa4c0e32 |
---|---|
1 <tool id="ivar_removereads" name="ivar removereads" version="@VERSION@+galaxy3" profile="21.01"> | 1 <tool id="ivar_removereads" name="ivar removereads" version="@TOOL_VERSION@+galaxy4" profile="@PROFILE@"> |
2 <description>Remove reads from trimmed BAM file</description> | 2 <description>Remove reads from trimmed BAM file</description> |
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"> | 6 <expand macro="requirements"/> |
7 <requirement type="package" version="3.8.1">python</requirement> | 7 <expand macro="version_command"/> |
8 </expand> | |
9 <expand macro="version_command" /> | |
10 <command detect_errors="exit_code"><![CDATA[ | 8 <command detect_errors="exit_code"><![CDATA[ |
11 cp '$input_bed' binding_sites.bed && | 9 cp '$input_bed' binding_sites.bed && |
12 python '$__tool_directory__/sanitize_bed.py' binding_sites.bed && | 10 python '$__tool_directory__/sanitize_bed.py' binding_sites.bed && |
13 #if $amplicons.computed == "yes" | 11 #if $amplicons.computed == "yes" |
14 python '$__tool_directory__/write_amplicon_info_file.py' binding_sites.bed amplicon_info.tsv && | 12 python '$__tool_directory__/write_amplicon_info_file.py' binding_sites.bed amplicon_info.tsv && |
29 -t masked_primers.txt | 27 -t masked_primers.txt |
30 ]]></command> | 28 ]]></command> |
31 <inputs> | 29 <inputs> |
32 <param name="input_bam" argument="-i" type="data" format="bam" | 30 <param name="input_bam" argument="-i" type="data" format="bam" |
33 label="Bam input" | 31 label="Bam input" |
34 help="BAM dataset, preprocessed with ivar trim, to remove reads from" /> | 32 help="BAM dataset, preprocessed with ivar trim, to remove reads from"/> |
35 <param name="variants_tsv" type="data" format="tabular" | 33 <param name="variants_tsv" type="data" format="tabular" |
36 label="Variants input" | 34 label="Variants input" |
37 help="This dataset will be scanned for variants that affect primer binding sites and needs to be in tabular format with affected chromosome names in the first, and positions in the second column. If there is a header line, the name of the second column should be POS." /> | 35 help="This dataset will be scanned for variants that affect primer binding sites and needs to be in tabular format with affected chromosome names in the first, and positions in the second column. If there is a header line, the name of the second column should be POS."/> |
38 <param name="input_bed" argument="-b" type="data" format="bed" label="Primer binding sites information" | 36 <param name="input_bed" argument="-b" type="data" format="bed" label="Primer binding sites information" |
39 help="The same six-column BED dataset that served as input to ivar trim"/> | 37 help="The same six-column BED dataset that served as input to ivar trim"/> |
40 <conditional name="amplicons"> | 38 <conditional name="amplicons"> |
41 <param name="computed" type="select" label="Compute amplicon info from BED file" help="For suitable primer binding site datasets amplicon info can be computed directly (see tool help below). For others you will need to provide an extra amplicon info dataset."> | 39 <param name="computed" type="select" label="Compute amplicon info from BED file" help="For suitable primer binding site datasets amplicon info can be computed directly (see tool help below). For others you will need to provide an extra amplicon info dataset."> |
42 <option value="yes" selected="true">Yes</option> | 40 <option value="yes" selected="true">Yes</option> |
57 <test> | 55 <test> |
58 <param name="input_bam" value="zika/Z52_a.trimmed.sorted.bam"/> | 56 <param name="input_bam" value="zika/Z52_a.trimmed.sorted.bam"/> |
59 <param name="variants_tsv" value="zika/primers_Z52_consensus.tsv"/> | 57 <param name="variants_tsv" value="zika/primers_Z52_consensus.tsv"/> |
60 <param name="input_bed" value="zika/db/zika_primers_consensus.bed"/> | 58 <param name="input_bed" value="zika/db/zika_primers_consensus.bed"/> |
61 <conditional name="amplicons"> | 59 <conditional name="amplicons"> |
62 <param name="computed" value="no" /> | 60 <param name="computed" value="no"/> |
63 <param name="amplicon_info" value="zika/db/pair_information.tsv"/> | 61 <param name="amplicon_info" value="zika/db/pair_information.tsv"/> |
64 </conditional> | 62 </conditional> |
65 <output name="output_bam" file="zika/Z52_a.masked.bam" compare="sim_size" delta="100000" /> | 63 <output name="output_bam" ftype="bam"> |
64 <assert_contents> | |
65 <has_size value="3185672" delta="1000"/> | |
66 </assert_contents> | |
67 </output> | |
66 </test> | 68 </test> |
67 <test> | 69 <test> |
68 <param name="input_bam" value="zika/Z52_a.trimmed.sorted.bam"/> | 70 <param name="input_bam" value="zika/Z52_a.trimmed.sorted.bam"/> |
69 <param name="variants_tsv" value="zika/primers_Z52_consensus.tsv"/> | 71 <param name="variants_tsv" value="zika/primers_Z52_consensus.tsv"/> |
70 <param name="input_bed" value="zika/db/zika_primers_consensus.bed"/> | 72 <param name="input_bed" value="zika/db/zika_primers_consensus.bed"/> |
71 <conditional name="amplicons"> | 73 <conditional name="amplicons"> |
72 <param name="computed" value="yes" /> | 74 <param name="computed" value="yes"/> |
73 </conditional> | 75 </conditional> |
74 <output name="output_bam" file="zika/Z52_a.masked.bam" compare="sim_size" delta="100000" /> | 76 <output name="output_bam" ftype="bam"> |
77 <assert_contents> | |
78 <has_size value="3185672" delta="1000"/> | |
79 </assert_contents> | |
80 </output> | |
75 </test> | 81 </test> |
76 </tests> | 82 </tests> |
77 <help><![CDATA[ | 83 <help><![CDATA[ |
78 This Galaxy tool combines the functionality of ``ivar getmasked`` and | 84 This Galaxy tool combines the functionality of ``ivar getmasked`` and |
79 ``ivar removereads``. No separate ``ivar getmasked`` step is required when | 85 ``ivar removereads``. No separate ``ivar getmasked`` step is required when |