view extract_contigs_from_archive.xml @ 33:f1738f8649b0 draft

planemo upload commit 39094a128ea3dd2c39f4997c6de739c33c07e5f3-dirty
author petr-novak
date Fri, 04 Aug 2023 08:09:40 +0000
parents 93595f42a04d
children 91996b991991
line wrap: on
line source

<tooll id="extract_contigs" name="Extract contigs from RepeatExplorer2 archive" version="1.0.0.3">
  <command detect_errors="exit_code">
     <![CDATA[
    unzip -p ${RepeatExplorer_archive} contigs.fasta  > ${contigs}
    &&
    mkdir -p tempdir
    &&
    unzip ${RepeatExplorer_archive} "*.aln" -d tempdir
    &&
    find tempdir -type f -name "*.aln" -exec cat {} + > ${aln}
    &&
    rm -r tempdir
    ]]>
  </command>


  <inputs>
    <param name="RepeatExplorer_archive" label="Archive with RepeatExplorer2 results" type="data" format="zip"/>
  </inputs>

  <outputs>
    <data name="contigs" format="fasta" label="Contigs from RepeatExplorer clustering from data ${RepeatExplorer_archive.hid}" />
    <data name="aln" format="txt" label="Contigs from RepeatExplorer clustering in aln format from data ${RepeatExplorer_archive.hid}" />
  </outputs>
</tooll>