annotate Tasmanian.xml @ 0:bc0b40dec7d2 draft

"planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
author iuc
date Wed, 20 May 2020 17:23:42 -0400
parents
children b15fbf90db53
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
1 <tool id="tasmanian_mismatch" name="Analysis of artifacts with Tasmanian" version="0.1.3" profile="18.09">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
2 <requirements>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
3 <requirement type="package" version="0.1.3">tasmanian-mismatch</requirement>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
4 <requirement type="package" version="1.9">samtools</requirement>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
5 </requirements>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
6 <command detect_errors="exit_code">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
7 <![CDATA[
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
8
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
9 #set $reference_fasta_filename = "localref.fa"
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
10
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
11 #if str( $reference_source.reference_source_selector ) == "history":
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
12 ln -s '${reference_source.ref_file}' '${reference_fasta_filename}' &&
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
13 #else:
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
14 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
15 #end if
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
16
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
17 samtools view '${bam_input}' |
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
18
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
19 #if $bed_filename
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
20 run_intersections -b '$bed_filename' |
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
21 #end if
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
22
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
23 run_tasmanian
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
24 -q '${basequality}'
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
25 -s '${softclips}'
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
26 -m '${mapquality}'
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
27 -c '${confidence}'
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
28 -r '${reference_fasta_filename}' > '${output_table}'
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
29
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
30 ]]></command>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
31 <inputs>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
32 <!-- Bam alignment file -->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
33 <param type="data" name="bam_input" label="Bam/Sam alignemnt file" format="bam" help="Specify BAM/SAM dataset. If not using a bed file, this file MUST BE SORTED"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
34 <!-- reference genome upload -->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
35 <conditional name="reference_source">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
36 <param name="reference_source_selector" type="select" label="Reference genome" help="You can select a reference genome from your history or use a built-in index (Local cache)">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
37 <option value="cached">Local cache</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
38 <option value="history">History</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
39 </param>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
40 <when value="cached">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
41 <param name="ref_file" type="select" label="Select the reference genome from the list">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
42 <options from_data_table="all_fasta">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
43 <filter type="sort_by" column="2" />
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
44 <validator type="no_options" message="No indexes are available" />
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
45 </options>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
46 </param>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
47 </when>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
48 <when value="history">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
49 <param name="ref_file" type="data" format="fasta" label="Use reference genome from history" help="You can first upload a FASTA sequence to the history" />
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
50 </when>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
51 </conditional>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
52
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
53 <!-- bed file -->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
54 <param name="bed_filename" type="data" format="bed" optional="true" label="Select a bed file" help="The bed file should contain at least: &quot;chrN&quot;, &quot;start&quot; and &quot;stop&quot;, and is tab separated."/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
55
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
56 <!-- Additional parameters -->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
57 <param name="confidence" label="Boundary" type="integer" value="20" min="0" max="100"
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
58 help="Number of bases in boundary region, from 0 to length of the read (read help below). Default=20"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
59 <param name="softclips" label="Choose an action with softclips" type="select" display="radio"
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
60 help="How sofclips whould be treated. Values include 0,1 or 2 (read the help below). Default=0">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
61 <option value="1">Never use softcliped bases</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
62 <option value="2">Always use softcliped bases</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
63 <option value="0" selected="True">Automatic desicion (Default)</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
64 </param>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
65 <param name="mapquality" label="Map quality" type="integer" min="0" max="70" value="20" help="Exclude reads with lower mapQ than this number. Default=20"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
66 <param name="basequality" label="Base quality" type="integer" min="0" max="70" value="20" help="Exclude bases with lower Base quality than this number. Default=20"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
67 <param name="keepHTML_conditional" type="select" label="keep HTML output file?">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
68 <option value="yes">Yes</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
69 <option value="no">No</option>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
70 </param>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
71 </inputs>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
72
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
73 <outputs>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
74 <data name="output_table" format="txt" />
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
75 <data format="html" name="html_file" from_work_dir="Tasmanian_artifact_report.html" label="tasmanian-mismatch results table">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
76 <filter>keepHTML_conditional == "yes"</filter>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
77 </data>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
78 </outputs>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
79
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
80 <tests>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
81 <!-- test when reference from history with bed-->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
82 <test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
83 <param name="bam_input" value="test2.bam" ftype="bam"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
84 <param name="reference_source_selector" value="history"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
85 <param name="ref_file" value="small_region.fa"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
86 <param name="bed_filename" value="test2.bed" ftype="bed"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
87 <output name="output_table" file="test2-bed.output" lines_diff="4"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
88 </test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
89 <!-- test when reference from history without bed-->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
90 <test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
91 <param name="bam_input" value="test2.bam" ftype="bam"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
92 <param name="reference_source_selector" value="history"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
93 <param name="ref_file" value="small_region.fa"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
94 <output name="output_table" file="test2-nobed.output" lines_diff="4"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
95 </test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
96 <!-- test when reference from cached-->
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
97 <test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
98 <param name="bam_input" value="test2.bam" ftype="bam" dbkey="hg38"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
99 <param name="reference_source_selector" value="cached"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
100 <param name="ref_file" value="hg38"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
101 <output name="output_table" file="test2-nobed.output" lines_diff="4"/>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
102 </test>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
103 </tests>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
104
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
105 <help>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
106 <![CDATA[
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
107
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
108 **What it does**
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
109
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
110 This tool counts the number/proportion of mismatches per position along the read,
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
111 for each read (see figure below).
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
112
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
113 .. image:: ${static_path}/images/snapshot_good.jpg
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
114 :height: 350
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
115 :width: 650
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
116
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
117 -----
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
118
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
119 **What is special**
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
120
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
121 By providing a bed file, tasmanian-mismatch will count mismatches from all regions depicted in the figure below,
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
122 and will report them separately. Also, a parameter defined as *"confidence"* allows including reads with >=
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
123 bases in the boundary region in a separate group. This is useful when the bed refers to repeat regions. Since these
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
124 regions might not have been correctly placed in the assembly or are not the same in different individuals, we can
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
125 include this *confidence* repeat regions where we have high confidence on the reference genome to which we mapped the reads.
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
126
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
127 .. image:: ${static_path}/images/intersections_tasmanian.jpg
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
128 :height: 150
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
129 :width: 650
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
130
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
131 Softclips are critical in FFPE (Formalin-fixed paraffin-embedded) experiments as mismatches tend to accumulate at the ends of the reads. Most often, softclips
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
132 are all accepted during the analysis and many real mismatches are indirectly excluded from the analysis. Hence, this tool
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
133 provides different ways to deal with this:
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
134
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
135 The *softclips* field allows for 3 different ways at treating softclips:
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
136 0) Exclude these region if there is less than 2/3 identity with the reference genome
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
137 1) Exclude all softclipped bases
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
138 2) Include all softclipped bases
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
139
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
140 .. class:: warningmark
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
141
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
142 BAM/SAM file must be **sorted** if not using a bed file.
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
143
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
144 ]]>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
145 </help>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
146 <citations>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
147 <citation type="bibtex">
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
148 @misc{githubtasmanian,
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
149 author = {Langhorst B., Others, Erijman A.},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
150 year = {2020},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
151 title = {TBD},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
152 publisher = {GitHub},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
153 journal = {GitHub repository},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
154 url = {https://github.com/nebiolabs/tasmanian-mismatch},
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
155 }
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
156 </citation>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
157 </citations>
bc0b40dec7d2 "planemo upload for repository https://github.com/nebiolabs/tasmanian-mismatch commit a64a371ca1ed117c9bd8af743d847128fbce461c"
iuc
parents:
diff changeset
158 </tool>