view hyphy_gard.xml @ 5:9640a5b51502 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hyphy/ commit 6c73b2e4c05bdddaef2026feb1073c1b0b4aa12e-dirty
author rdvelazquez
date Fri, 07 Jun 2019 10:20:19 -0400
parents 876a69d2c6d7
children
line wrap: on
line source

<?xml version="1.0"?>
<tool id="hyphy_gard" name="HyPhy-GARD" version="2.5.0+galaxy0">
  <description>: Recombination Detection</description>
  <macros>
    <import>macros.xml</import>
  </macros>
  <command detect_errors="exit_code">
  <![CDATA[
    ln -s '$input_file' gard_input.fa &&
    @HYPHY_INVOCATION@ gard
      --alignment `pwd`/gard_input.fa
      --type 
      --code
      --model
      --rv '$rate'
      --rate-classes '$rate_classes'

      > '$gard_log' &&
    ]]></command>
  <inputs>
    <param name="input_file" type="data" format="fasta" label="Input FASTA file"/>
    <conditional name="rate_cond">
      <param name="rate" type="select" label="Rate variation">
        <option value="None">None</option>
        <option value="GDD">General Discrete</option>
        <option value="Gamma">Beta-Gamma</option>
      </param>
      <when value="1"/>
      <when value="2">
        <param name="rate_classes" type="integer" value="2" min="2" max="6" label="Rate classes"/>
      </when>
      <when value="3">
        <param name="rate_classes" type="integer" value="2" min="2" max="6" label="Rate classes"/>
      </when>
    </conditional>
  </inputs>
  <outputs>
    <data name="gard_log" format="txt"/>
    <data name="gard_output" format="nex" from_work_dir="gard_input.GARD_finalout"/>
    <data name="translated" format="hyphy_json_results" from_work_dir="gard_input.fa.translated.json"/>
  </outputs>
  <tests>
    <test>
      <param name="input_file" ftype="fasta" value="gard-in1.fa"/>
      <output name="gard_output" file="gard-out1.nex" compare="sim_size" delta="160000"/>
    </test>
  </tests>
  <help><![CDATA[
GARD (Genetic Algorithm for Recombination Detection) is a method to screen a multiple sequence analysis for the presence of recombination and is extremely useful as a pre-processing step for selection inference. Because recombinant sequences cannot be adequately described with a single phylogenetic history, selection inference on recombinant data often leads to a significant increase in false positives. GARD alleviates this concern by comprehensively screening an alignment for recombination breakpoints and inferring a unique phylogenetic history for each detected recombination block.
        ]]></help>
  <expand macro="citations">
    <citation type="doi">10.1093/molbev/msl051</citation>
  </expand>
</tool>