view cif2cell.xml @ 3:e5f1ac42b063 draft

planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/cif2cell commit 70a4d37ecdf5d586703cfc509922311e95d3205c
author muon-spectroscopy-computational-project
date Tue, 18 Jul 2023 13:25:43 +0000
parents 60ad7a4f1faf
children 0d13d09ff6b1
line wrap: on
line source

<tool id="cif2cell" name="cif2cell" version="@TOOL_VERSION@+galaxy@WRAPPER_VERSION@" python_template_version="3.5" profile="22.05" license="MIT">
    <description>convert .cif file to .cell</description>
    <macros>
        <!-- version of underlying tool (PEP 440) -->
        <token name="@TOOL_VERSION@">2.0.0a3</token>
        <!-- version of this tool wrapper (integer) -->
        <token name="@WRAPPER_VERSION@">2</token>
    </macros>
    <creator>
        <person givenName="Anish" familyName="Mudaraddi" identifier="https://orcid.org/0000-0002-2135-2705"/>
        <person givenName="Eli" familyName="Chadwick" url="https://github.com/elichad" identifier="https://orcid.org/0000-0002-0035-6475"/>
        <person givenName="Patrick" familyName="Austin" url="https://github.com/patrick-austin" identifier="https://orcid.org/0000-0002-6279-7823"/>
        <organization url="https://muon-spectroscopy-computational-project.github.io/index.html" name="The Muon Spectroscopy Computational Project"/>
    </creator>
    <requirements>
        <requirement type="package" version="2.0.0a3">cif2cell</requirement>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        file_name=\$(sed 's/ //g' <<< '$file.name') &&
        ln -s '$file' \$file_name &&
        cif2cell -f \$file_name -p castep -o out.cell
    ]]></command>
    <inputs>
        <param type="data" argument="--file" format="cif" label="Structure file to Convert (.cif)" />
    </inputs>
    <outputs>
        <data label="Conversion of $file.name to .cell" name="out_cell" format="cell" from_work_dir="out.cell" />
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="file" value="Si.cif" ftype="cif" />
            <output name="out_cell" file="Si_out.cell" compare="diff" lines_diff="2" ftype="cell" />
        </test>
        <test expect_num_outputs="1">
            <param name="file" value="diamond.cif" ftype="cif" />
            <output name="out_cell" file="diamond_out.cell" compare="diff" lines_diff="2" ftype="cell" />
        </test>
    </tests>
    <help><![CDATA[
        usage: cif2cell -f file.cif -p castep -o file.cell

        Given an input ``.cif`` structure file, convert to an equivalent ``.cell``
        structure file for use with electronic structure program CASTEP.

        .. class:: warningmark
            warning

        **WARNING**: ``.cif`` files may contain errors that prevent cif2cell from running properly.
        If you find that you run cif2cell and do not get a satisfactory ``.cell`` file,
        please consider revising the corresponding ``.cif`` file and, if necessary,
        obtaining an alternative ``.cif`` file from a suitable crystalline database.

        cif2cell is distributed under the GPLv3 license. This tool wrapper is distributed under the MIT license.
    ]]></help>
    <citations>
        <citation type="doi">10.1016/j.cpc.2011.01.013</citation>
    </citations>
</tool>