view image_content_plugin.xml @ 28:31c42a2c02d3 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/multiqc commit 7f250f4b9484eceef360ba62ef519c94b56c0b97
author iuc
date Wed, 19 Feb 2025 16:01:14 +0000
parents
children
line wrap: on
line source

<macros>
    <token name="@IMAGE_CONTENT_COMMAND@"><![CDATA[
        #for $file in $image_content_input
            #set identifier = re.sub('[^\s\w\-\.]', '_', str($file.element_identifier))
            #set file_parts = str($file.element_identifier).rsplit('.', 1)
            #set file_path = os.path.join('multiqc_WDir/', file_parts[0] + '_mqc.' + str($file.ext))
            ln -s '$file' '$file_path' &&
        #end for
    ]]></token>
    <xml name="image_content_form">
        <param name="image_content_input" type="data" format="png,jpg,gif,tiff" multiple="true" label="Image content" help="Images to be added to the MutliQC HTML report" optional="true"/>
    </xml>
    <!--Test can be found in porechop_plugin.xml-->
</macros>