Mercurial > repos > ecology > cb_dissim
view cb_dissimilarity.xml @ 2:8dc082da41c1 draft default tip
planemo upload for repository https://github.com/Marie59/champ_blocs commit 075fd90d1a39ae7912b48549e5537971635b9620
author | ecology |
---|---|
date | Sat, 18 Mar 2023 16:49:28 +0000 |
parents | ffaa9a71b2d2 |
children |
line wrap: on
line source
<tool id="cb_dissim" name="QECB-Dissimilarity" version="@VERSION@" profile = "20.01"> <description>indicator</description> <macros> <import>macro.xml</import> </macros> <requirements> <requirement type="package" version="4.2.2">r-base</requirement> <requirement type="package" version="2.0.3">r-magrittr</requirement> <requirement type="package" version="1.1.0">r-dplyr</requirement> <requirement type="package" version="1.3.0">r-tidyr</requirement> <requirement type="package" version="1.5.0">r-stringr</requirement> <requirement type="package" version="3.1.8">r-tibble</requirement> <requirement type="package" version="1.42">r-knitr</requirement> <requirement type="package" version="0.7_1">r-gmp</requirement> <requirement type="package" version="2.20">r-rmarkdown</requirement> <requirement type="package" version="0.3.0">r-officedown</requirement> <requirement type="package" version="2.6_4">r-vegan</requirement> <requirement type="package" version="1.3.2">r-tidyverse</requirement> <requirement type="package" version="3.4.1">r-ggplot2</requirement> </requirements> <required_files> <include type="literal" path="test-data/champbloc_qecb.csv"/> <include type="literal" path="test-data/ficheterrain.csv"/> <include type="literal" path="cb_dissimilarity.r"/> </required_files> <command detect_errors="exit_code"><![CDATA[ Rscript '$__tool_directory__/cb_dissimilarity.r' '$fiche_val' '$input_data' '$choice' '$choice_date' '$output_qecb' '$output_eco' '$output_matri' '$plots_bf' '$plots_bm' '$plots' ]]> </command> <inputs> <expand macro="cb_input"/> <param name="input_data" type="data" format="data" label="Input champbloc_qecb.csv"/> <param name="choice" type="select" display="radio" label="Do you have data after the year 2021?"> <option value="N">No</option> <option value="Y">Yes</option> </param> <param name="choice_date" type="integer" value="2021" label="Until when do you have data (write only the YEAR) ?" help="Example write : 2021 "/> </inputs> <outputs> <data name="output_qecb" from_work_dir="qecbnato0.RDS" format="rdata" label="Clean Rdata"/> <data name="output_eco" from_work_dir="bret_egmp_basq_qecb.RDS" format="rdata" label="Bret Rdata"/> <data name="output_matri" from_work_dir="matri_full.RDS" format="rdata" label="Matrice full Rdata"/> <collection type="list" name="plots_bf" label="Bloc fixe et bloc mobile face sup plot"> <discover_datasets pattern="bm(?P<designation>.+)\.png" visible="false" format="png"/> </collection> <collection type="list" name="plots_bm" label="Bloc mobile face sup et face inf plot"> <discover_datasets pattern="fs(?P<designation>.+)\.png" visible="false" format="png"/> </collection><!--_ pour underscore--> <collection type="list" name="plots" label="Distance plot"> <discover_datasets pattern="distance(?P<designation>.+)\.png" visible="false" format="png"/> </collection> </outputs> <tests> <test expect_num_outputs="6"> <param name="fiche_val" value="ficheterrain.csv"/> <param name="input_data" value="champbloc_qecb.csv"/> <param name="choice" value="N"/> <param name="choice_date" value="2021"/> <output name="output_qecb"> <assert_contents> <has_text text="E6P"/> </assert_contents> </output> <output name="output_eco"> <assert_contents> <has_text text="6t"/> </assert_contents> </output> <output name="output_matri"> <assert_contents> <has_text text="6t"/> </assert_contents> </output> <output_collection name="plots_bf" type="list" count="23"/> <output_collection name="plots_bm" type="list" count="23"/> <output_collection name="plots" type="list" count="2"/> </test> </tests> <help><![CDATA[ ======================= Dissimilarity indicator ======================= **What it does** This tool computes the the Boulder Field Ecological Quality Index (BFEQ) based on biotic and abiotic variables that respond to the disturbance "boulder turning". **Input description** One input files in Rdata format. +----------------+ | Rdata | +================+ | clean Rdata | +----------------+ | ... | +----------------+ **Output** - .RDS file 1 of them to use as an input for diversity index - Multiple png plots one for each of the locations ]]> </help> <expand macro="cb_bibref"/> </tool>