comparison cutesv.xml @ 0:c0f8fe52948e draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/cutesv commit abfd3162e28a388d1dedbe55cb8b3567fa79c178"
author iuc
date Thu, 24 Sep 2020 15:11:57 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c0f8fe52948e
1 <tool id="cutesv" name="cuteSV" version="@WRAPPER_VERSION@">
2 <description>detects long-read-based SVs</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <requirements>
7 <requirement type="package" version="@TOOL_VERSION@">cutesv</requirement>
8 <requirement type="package" version="1.10">samtools</requirement>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[
11 ln -s '$input_sample_file' ./sample.bam &&
12 ln -s '$input_sample_file.metadata.bam_index' ./sample.bam.bai &&
13
14 #if str($reference_source.ref_selector) == 'history':
15 ln -s '$reference_source.ref' ./genome.fa &&
16 samtools faidx ./genome.fa 2>&1 || echo 'Error running samtools faidx for indexing fasta reference for cuteSV' >&2 &&
17 #else:
18 ln -s '$reference_source.ref.fields.path' ./genome.fa &&
19 ln -s '${reference_source.ref.fields.path}.fai' ./genome.fa.fai &&
20 #end if
21
22 cuteSV ./sample.bam ./genome.fa ./output.vcf ./
23 --threads \${GALAXY_SLOTS:-4}
24 --batches '$sel_method.adv_settings.batches'
25 --sample '$sample'
26 #if $sel_method.adv_settings.report_readid:
27 --report_readid
28 #end if
29 --max_split_parts '$sel_method.adv_settings.max_split_parts'
30 --min_mapq '$sel_method.adv_settings.min_mapq'
31 --min_read_len '$sel_method.adv_settings.min_read_len'
32 --merge_del_threshold '$sel_method.adv_settings.merge_del_threshold'
33 --merge_ins_threshold '$sel_method.adv_settings.merge_ins_threshold'
34 --min_support '$sel_method.adv_settings.min_support'
35 --min_size '$sel_method.adv_settings.min_size'
36 --max_size '$sel_method.adv_settings.max_size'
37 #if $sel_method.adv_settings.genotyping.genotype:
38 --genotype
39 #end if
40 --gt_round '$sel_method.adv_settings.genotyping.gt_round'
41 --max_cluster_bias_INS '$sel_method.adv_settings.seq_method.max_cluster_bias_INS'
42 --diff_ratio_merging_INS '$sel_method.adv_settings.seq_method.diff_ratio_merging_INS'
43 --max_cluster_bias_DEL '$sel_method.adv_settings.seq_method.max_cluster_bias_DEL'
44 --diff_ratio_merging_DEL '$sel_method.adv_settings.seq_method.diff_ratio_merging_DEL'
45 --max_cluster_bias_INV '$sel_method.adv_settings.max_cluster_bias_INV'
46 --max_cluster_bias_DUP '$sel_method.adv_settings.max_cluster_bias_DUP'
47 --max_cluster_bias_TRA '$sel_method.adv_settings.max_cluster_bias_TRA'
48 --diff_ratio_filtering_TRA '$sel_method.adv_settings.diff_ratio_filtering_TRA'
49 ]]></command>
50 <inputs>
51 <param name="input_sample_file" type="data" format="bam" label="Sample file" help="Sample file in .BAM format." />
52 <expand macro="reference_interface" />
53 <param name="sample" type="text" value="Sample" label="Sample name/id" help="">
54 <validator type="length" min="1" message="Please enter a sample name/id"/>
55 <validator type="regex" message="Please enter a sample name/id">.*[^ ].*</validator>
56 </param>
57 <conditional name="sel_method">
58 <param name="meth_selector" type="select" label="Select the sequencing method of the input file" help="">
59 <option value="pb_clr" selected="True">PacBio continuous long reads</option>
60 <option value="pb_ccs">PacBio circular consensus sequencing (HiFi)</option>
61 <option value="pb_ont">ONT</option>
62 <option value="other">other method</option>
63 </param>
64 <when value="pb_clr">
65 <section name="adv_settings" title="Advanced settings" expanded="false">
66 <expand macro="adv_shared_1" />
67 <expand macro="adv_pb_clr" />
68 <expand macro="adv_shared_2" />
69 </section>
70 </when>
71 <when value="pb_ccs">
72 <section name="adv_settings" title="Advanced settings" expanded="false">
73 <expand macro="adv_shared_1" />
74 <expand macro="adv_pb_ccs" />
75 <expand macro="adv_shared_2" />
76 </section>
77 </when>
78 <when value="pb_ont">
79 <section name="adv_settings" title="Advanced settings" expanded="false">
80 <expand macro="adv_shared_1" />
81 <expand macro="adv_ont" />
82 <expand macro="adv_shared_2" />
83 </section>
84 </when>
85 <when value="other">
86 <section name="adv_settings" title="Advanced settings" expanded="true">
87 <expand macro="adv_shared_1" />
88 <expand macro="adv_other" />
89 <expand macro="adv_shared_2" />
90 </section>
91 </when>
92 </conditional>
93 </inputs>
94 <outputs>
95 <data name="out_sample" format="vcf" label="${tool.name} on ${on_string}: output" from_work_dir="output.vcf" />
96 </outputs>
97 <tests>
98 <test expect_num_outputs="1">
99 <conditional name="reference_source">
100 <param name="ref_selector" value="history"/>
101 <param name="ref" ftype="fasta" value="genome.fasta" />
102 </conditional>
103 <param name="seq_method" value="pb_ccs" />
104 <param name="input_sample_file" ftype="bam" value="sample.bam" />
105 <output name="out_sample">
106 <assert_contents>
107 <has_text text="##fileformat=VCFv4.2"/>
108 <has_text text="##source=cuteSV-1.0.8"/>
109 </assert_contents>
110 </output>
111 </test>
112 <test expect_num_outputs="1">
113 <conditional name="reference_source">
114 <param name="ref_selector" value="cached"/>
115 <param name="ref" value="test_buildid"/>
116 </conditional>
117 <param name="seq_method" value="pb_ccs" />
118 <param name="input_sample_file" ftype="bam" value="sample.bam" />
119 <output name="out_sample">
120 <assert_contents>
121 <has_text text="##fileformat=VCFv4.2"/>
122 <has_text text="##source=cuteSV-1.0.8"/>
123 </assert_contents>
124 </output>
125 </test>
126 </tests>
127 <help><![CDATA[
128 cuteSV
129 =============
130
131 Long-read sequencing enables the comprehensive discovery of structural variations (SVs). However, it is still non-trivial to achieve high sensitivity and performance simultaneously due to the complex SV characteristics implied by noisy long reads. Therefore, we propose cuteSV, a sensitive, fast and scalable long-read-based SV detection approach. cuteSV uses tailored methods to collect the signatures of various types of SVs and employs a clustering-and-refinement method to analyze the signatures to implement sensitive SV detection. Benchmarks on real Pacific Biosciences (PacBio) and Oxford Nanopore Technology (ONT) datasets demonstrate that cuteSV has better yields and scalability than state-of-the-art tools.
132
133 For more information see the cuteSV documentation_.
134
135 .. _documentation: https://github.com/tjiangHIT/cuteSV
136
137 ]]></help>
138 <citations>
139 <citation type="doi">10.1186/s13059-020-02107-y</citation>
140 </citations>
141 </tool>