view spocc_occ_notaxref.xml @ 11:80f5d5fb2fa2 draft

Uploaded
author ylebras
date Fri, 14 Sep 2018 08:33:35 -0400
parents fa4428706beb
children 2ef38e82ce71
line wrap: on
line source

<tool id="spocc_occ_no_taxrefv2" name="Get species occurrences data" version="0.2">
    <description>from GBIF, ALA, iNAT and others</description>
    <requirements>
<!--
        <requirement type="package" version="1.2.3">r-stringi</requirement>
        <requirement type="package" version="7.0">readline</requirement>
        <requirement type="package" version="3.2.1">r-base</requirement>
        <requirement type="package" version="0.3_28">rgeos</requirement>
        <requirement type="package" version="3.6.2">geos</requirement>
        -->

        <requirement type="package" version="3.2.1">r-base</requirement>
        <requirement type="package" version="0.7.0">r-spocc</requirement>
    </requirements>
    <command detect_errors="exit_code"><![CDATA[
        Rscript '$__tool_directory__/spocc_occ.R' '$sname' '$from' $limit; 

        #if $from=='gbif':
            sed -z -i -e 's/\n  \"/ /g' -e 's/\n}/ /g' output.tab
        #end if
    ]]></command>

    <inputs>
        <param name="sname" type="text" label="Scientific name" value="Genus species"/>
        <param name="from" type="text" label="Data source to get data from, any combination of gbif, bison, inat, ebird, antweb, ala, idigbio, obis, ecoengine and/or vertnet" value="gbif,bison,inat"/>
        <param name="limit" type="integer" label="Number of records to return. This is passed across all sources" value="500"/>
    </inputs>
    <outputs>
        <data name="output" format="tabular" from_work_dir="output.tab" label="Species occurences"/>
    </outputs>

<!-- Warning old test -->
    <tests>
        <test> 
            <param name="sname" value="Canis lupus"/>
            <param name="from" value="gbif,bison"/>
            <param name="limit" value="50"/>
            <param name="taxref_choice" value="do_link_taxref"/>
            <output name="output" file="canis-lupus_gbif_bison.tab" ftype="tabular"/>
            <output name="output_taxref" file="res_taxref_grep.tab" ftype="tabular"/>
        </test>
    </tests>

    <help><![CDATA[
==========
Spocc::occ
==========       
**What id does**

Search on a single species name, or many. And search across a single or many data sources.

|

**How it works**

This tool use the spocc R package :

A programmatic interface to many species occurrence data sources, including Global Biodiversity Information Facility ('GBIF'), 'USGSs' Biodiversity Information Serving Our Nation ('BISON'), 'iNaturalist', Berkeley 'Ecoinformatics' Engine, 'AntWeb', Integrated Digitized 'Biocollections' ('iDigBio'), 'VertNet', Ocean 'Biogeographic' Information System ('OBIS'), and Atlas of Living Australia ('ALA'). Includes functionality for retrieving species occurrence data, and combining those data.

|

Original source here : https://cran.r-project.org/web/packages/spocc/index.html

    ]]></help>
</tool>