diff sniffles.xml @ 4:43fffeed243f draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc commit 03fbb13717809f9198ab113192d241599705ef7b
author iuc
date Sun, 29 Sep 2024 10:23:36 +0000
parents 09f5c6f3088a
children
line wrap: on
line diff
--- a/sniffles.xml	Thu Sep 26 11:44:13 2024 +0000
+++ b/sniffles.xml	Sun Sep 29 10:23:36 2024 +0000
@@ -1,4 +1,4 @@
-<tool id="sniffles" name="sniffles" version="@TOOL_VERSION@+galaxy0" profile="23.0">
+<tool id="sniffles" name="sniffles" version="@TOOL_VERSION@+galaxy1" profile="23.0">
     <description>Structural variation caller using third generation sequencing</description>
     <macros>
         <token name="@TOOL_VERSION@">2.4</token>
@@ -16,8 +16,8 @@
         <![CDATA[
 ln -f -s '${input}' input.bam &&
 ln -f -s '${input.metadata.bam_index}' input.bam.bai &&
-#if $reference_genome.genome_type_select != "None":
-    #if $reference_genome.genome_type_select == "indexed":
+#if str($reference_genome.genome_type_select) != "None":
+    #if str($reference_genome.genome_type_select) == "indexed":
         ln -f -s '${reference_genome.genome.fields.path}' 'reference.fa' &&
     #else:
         ln -f -s '${reference_genome.genome}' 'reference.fa' &&
@@ -29,7 +29,7 @@
 -v '$output'
 ## must set allow-overwrite since the new output vcf file exists
 --allow-overwrite
-#if $reference_genome.genome_type_select != "None":
+#if str($reference_genome.genome_type_select) != "None":
    --reference 'reference.fa' 
 #end if
 ## general_options
@@ -38,6 +38,9 @@
     --minsvlen '$general_options.minsvlen'
     --mapq '$general_options.mapq'
     --min-alignment-length '$general_options.minalignmentlength'
+    #if str($detectlargeins) == "0":
+        --detect-large-ins '0'
+    #end if
 ## clustering_options
     --cluster-binsize '$clustering_options.clusterbinsize'
     --cluster-r '$clustering_options.clusterr'
@@ -55,7 +58,7 @@
                 <option value="history">Use a genome fasta file from the current history</option>
             </param>
             <when value="None">
-                <param name="genome" type="text" value="None"/>
+                <param name="genome" type="hidden" value="None"/>
             </when>
             <when value="indexed">
                 <param name="genome" type="select" optional="false" label="Select a built in reference genome or custom genome" 
@@ -71,17 +74,19 @@
         </conditional>
         <section name="general_options" title="Set general options" expanded="False">
             <param argument="--minsupport" type="text" value="auto" label="Minimum Support" help="Minimum number of reads that support a SV. [auto]. Smaller support values -> more SV reported"/>
-            <param name="maxsplitskb" type="float" value="0.1" min="0" label="Maximum Number of Splits per KB" help="Additional number of splits per kilobase read sequence allowed before reads are ignored [0.1]" />
-            <param name="minsvlen" type="integer" value="50" min="2" label="Minimum Length" help="Minimum length of SV to be reported. [50]"/>
-            <param name="mapq" type="integer" value="20" min="0" label="Minimum Mapping Quality" help="Minimum Mapping Quality to consider. [20]"/>
-            <param name="minalignmentlength" type="integer" value="100" min="0" label="Minimum alignment length" help="Reads with alignments shorter than this length (in bp) will be ignored"/>
+            <param argument="--maxsplitskb" type="float" value="0.1" min="0" label="Maximum Number of Splits per KB" help="Additional number of splits per kilobase read sequence allowed before reads are ignored [0.1]" />
+            <param argument="--minsvlen" type="integer" value="50" min="2" label="Minimum Length" help="Minimum length of SV to be reported. [50]"/>
+            <param argument="--mapq" type="integer" value="20" min="0" label="Minimum Mapping Quality" help="Minimum Mapping Quality to consider. [20]"/>
+            <param argument="--minalignmentlength" type="integer" value="100" min="0" label="Minimum alignment length" help="Reads with alignments shorter than this length (in bp) will be ignored"/>
+            <param name="detectlargeins" type="boolean" truevalue="1" falsevalue="0" display="radio" checked="true" label="Detect very large insertions spanning multiple reads" 
+               help="This sometimes shows enormous features."/>
         </section>
         <section name="clustering_options" title="Clustering/phasing and genotyping options" expanded="False">
             <param argument="--clusterbinsize" value="100" type="integer" min="0" label="Cluster bin size" help="Initial screening bin size [100]"/>
             <param argument="--clusterr" type="float" value="2.5" min="0.0" label="Cluster Multiplier" help="Multiplier for SV start position standard deviation criterion in cluster merging [2.5]"/>
         </section>
         <section name="advanced_options" title="Advanced options" expanded="False">
-            <param name="mosaic" type="boolean" value="False" truevalue="--mosaic" falsevalue="" label="Mosaic mode" help="Set Sniffles run mode to detect rare, somatic and mosaic SVs (default: False)" />
+            <param argument="--mosaic" type="boolean" display="radio" checked="false"  truevalue="--mosaic" falsevalue="" label="Mosaic mode" help="Set Sniffles run mode to detect rare, somatic and mosaic SVs (default: False)" />
         </section>
     </inputs>
     <outputs>
@@ -90,6 +95,7 @@
     <tests>
         <test> <!-- test 1 - standard run -->
             <param name="input" value="reads_region.bam"/>
+            <param name="detectlargeins" value="0"/>
             <output name="output" file="expected_output.vcf" lines_diff="4"/>
         </test>
         <test> <!-- test 2 - filter on mapq -->
@@ -130,103 +136,136 @@
 
 What is Sniffles?
 *****************
+
 Sniffles is a SV caller for long reads. Sniffles2 accurately detect SVs on germline, somatic and population-level for PacBio and Oxford Nanopore read data.
 
 SV are larger events on the genome (e.g. deletions, duplications, insertions, inversions and translocations). 
 Sniffles can detect all of these type and more such as nested SVs (e.g. inversion flanked by deletions or an inverted duplication).
 
+----
+
 Inputs
 ******
 
 Known to work with Minimap2 bam as input
+Optional reference fasta with matching contig names will allow deletions to be determined.
+
+----
 
 Parameters
 **********
 
+
 General
 -------
 
 
-+---------------------------+-----------------------------------------------------------------------+
-| Parameter                 | Description                                                           |
-+===========================+=======================================================================+
-| Minimum Support           | Minimum number of reads supporting a SV to be reported. Default:auto  |
-+---------------------------+-----------------------------------------------------------------------+
-| Maximum Number of Splits  | Maximum number of split segments per kb a read is aligned at before   |
-|                           | it is ignored. Default: 7                                             |
-+---------------------------+-----------------------------------------------------------------------+
-| Minimum SV Length         | Minimum length of SV to be reported. Default: 50bp                    |
-+---------------------------+-----------------------------------------------------------------------+
-| Minimum Mapping Quality   | Minimum mapping quality of alignment to be taken into account.        |
-|                           | Default: 20                                                           |
-+---------------------------+-----------------------------------------------------------------------+
-| Minimum alignment length  | Reads with less length aligned will be ignored. Default 100           |
-+---------------------------+-----------------------------------------------------------------------+
++----------------------------+-------------------------------------------------------------------------+
+|  Parameter                 |   Description                                                           |
++============================+=========================================================================+
+|  Minimum Support           |   Minimum number of reads supporting a SV to be reported. Default:auto  |
++----------------------------+-------------------------------------------------------------------------+
+|  Maximum Number of Splits  |   Maximum number of split segments per kb a read is aligned at before   |
+|                            |   it is ignored. Default: 7                                             |
++----------------------------+-------------------------------------------------------------------------+
+|  Minimum SV Length         |   Minimum length of SV to be reported. Default: 50bp                    |
++----------------------------+-------------------------------------------------------------------------+
+|  Minimum Mapping Quality   |   Minimum mapping quality of alignment to be taken into account.        |
+|                            |   Default: 20                                                           |
++----------------------------+-------------------------------------------------------------------------+
+|  Minimum alignment length  |   Reads with less length aligned will be ignored. Default 100           |
++----------------------------+-------------------------------------------------------------------------+
+
+
 
 
 Clustering Options
 ------------------
 
 
-+----------------------------------------+-----------------------------------------------------------------------+
-| Parameter                              | Description                                                           |
-+========================================+=======================================================================+
-| Cluster bin size                       | Initial cluster bin size. Default 100                                 |
-+----------------------------------------+-----------------------------------------------------------------------+
-| Cluster Multiplier                     | Multiplier for SV start position standard deviation criterion in      |
-|                                        | cluster merging [2.5]                                                 |
-+----------------------------------------+-----------------------------------------------------------------------+
++---------------------+------------------------------------------------------------------------+
+|  Parameter          |  Description                                                           |
++=====================+========================================================================+
+|  Cluster bin size   |  Initial cluster bin size. Default 100                                 |
++---------------------+------------------------------------------------------------------------+
+|  Cluster Multiplier |  Multiplier for SV start position standard deviation criterion in      |
+|                     |  cluster merging [2.5]                                                 |
++---------------------+------------------------------------------------------------------------+
+
+
 
 
 Advanced Options
 ----------------
 
 
-+----------------------------------------+------------------------------------------------------------------------------+
-| Parameter                              | Description                                                                  |
-+========================================+==============================================================================+
-| Mosaic                                 | Set Sniffles run mode to detect rare, somatic and mosaic SVs (default: False)|
-+----------------------------------------+------------------------------------------------------------------------------+
++-------------+--------------------------------------------------------------------------------+
+|  Parameter  |   Description                                                                  |
++=============+================================================================================+
+|  Mosaic     |   Set Sniffles run mode to detect rare, somatic and mosaic SVs (default: False)|
++-------------+--------------------------------------------------------------------------------+
 
 
-Output
+----
+
+VCF information fields from the VCF header
+******************************************
+
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|   Field          |   Type    |                     Description                                                               |
++==================+===========+===============================================================================================+
+|  PRECISE         |   Flag    |                Structural variation with precise breakpoints                                  |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  IMPRECISE       |   Flag    |                Structural variation with imprecise breakpoints                                |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  MOSAIC          |   Flag    |                Structural variation classified as putative mosaic                             |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SVLEN           |   Integer |                Length of structural variation                                                 |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SVTYPE          |    String |                Type of structural variation                                                   |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  CHR2            |    String |                Mate chromsome for BND SVs                                                     |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SUPPORT         |    Integer|                Number of reads supporting the structural variation                            |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SUPPORT_INLINE  |    Integer|                Number of reads supporting an INS/DEL SV (non-split events only)               |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SUPPORT_LONG    |    Integer|                Number of soft-clipped reads putatively supporting the long insertion SV       |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  END             |    Integer|                End position of structural variation                                           |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  STDEV_POS       |    Float  |                Standard deviation of structural variation start position                      |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  STDEV_LEN       |    Float  |                Standard deviation of structural variation length                              |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  COVERAGE        |    Float  |                Coverage near upstream start, center, end, downstream of structural variation  |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  STRAND          |    String |                Strands of supporting reads for structural variant                             |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  AC              |    Integer|                Allele count summed up over all samples                                        |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  SUPP_VEC        |    String |                List of read support for all samples                                           |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  CONSENSUS_SUP   |    Integer|                Number of reads that support the generated insertion (INS) consensus sequence  |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  RNAMES          |    String |                Names of supporting reads (if enabled with --output-rnames)                    |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  AF              |    Float  |                Allele Frequency                                                               |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  NM              |    Float  |                Mean number of query alignment length adjusted mismatches of supporting reads  |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+|  PHASE           |    String |                Phasing information derived from supporting reads                              |
++------------------+-----------+-----------------------------------------------------------------------------------------------+
+
+
+----
+
+
+Source
 ******
 
-VCF Info field description
-
-Sniffles report multiple information in the Info field. The entries are delimited by:
+https://github.com/fritzsedlazeck/Sniffles
 
-+-------------------+------------------------------------------------------------------------------------------------------+
-| IMPRECISE/PRECISE | Indicates the confidence of the exact breakpoint positions (bp).                                     |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| CHR2=             | The chromosome of the second breakpoint of the SV reported.                                          |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| END=              | The position (bp) of the second breakpoint of the SV reported.                                       |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| ZMW=              | For PacBio based reads, shows the number of ZMW that support the SV.                                 |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| SVTYPE=           | The type of the SV. (see Alt field above)                                                            |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| SUPTYPE=          | Indicates what evidence supports the SVs (SR: Split Reads, AL: Alignment, NR: Noisy Region).         |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| STD_quant_start=  | The standard deviation of the start breakpoints.                                                     |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| STD_quant_stop=   | The standard deviation of the stop breakpoints.                                                      |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| RNAMES=           | A comma separated list of read names that support the SV event. Controlled by -n Parameter.          |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| SVLEN=            | Indicates the length of SVs.                                                                         |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| STRANDS=          | Strand information at both breakpoints.                                                              |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| SEQ=              | If reportable shows the sequence of the indels.                                                      |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| RE=               | Number of reads supporting the variance.                                                             |
-+-------------------+------------------------------------------------------------------------------------------------------+
-| AF=               | Allele frequency (only if run with –genotype)                                                        |
-+-------------------+------------------------------------------------------------------------------------------------------+
-
-Source: https://github.com/fritzsedlazeck/Sniffles
     ]]>
     </help>
     <citations>