diff macros.xml @ 0:dda5772507b2 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/freyja commit 2036e233d159a5c4b3b06ce6a681531259098f73
author iuc
date Thu, 28 Jul 2022 09:25:33 +0000
parents
children a09398bc953a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Thu Jul 28 09:25:33 2022 +0000
@@ -0,0 +1,151 @@
+<?xml version="1.0"?>
+<macros>
+    <token name="@TOOL_VERSION@">1.3.8</token>
+    <token name="@VERSION_SUFFIX@">0</token>
+    <token name="@PROFILE@">21.01</token>
+    <xml name="biotools">
+        <xrefs>
+            <xref type="bio.tools">freyja</xref>
+        </xrefs>
+    </xml>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@TOOL_VERSION@">freyja</requirement>
+            <yield/>
+        </requirements>
+    </xml>
+    <xml name="version">
+        <version_command>freyja --version</version_command>
+    </xml>
+    <token name="@RUN_FREYJA_UPDATE_COMMAND@"><![CDATA[
+#if $usher_update_option.choice == 'update'
+    freyja update &&
+#end if
+]]></token>
+    <token name="@PREPROCESS_VCF_INPUT@"><![CDATA[
+ln -s '$variants_file' 'variants_file.vcf' &&
+]]></token>
+    <token name="@STANDARD_INPUT_FOR_BOOT@"><![CDATA[
+#if $variants_file.ext == 'vcf'
+    'variants_file.vcf'
+#else
+    '$variants_file'
+#end if
+'$depth_file'
+#if $eps
+    --eps '${eps}'
+#end if
+#if $meta
+    --meta '${meta}'
+#end if
+$confirmedonly
+]]></token>
+    <token name="@CUSTOM_BARCODES_COMMAND@"><![CDATA[
+#if $usher_update_option.choice == 'custom'
+    --barcodes '${usher_update_option.usher_barcodes}'
+#end if
+]]></token>
+    <token name="@DASH_COMMAND@"><![CDATA[
+echo '${plot_format.plot_title}' > plot_title.txt &&
+echo '${plot_format.plot_intro}' > plot_intro.txt &&
+freyja dash
+    #if $need_aggregation.choice == 'no'
+        '$tsv_aggregated'
+    #else
+        'aggregated.tsv'
+    #end if
+    '$plot_format.csv_meta'
+    plot_title.txt
+    plot_intro.txt
+    --output abundances_dashboard.html
+]]></token>
+    <token name="@PLOT_COMMAND@"><![CDATA[
+freyja plot
+    #if $need_aggregation.choice == 'no'
+        '$tsv_aggregated'
+    #else
+        'aggregated.tsv'
+    #end if
+    --output abundances_plot.pdf
+    #if $plot_format.csv_meta
+        --times '${plot_format.csv_meta}'
+    #end if
+    #if $plot_format.interval == 'MS'
+        --interval MS
+    #else
+        --interval D
+        --windowsize 70
+    #end if
+]]></token>
+    <token name="@PLOT_AND_DASH_COMMAND@"><![CDATA[
+#if $plot_format.choice == 'dash'
+    @DASH_COMMAND@
+#else if $plot_format.choice == 'plot'
+    freyja plot
+    #if $need_aggregation.choice == 'no'
+        $tsv_aggregated
+    #else
+        aggregated.tsv
+    #end if
+    --output abundances_plot.pdf
+    #if $plot_format.need_metadata.choice == 'yes'
+        --times '${plot_format.need_metadata.csv_meta}'
+        #if $plot_format.need_metadata.interval == 'MS'
+            --interval MS
+        #else
+            --interval D
+            --windowsize 70
+        #end if
+    #end if
+#else if $plot_format.choice == 'plot_and_dash'
+    @DASH_COMMAND@ &&
+    @PLOT_COMMAND@
+#end if
+]]></token>
+    <xml name="demixing_common_options">
+        <param name="depth_file" type="data" format="tabular" label="Sequencing depth file"/>
+        <conditional name="usher_update_option">
+            <param name="choice" type="select" label="Source of UShER barcodes data"
+                   help="Freyja ships with an usher_barcodes.csv file, which the tool can access internally. Since this file gets updated rather frequently, you can also download the latest version of the file from https://github.com/andersen-lab/Freyja/raw/main/freyja/data/usher_barcodes.csv, set the dataset's datatype to csv and use it as a custom barcodes file.">
+                <option value="repo" selected="true">Use data shipped with the tool (can be
+                    outdated)
+                </option>
+                <option value="custom">Provide a custom barcodes file</option>
+                <!--<option value="update">Get updated versions of the curated lineage file as well as the UShER global phylogenetic tree (can cause tool to run slowly)</option>-->
+            </param>
+            <when value="repo"/>
+            <when value="custom">
+                <param name="usher_barcodes" type="data" format="csv" label="UShER barcodes file"/>
+            </when>
+            <!--<when value="update" />-->
+        </conditional>
+        <param argument="--meta" type="data" format="json" optional="true"
+               label="Custom lineage metadata file"
+               help="For additional flexibility and reproducibility of analyses, a custom lineage-to-contellation mapping metadata file can be provided."/>
+        <param argument="--eps" type="float" optional="true"
+               label="Minimum lineage abundance tp include"
+               help="e.g. 0.0001."/>
+        <param argument="--confirmedonly" type="boolean" truevalue="--confirmedonly" falsevalue=""
+               checked="false"
+               label="Remove unconfirmed lineages from the analysis"
+               help="If the UShER tree includes proposed lineages, the --confirmedonly flag removes unconfirmed lineages from the analysis."/>
+    </xml>
+    <token name="@HELP_HEADER@"><![CDATA[
+What it does
+============
+
+Freyja is a tool to recover relative lineage abundances from mixed SARS-CoV-2 samples from a sequencing dataset (BAM aligned to the Hu-1 reference).
+
+General information
+===================
+
+Freyja is a tool to recover relative lineage abundances from mixed SARS-CoV-2 samples from a sequencing dataset (BAM aligned to the Hu-1 reference). The method uses lineage-determining mutational "barcodes" derived from the UShER global phylogenetic tree as a basis set to solve the constrained (unit sum, non-negative) de-mixing problem.
+
+Freyja is intended as a post-processing step after primer trimming and variant calling in iVar (Grubaugh and Gangavaparu et al., 2019). From measurements of SNV freqency and sequencing depth at each position in the genome, Freyja returns an estimate of the true lineage abundances in the sample.
+]]></token>
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.5281/zenodo.6585067</citation>
+        </citations>
+    </xml>
+</macros>