Skip to content

Commit 04870df

Browse files
Teloscope v0.1.3 (#7508)
* Update to Teloscope v0.1.3 * Update Teloscope wrapper for v0.1.3 * Add tests for --edit-distance parameter
1 parent dc58f57 commit 04870df

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

tools/teloscope/macros.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<requirement type="package" version="@TOOL_VERSION@">teloscope</requirement>
55
</requirements>
66
</xml>
7-
<token name="@TOOL_VERSION@">0.1.2</token>
7+
<token name="@TOOL_VERSION@">0.1.3</token>
88
<token name="@VERSION_SUFFIX@">0</token>
99
<token name="@PROFILE@">23.02</token>
1010
<xml name="citations">

tools/teloscope/teloscope.xml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
--max-block-distance '$max_block_distance'
2121
--min-block-length '$min_block_length'
2222
--min-block-density '$min_block_density'
23+
--edit-distance '$edit_distance'
2324
2425
$out_win_repeats
2526
$out_gc
@@ -57,6 +58,7 @@
5758
<param argument="--max-block-distance" type="integer" min="0" value="200" label="Maximum block distance for merging"/>
5859
<param argument="--min-block-length" type="integer" min="0" value="500" label="Minimum block length"/>
5960
<param argument="--min-block-density" type="float" min="0" max="1" value="0.5" label="Minimum block density (0–1)"/>
61+
<param argument="--edit-distance" type="integer" min="0" max="2" value="0" label="Edit distance for pattern matching (0–2)"/>
6062

6163
<param argument="--out-win-repeats" type="boolean" truevalue="--out-win-repeats" falsevalue="" checked="false" label="Window repeat counts"/>
6264
<param argument="--out-gc" type="boolean" truevalue="--out-gc" falsevalue="" checked="false" label="Window GC"/>
@@ -161,6 +163,48 @@
161163
</assert_contents>
162164
</output>
163165
</test>
166+
167+
<!-- 3) Edit distance 1: more variants detected -->
168+
<test expect_num_outputs="2">
169+
<param name="input_sequence" value="bTaeGut7_chr33_mat.fa.gz" ftype="fasta.gz"/>
170+
<param name="canonical" value="TTAGGG"/>
171+
<param name="patterns" value="TTAGGG,CCCTAA"/>
172+
<param name="edit_distance" value="1"/>
173+
<output name="terminal_telomeres">
174+
<assert_contents>
175+
<!-- p-arm telomere with extended start due to edit distance -->
176+
<has_text text="chr33_mat&#9;442&#9;14354&#9;13912&#9;p&#9;"/>
177+
<!-- q-arm telomere -->
178+
<has_text text="chr33_mat&#9;4219967&#9;4246337&#9;26370&#9;q&#9;"/>
179+
</assert_contents>
180+
</output>
181+
<output name="telo_report">
182+
<assert_contents>
183+
<has_line_matching expression="\+\+\+ Path Summary Report \+\+\+"/>
184+
</assert_contents>
185+
</output>
186+
</test>
187+
188+
<!-- 4) Edit distance 2: maximum variants detected -->
189+
<test expect_num_outputs="2">
190+
<param name="input_sequence" value="bTaeGut7_chr33_mat.fa.gz" ftype="fasta.gz"/>
191+
<param name="canonical" value="TTAGGG"/>
192+
<param name="patterns" value="TTAGGG,CCCTAA"/>
193+
<param name="edit_distance" value="2"/>
194+
<output name="terminal_telomeres">
195+
<assert_contents>
196+
<!-- p-arm telomere extends to position 1 with edit distance 2 -->
197+
<has_text text="chr33_mat&#9;1&#9;14354&#9;14353&#9;p&#9;"/>
198+
<!-- q-arm telomere -->
199+
<has_text text="chr33_mat&#9;4219967&#9;4246337&#9;26370&#9;q&#9;"/>
200+
</assert_contents>
201+
</output>
202+
<output name="telo_report">
203+
<assert_contents>
204+
<has_line_matching expression="\+\+\+ Path Summary Report \+\+\+"/>
205+
</assert_contents>
206+
</output>
207+
</test>
164208
</tests>
165209

166210
<help><![CDATA[
@@ -187,8 +231,9 @@
187231
Key parameters:
188232
- -c / --canonical: Canonical repeat (default TTAGGG). This is the vertebrate telomeric motif found at chromosome ends that binds to shelterin complex to form a telomere.
189233
- -p / --patterns: Variant patterns (comma-separated). These are additional telomeric repeat motifs to search for, besides the canonical repeat, it includes other variants that can be part of telomeres.
190-
- -w / -s: window size / step (defaults 1000/500)
234+
- -w / -s: window size / step (defaults 1000/500).
191235
- -u / --ultra-fast: terminal scan only (default true); disabled automatically when -g/-e/-r/-m/-i are used.
236+
- -x / --edit-distance: Edit Hamming distance for pattern matching (0–2). Useful for identifying degenerate telomeric repeats (default 0).
192237
]]></help>
193238

194239
<expand macro="citations"/>

0 commit comments

Comments
 (0)