view change_fasta_deflines.xml @ 2:314c7fb4a463 draft

planemo upload for repository https://github.com/Public-Health-Bioinformatics/flu_classification_suite commit e6d31e4b3666b5e1d322e22f44526f23c66692fb
author public-health-bioinformatics
date Thu, 17 Jan 2019 19:09:57 -0500
parents ba7cee75eb68
children
line wrap: on
line source

<tool id="change_fasta_deflines" name="Change Fasta Deflines" version="0.0.1">
  <requirements>
    <requirement type="package" version="1.70">biopython</requirement>
  </requirements>
  <command detect_errors="exit_code"><![CDATA[
    python $__tool_directory__/change_fasta_deflines.py
    '$key_value_pairs'
    '$input_fasta'
    '$output_file'
    #if $tab_delim
      -t
    #end if
  ]]></command>
  <inputs>
    <param name="input_fasta" format="fasta" type="data" />
    <param name="tab_delim" type="boolean" label="Names file is tab-delimited." checked="false" />
    <param name="key_value_pairs" format="csv" type="data" />
  </inputs>
  <outputs>
    <data name="output_file" format="fasta"/>
  </outputs>
  <tests>
    <test>
      <param name="input_fasta" value="fasta_2_rename.fasta" />
      <param name="key_value_pairs" value="csv_rename_file.csv" />
      <output name="output_file" value="output.fasta" />
    </test>
    <test>
      <param name="input_fasta" value="fasta_2_rename.fasta" />
      <param name="key_value_pairs" value="tab_delim_rename_file.txt" />
      <param name="tab_delim" value="true" />
      <output name="output_file" value="output.fasta" />
    </test>
  </tests>
  <help><![CDATA[
  ]]></help>
  <citations>
  </citations>
</tool>