comparison alleyoop.xml @ 7:5a26589d95ad draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/slamdunk commit b5aa6e762b55a9793dc7514efcda05eb2ccd529c"
author iuc
date Sat, 25 Sep 2021 18:21:39 +0000
parents 141f65f7c7c8
children
comparison
equal deleted inserted replaced
6:141f65f7c7c8 7:5a26589d95ad
1 <tool id="alleyoop" name="Alleyoop" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@"> 1 <tool id="alleyoop" name="Alleyoop" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>- post-processing and QC of Slamdunk analyses</description> 2 <description>- post-processing and QC of Slamdunk analyses</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 <version_command>alleyoop --version</version_command> 7 <version_command>alleyoop --version</version_command>
8 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 #import re 9 #import re
10 10
11 #if $reference_source.reference_source_selector == 'history': 11 #if $reference_source.reference_source_selector == 'history':
47 47
48 alleyoop summary -o ./summary.txt -t ./count ./filter/*bam && 48 alleyoop summary -o ./summary.txt -t ./count ./filter/*bam &&
49 49
50 alleyoop rates -o ./stats -r reference.fa -mq $mq ./filter/*bam && 50 alleyoop rates -o ./stats -r reference.fa -mq $mq ./filter/*bam &&
51 51
52 alleyoop utrrates -o ./stats -r reference.fa -b $Reference -t \${GALAXY_SLOTS:-1} -l $l -mq $mq ./filter/*bam && 52 alleyoop utrrates -o ./stats -r reference.fa -b $reference -t \${GALAXY_SLOTS:-1} -l $l -mq $mq ./filter/*bam &&
53 53
54 alleyoop tcperreadpos -o ./stats -r reference.fa -s ./snp -t \${GALAXY_SLOTS:-1} -l $l -mq $mq ./filter/*bam && 54 alleyoop tcperreadpos -o ./stats -r reference.fa -s ./snp -t \${GALAXY_SLOTS:-1} -l $l -mq $mq ./filter/*bam &&
55 55
56 alleyoop tcperutrpos -o ./stats -r reference.fa -s ./snp -t \${GALAXY_SLOTS:-1} -l $l -b $Reference -mq $mq ./filter/*bam 56 alleyoop tcperutrpos -o ./stats -r reference.fa -s ./snp -t \${GALAXY_SLOTS:-1} -l $l -b $reference -mq $mq ./filter/*bam
57 57
58 #if $bams: 58 #if $bams:
59 && alleyoop read-separator -o ./splitbams -s ./snp -r reference.fa ./filter/*bam 59 && alleyoop read-separator -o ./splitbams -s ./snp -r reference.fa ./filter/*bam
60 #end if 60 #end if
61 61
62 ]]></command> 62 ]]></command>
63 <inputs> 63 <inputs>
64 <expand macro="reference_files" /> 64 <expand macro="reference_files"/>
65 <param name="reads" type="data" format="sam,bam" multiple="True" label="Slamdunk BAM files" /> 65 <param name="reads" type="data" format="sam,bam" multiple="True" label="Slamdunk BAM files"/>
66 <param name="count_tsvs" type="data" format="tabular" multiple="True" label="Slamdunk Count TSV files" /> 66 <param name="count_tsvs" type="data" format="tabular" multiple="True" label="Slamdunk Count TSV files"/>
67 <param name="variants" type="data" format="vcf" multiple="True" label="Slamdunk VCF files" /> 67 <param name="variants" type="data" format="vcf" multiple="True" label="Slamdunk VCF files"/>
68 <param argument="-mq" type="integer" label="Minimum base quality" 68 <param name="mq" argument="--min-basequality" type="integer" label="Minimum base quality"
69 value="27" min="0" 69 value="27" min="0"
70 help="Minimum base quality for T>C conversions (default: 27)." /> 70 help="Minimum base quality for T>C conversions (default: 27)."/>
71 <param argument="-l" type="integer" label="Read length" 71 <param name="l" argument="--max-read-length" type="integer" label="Read length"
72 value="50" min="50" help="Maximum read length (before trimming)." /> 72 value="50" min="50" help="Maximum read length (before trimming)."/>
73 <param name="bams" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output T>C separated BAM files?" help="If this option is set to Yes, the Alleyoop read-separator module will be run to output BAM files of separated T>C reads from non T>C reads. Default: No"/> 73 <param name="bams" type="boolean" truevalue="True" falsevalue="False" checked="False" label="Output T>C separated BAM files?" help="If this option is set to Yes, the Alleyoop read-separator module will be run to output BAM files of separated T>C reads from non T>C reads. Default: No"/>
74 </inputs> 74 </inputs>
75 <outputs> 75 <outputs>
76 <collection name="outputSummary" type="list" label="${tool.name} on ${on_string}: Summary tables"> 76 <collection name="outputSummary" type="list" label="${tool.name} on ${on_string}: Summary tables">
77 <discover_datasets pattern="(?P&lt;name&gt;.+)\.txt$" format="tabular" directory="." visible="false" /> 77 <discover_datasets pattern="(?P&lt;name&gt;.+)\.txt$" format="tabular" directory="." visible="false"/>
78 </collection> 78 </collection>
79 <collection name="outputStats" type="list" label="${tool.name} on ${on_string}: Stats tables"> 79 <collection name="outputStats" type="list" label="${tool.name} on ${on_string}: Stats tables">
80 <discover_datasets pattern="(?P&lt;name&gt;.+)\.csv$" format="tabular" directory="./stats" visible="false" /> 80 <discover_datasets pattern="(?P&lt;name&gt;.+)\.csv$" format="tabular" directory="./stats" visible="false"/>
81 </collection> 81 </collection>
82 <collection name="outputTCReads" type="list" label="${tool.name} on ${on_string}: TC Reads"> 82 <collection name="outputTCReads" type="list" label="${tool.name} on ${on_string}: TC Reads">
83 <discover_datasets pattern="(?P&lt;name&gt;.+)_TCReads.bam$" format="bam" directory="./splitbams" visible="false" /> 83 <discover_datasets pattern="(?P&lt;name&gt;.+)_TCReads.bam$" format="bam" directory="./splitbams" visible="false"/>
84 <filter>bams</filter> 84 <filter>bams</filter>
85 </collection> 85 </collection>
86 <collection name="outputbkgdReads" type="list" label="${tool.name} on ${on_string}: Background Reads"> 86 <collection name="outputbkgdReads" type="list" label="${tool.name} on ${on_string}: Background Reads">
87 <discover_datasets pattern="(?P&lt;name&gt;.+)_backgroundReads.bam$" format="bam" directory="./splitbams" visible="false" /> 87 <discover_datasets pattern="(?P&lt;name&gt;.+)_backgroundReads.bam$" format="bam" directory="./splitbams" visible="false"/>
88 <filter>bams</filter> 88 <filter>bams</filter>
89 </collection> 89 </collection>
90 </outputs> 90 </outputs>
91 <tests> 91 <tests>
92 <!-- Ensure default output works --> 92 <!-- Ensure default output works -->
93 <test expect_num_outputs="2"> 93 <test expect_num_outputs="2">
94 <param name="reference_source_selector" value="history" /> 94 <param name="reference_source_selector" value="history"/>
95 <param name="ref_file" ftype="fasta" value="ref.fa" /> 95 <param name="ref_file" ftype="fasta" value="ref.fa"/>
96 <param name="Reference" ftype="bed" value="actb.bed" /> 96 <param name="reference" ftype="bed" value="actb.bed"/>
97 <param name="reads" ftype="bam" value="reads1.bam,reads2.bam" /> 97 <param name="reads" ftype="bam" value="reads1.bam,reads2.bam"/>
98 <param name="count_tsvs" ftype="tabular" value="reads1_tcount.tsv,reads2_tcount.tsv" /> 98 <param name="count_tsvs" ftype="tabular" value="reads1_tcount.tsv,reads2_tcount.tsv"/>
99 <param name="variants" ftype="vcf" value="reads1_snp.vcf,reads2_snp.vcf" /> 99 <param name="variants" ftype="vcf" value="reads1_snp.vcf,reads2_snp.vcf"/>
100 <param name="l" value="100" /> 100 <param name="l" value="100"/>
101 <param name="mq" value="27" /> 101 <param name="mq" value="27"/>
102 <output_collection name="outputSummary" count="2"> 102 <output_collection name="outputSummary" count="2">
103 <element name="summary" ftype="tabular" file="summary.txt" /> 103 <element name="summary" ftype="tabular" file="summary.txt" lines_diff="2"/>
104 </output_collection> 104 </output_collection>
105 <output_collection name="outputStats" count="8"> 105 <output_collection name="outputStats" count="8">
106 <element name="reads1_overallrates" ftype="tabular" file="reads1_overallrates.csv" /> 106 <element name="reads1_overallrates" ftype="tabular" file="reads1_overallrates.csv" lines_diff="2"/>
107 </output_collection> 107 </output_collection>
108 </test> 108 </test>
109 <!-- Ensure BAM output works --> 109 <!-- Ensure BAM output works -->
110 <test expect_num_outputs="4"> 110 <test expect_num_outputs="4">
111 <param name="reference_source_selector" value="history" /> 111 <param name="reference_source_selector" value="history"/>
112 <param name="ref_file" ftype="fasta" value="ref.fa" /> 112 <param name="ref_file" ftype="fasta" value="ref.fa"/>
113 <param name="Reference" ftype="bed" value="actb.bed" /> 113 <param name="reference" ftype="bed" value="actb.bed"/>
114 <param name="reads" ftype="bam" value="reads1.bam,reads2.bam" /> 114 <param name="reads" ftype="bam" value="reads1.bam,reads2.bam"/>
115 <param name="count_tsvs" ftype="tabular" value="reads1_tcount.tsv,reads2_tcount.tsv" /> 115 <param name="count_tsvs" ftype="tabular" value="reads1_tcount.tsv,reads2_tcount.tsv"/>
116 <param name="variants" ftype="vcf" value="reads1_snp.vcf,reads2_snp.vcf" /> 116 <param name="variants" ftype="vcf" value="reads1_snp.vcf,reads2_snp.vcf"/>
117 <param name="l" value="100" /> 117 <param name="l" value="100"/>
118 <param name="mq" value="27" /> 118 <param name="mq" value="27"/>
119 <param name="bams" value="True" /> 119 <param name="bams" value="True"/>
120 <output_collection name="outputTCReads" count="2"> 120 <output_collection name="outputTCReads" count="2">
121 <element name="reads1" ftype="bam" file="reads1_TCReads.bam" lines_diff="8"/> 121 <element name="reads1" ftype="bam" file="reads1_TCReads.bam" lines_diff="8"/>
122 </output_collection> 122 </output_collection>
123 <output_collection name="outputbkgdReads" count="2"> 123 <output_collection name="outputbkgdReads" count="2">
124 <element name="reads1" ftype="bam" file="reads1_backgroundReads.bam" lines_diff="8"/><!-- allow for diff in RG and PG lines --> 124 <element name="reads1" ftype="bam" file="reads1_backgroundReads.bam" lines_diff="8"/><!-- allow for diff in RG and PG lines -->
161 .. _`Alleyoop documentation`: http://t-neumann.github.io/slamdunk/docs.html#document-Alleyoop 161 .. _`Alleyoop documentation`: http://t-neumann.github.io/slamdunk/docs.html#document-Alleyoop
162 .. _here: http://t-neumann.github.io/slamdunk/multiqc_example/multiqc_report.html 162 .. _here: http://t-neumann.github.io/slamdunk/multiqc_example/multiqc_report.html
163 163
164 ]]></help> 164 ]]></help>
165 <citations> 165 <citations>
166 <expand macro="citations" /> 166 <expand macro="citations"/>
167 </citations> 167 </citations>
168 </tool> 168 </tool>