Mercurial > repos > ximgchess > chap_test_20230411
view chapbook_demo/chapbook_demo.xml @ 162:e51b6d230dd8 draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit bd55c86b9f7bfabff0bbec1f10704850fec82f02-dirty
author | ximgchess |
---|---|
date | Fri, 30 Jun 2023 16:05:57 +0000 |
parents | f524e7c848f6 |
children | 952a2cf9e629 |
line wrap: on
line source
<tool id="CHAP_chapbook_demo" name="CHAPbook" version="@TOOL_VERSION@+galaxy9" python_template_version="@PYTHON_TEMPLATE_VERSION@" profile="@PROFILE@"> <macros> <import>../macros.xml</import> </macros> <requirements> <expand macro="chap-requirement" /> <requirement type="package" version="1.0.1">nexusformat</requirement> <requirement type="package" version="2023.3.0">pyfai</requirement> <requirement type="package" version="1.10.7">pydantic</requirement> </requirements> <command detect_errors="exit_code"><![CDATA[ ## certif-pyspec is not available over any conda channels, so ## pip install the package the first time this tool is run pip --exists-action i install certif-pyspec==1.5.3 && ## Create symlinks in the tool directory to all items in the ## input directory provided by the user #import os.path #set $usr_indir = $indir #set $norm_indir = os.path.normpath($usr_indir) ln -s '$norm_indir'/* '$__tool_directory__' && ## Run the pipeline provided CHAP --config '$config' && ## Unlink the symlinks created previously find '$__tool_directory__' -type l -exec unlink {} \; ]]></command> <environment_variables> <environment_variable name="PYTHONPATH">/home/chess_chapaas/chess/chap/</environment_variable> </environment_variables> <inputs> <param type="data" name="config" format="yaml" label="Pipeline Configuration File" /> <param type="text" name="indir" label="Input Directory" help="DO NOT include a trailing slash"/> </inputs> <outputs> <data name="data" format="nex" label="I vs q NeXus Data" /> <data name="plot" format="png" label="I vs q Plot" /> </outputs> <tests> <test> <param name="config" value="config.yaml" /> <param name="indir" value="/tmp/" /> </test> </tests> <help><![CDATA[ CHESS Analysis Pipeline (CHAP): To run it on command line you'll use: CHAP --config CONFIG To run it within galaxy you'll only need to upload your required configuration pipeline and necessary data. ]]></help> <citations> <expand macro="chap-citation" /> </citations> </tool>