view macros.xml @ 1:41f5b4a4eac0 draft

"planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/master/tools/hifiadapter commit 8b04bda034e2e05436e15c066fde316098714aa3"
author galaxy-australia
date Wed, 14 Sep 2022 02:37:39 +0000
parents bbc2060caa0e
children 03acc0e3772e
line wrap: on
line source

<macros>
    <token name="@TOOL_VERSION@">2.0.0</token>
    <token name="@VERSION_SUFFIX@">0</token>
    <token name="@PROFILE@">21.05</token>
    <token name="@DIGEST@">99b5e479baee5ffe01c676dd3d7180b0d3eb94af08db0f2ceb3641bef3ebbaa4</token>
    <xml name="requirements">
        <requirements>
            <container type="docker">dmolik/pbadapterfilt:latest</container>
        </requirements>
    </xml>
    <xml name="stdio">
      <stdio>
         <exit_code range=":-1"  level="fatal" description="Error: Cannot open file" />
         <exit_code range="1:"  level="fatal" description="Error" />
      </stdio>
    </xml>	
    <token name="@CLEAN_EXT@">
        <![CDATA[
        #from os.path import splitext
        #import re
        #def clean_ext($identifier)
            #while $identifier.endswith(('.fq','.fastq', '.fastq.gz','.bam'))
                #set $identifier = splitext($identifier)[0]
            #end while
$identifier#slurp
        #end def
        ]]>
    </token>
</macros>