view concatenate_fasta.xml @ 6:a72b974c98a2 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/semibin commit 2c08a2e49a2844efe92340c5a9e9c8323e4a33d6
author iuc
date Tue, 28 Oct 2025 08:21:31 +0000
parents 298542e0e136
children
line wrap: on
line source

<tool id="semibin_concatenate_fasta" name="SemiBin: Concatenate fasta files" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>
        for multi-sample binning
    </description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="biotools"/>
    <expand macro="requirements"/>
    <expand macro="version"/>
    <command detect_errors="exit_code"><![CDATA[
#import re
#for $e in $input_fasta
    #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
    ln -s '$e' '${identifier}.$e.ext' &&
#end for

SemiBin2 concatenate_fasta
    --input-fasta
    #for $e in $input_fasta
        #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
            '${identifier}.$e.ext'
    #end for
    --output 'output'
    --separator '$separator'
    --compression none
    -m $min_len
    ]]></command>
    <inputs>
        <param argument="--input-fasta" type="data" multiple="true" format="fasta,fasta.gz,fasta.bz2" label="Contig sequences"/>
        <expand macro="separator"/>
        <expand macro="concat_min_len"/>
    </inputs>
    <outputs>
        <data name="fasta" format="fasta" from_work_dir="output/concatenated.fa" />
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="input_fasta" ftype="fasta" value="input_single.fasta,input_single_2.fasta,input_single_3.fasta"/>
            <param name="separator" value=":"/>
            <param name="min_len" value="0"/>
            <output name="fasta" ftype="fasta">
                <assert_contents>
                    <has_text text=">input_single_fasta:g1k_0"/>
                    <has_text text=">input_single_3_fasta:g4k_7"/>
                    <has_text text=">input_single_2_fasta:g1k_0"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
@HELP_HEADER@

Inputs
======

@HELP_INPUT_FASTA@

Outputs
=======

- One fasta with all contigs

    ]]></help>
    <expand macro="citations"/>
</tool>