Skip to content

Commit

Permalink
Check if cutadapt detects mispaired reads (#5696)
Browse files Browse the repository at this point in the history
For issue #5655
  • Loading branch information
TomHarrop authored Jan 4, 2024
1 parent aa8360c commit f0294a3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions tools/cutadapt/cutadapt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,31 @@ $read_mod_options.zero_cap
<has_text text="-a 'GGGGGGG'"/>
</assert_command>
</test>
<!-- 44. Test mispaired read detection -->
<test expect_failure="true">
<param name="type" value="paired" />
<param name="input_1" ftype="fastq.gz" value="bwa-mem-fastq1.fq.gz" />
<param name="input_2" ftype="fastq.gz" value="bwa-mem-fastq_mispaired2.fq.gz" />
<section name="r1">
<repeat name="adapters">
<conditional name="adapter_source">
<param name="adapter_source_list" value="user"/>
<param name="adapter" value="AGATCGGAAGAGC"/>
</conditional>
</repeat>
</section>
<section name="r2">
<repeat name="adapters2">
<conditional name="adapter_source">
<param name="adapter_source_list" value="user"/>
<param name="adapter" value="AGATCGGAAGAGC"/>
</conditional>
</repeat>
</section>
<assert_stdout>
<has_text text="Reads are improperly paired"/>
</assert_stdout>
</test>
</tests>

<help><![CDATA[
Expand Down
2 changes: 1 addition & 1 deletion tools/cutadapt/macros.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<macros>
<token name="@TOOL_VERSION@">4.6</token>
<token name="@VERSION_SUFFIX@">0</token>
<token name="@VERSION_SUFFIX@">1</token>
<token name="@FASTQ_TYPES@">fastq.bz2,fastq.gz,fastq,fasta.bz2,fasta.gz,fasta</token>
<xml name="edam_ontology">
<edam_topics>
Expand Down
Binary file not shown.

0 comments on commit f0294a3

Please sign in to comment.