Skip to content

Commit

Permalink
Updated Minimap2 tool, debugged linting errors (#5889)
Browse files Browse the repository at this point in the history
* Updating tools/minimap2 from version 2.26 to 2.27

* Resolved linting error and updated test data

---------

Co-authored-by: planemo-autoupdate <[email protected]>
  • Loading branch information
SaimMomin12 and planemo-autoupdate authored Mar 18, 2024
1 parent ae898f7 commit 20bce2a
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions tools/minimap2/macros.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<macros>
<token name="@TOOL_VERSION@">2.26</token>
<token name="@TOOL_VERSION@">2.27</token>
<token name="@VERSION_SUFFIX@">0</token>
<xml name="edam_ontology">
<edam_topics>
Expand All @@ -12,7 +12,7 @@
<xml name="requirements">
<requirements>
<requirement type="package" version="@TOOL_VERSION@">minimap2</requirement>
<requirement type="package" version="1.17">samtools</requirement>
<requirement type="package" version="1.19.2">samtools</requirement>
</requirements>
</xml>
<xml name="pe_anaylsis_fixed_selector">
Expand Down
34 changes: 17 additions & 17 deletions tools/minimap2/minimap2.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<tool id="minimap2" name="Map with minimap2" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01">
<description>A fast pairwise aligner for genomic and spliced nucleotide sequences</description>
<xrefs>
<xref type="bio.tools">minimap2</xref>
</xrefs>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="edam_ontology"/>
<xrefs>
<xref type="bio.tools">minimap2</xref>
</xrefs>
<expand macro="requirements"/>
<stdio>
<exit_code range="1:" level="fatal" />
Expand Down Expand Up @@ -237,7 +237,7 @@
</when>
</conditional>
<section name="indexing_options" title="Indexing options">
<param argument="-H" name="H" type="boolean" optional="true" truevalue="-H" falsevalue="" label="Use homopolymer-compressed k-mer ?"/>
<param argument="-H" type="boolean" optional="true" truevalue="-H" falsevalue="" label="Use homopolymer-compressed k-mer ?"/>
<param argument="-k" type="integer" min="4" max="28" optional="true" label="K-mer size" help=""/>
<param argument="-w" type="integer" min="1" optional="true" label="Minimizer window size" help=""/>
<param argument="-I" type="integer" min="1" optional="true" label="Split index for every N input gigabases" help=""/>
Expand Down Expand Up @@ -397,7 +397,7 @@
</data>
</outputs>
<tests>
<test>
<test expect_num_outputs="1">
<!-- test single input -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -406,7 +406,7 @@
<param name="analysis_type_selector" value="sr"/>
<output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test cram output -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -416,7 +416,7 @@
<param name="output_format" value="CRAM"/>
<output name="alignment_output" ftype="cram" file="minimap2-test1-fasta.cram" compare="sim_size" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test paired input -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -425,7 +425,7 @@
<param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/>
<output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test paired input with one pair compressed -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -434,7 +434,7 @@
<param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/>
<output name="alignment_output" ftype="bam" file="minimap2-test1.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test collection input -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -447,7 +447,7 @@
</param>
<output name="alignment_output" ftype="bam" file="minimap2-test2.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test data table reference -->
<param name="reference_source_selector" value="cached" />
<param name="ref_file" value="bwa-mem-mt-genome"/>
Expand All @@ -456,7 +456,7 @@
<param name="analysis_type_selector" value="sr"/>
<output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test alignment options -->
<param name="reference_source_selector" value="cached" />
<param name="min_occ_floor" value="1000"/>
Expand Down Expand Up @@ -484,7 +484,7 @@
</section>
<output name="alignment_output" ftype="bam" file="minimap2-test1-fasta.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test paf output -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fastqsanger" value="mini_reads.fq" />
Expand All @@ -494,7 +494,7 @@
<param name="output_format" value="paf"/>
<output name="alignment_output" ftype="paf" file="mini_reads.paf" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test self-homology mode -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="minimap2-self-homology.fasta" />
Expand All @@ -503,7 +503,7 @@
<param name="analysis_type_selector" value="self-homology" />
<output name="alignment_output" ftype="bam" file="minimap2-self-homology.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test mask-len option -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand All @@ -515,7 +515,7 @@
</section>
<output name="alignment_output" ftype="bam" file="minimap2-test-mask_len.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test map-hifi -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa.gz"/>
Expand All @@ -524,7 +524,7 @@
<param name="analysis_type_selector" value="map-hifi"/>
<output name="alignment_output" ftype="bam" file="minimap2-test_hifi-fasta.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test map-hifi uncompressed reference-->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="pacbio_hifi_assembly.fa"/>
Expand All @@ -533,7 +533,7 @@
<param name="analysis_type_selector" value="map-hifi"/>
<output name="alignment_output" ftype="bam" file="minimap2-test_hifi-2-fasta.bam" lines_diff="4" />
</test>
<test>
<test expect_num_outputs="1">
<!-- test kmer ocurrence interval option -->
<param name="reference_source_selector" value="history" />
<param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/>
Expand Down
Binary file modified tools/minimap2/test-data/minimap2-self-homology.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test-kmer_ocurrence.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test-mask_len.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test1-fasta.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test1-fasta.cram
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test1.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test2.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test_hifi-2-fasta.bam
Binary file not shown.
Binary file modified tools/minimap2/test-data/minimap2-test_hifi-fasta.bam
Binary file not shown.

0 comments on commit 20bce2a

Please sign in to comment.