view embl2fa.xml @ 1:a0b6fec3b066 draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/main/tools/embl2fa commit 27cf3dbac49e5392d8b454668d9c09eabc8acb89
author artbio
date Sat, 14 Oct 2023 20:00:57 +0000
parents 3c8c9911cf2a
children
line wrap: on
line source

<tool id="embl2fa" name="Convert embl flat file to fasta" version="0.2">
  <description></description>
  <stdio>
      <exit_code range="1:" level="fatal" description="Tool exception" />
  </stdio>
  <command detect_errors="exit_code"><![CDATA[
       grep -P "(^ID)|(^ +[GATCNgatcn ]+\d+)" "$input" > "$output" &&
       sed -i -E "s/^ID   />/" "$output" &&
       sed -i -E "s/(>[^ ]+) .+/\1/g"  "$output" &&
       sed -i -E "s/([GATCNgatcn]+) /\1/g" "$output" &&
       sed -i -E "s/^ +//g" "$output" &&
       sed -i -E "s/ +[0-9]+//g" "$output"
  ]]></command>
  <inputs>
      <param format="txt" name="input" type="data" label="EMBL flat file" />
  </inputs>
  <outputs>
    <data name="output" format="fasta" label="fasta file" />
  </outputs>
  <tests>
      <test>
          <param name="input" value="transposon_sequence_set_v9.5.embl.txt" ftype="txt" />
          <output name="output" file="transposon_sequence_set_v9.5.fa" ftype="fasta"/>
      </test>
  </tests>
  <help>

.. class:: infomark

**What it does**

Converts file in EMBL flat format to fasta file
  </help>
  <citations>
    <citation type="doi">10.1093/nar/gki098</citation>
  </citations>
</tool>