0
|
1 <tool id="spocc_occ_no_taxrefv2" name="Get species occurrences data" version="0.2">
|
|
2 <description>from GBIF, ALA, iNAT and others</description>
|
|
3 <requirements>
|
15
|
4
|
14
|
5 <requirement type="package" version="0.3_28">r-rgeos</requirement>
|
12
|
6 <requirement type="package" version="0.8.0">r-spocc</requirement>
|
0
|
7 </requirements>
|
|
8 <command detect_errors="exit_code"><![CDATA[
|
4
|
9 Rscript '$__tool_directory__/spocc_occ.R' '$sname' '$from' $limit;
|
0
|
10
|
|
11 #if $from=='gbif':
|
|
12 sed -z -i -e 's/\n \"/ /g' -e 's/\n}/ /g' output.tab
|
|
13 #end if
|
|
14 ]]></command>
|
|
15
|
|
16 <inputs>
|
|
17 <param name="sname" type="text" label="Scientific name" value="Genus species"/>
|
|
18 <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"/>
|
|
19 <param name="limit" type="integer" label="Number of records to return. This is passed across all sources" value="500"/>
|
|
20 </inputs>
|
|
21 <outputs>
|
|
22 <data name="output" format="tabular" from_work_dir="output.tab" label="Species occurences"/>
|
|
23 </outputs>
|
|
24
|
|
25 <!-- Warning old test -->
|
|
26 <tests>
|
|
27 <test>
|
|
28 <param name="sname" value="Canis lupus"/>
|
|
29 <param name="from" value="gbif,bison"/>
|
|
30 <param name="limit" value="50"/>
|
|
31 <param name="taxref_choice" value="do_link_taxref"/>
|
|
32 <output name="output" file="canis-lupus_gbif_bison.tab" ftype="tabular"/>
|
|
33 <output name="output_taxref" file="res_taxref_grep.tab" ftype="tabular"/>
|
|
34 </test>
|
|
35 </tests>
|
|
36
|
|
37 <help><![CDATA[
|
|
38 ==========
|
|
39 Spocc::occ
|
|
40 ==========
|
|
41 **What id does**
|
|
42
|
|
43 Search on a single species name, or many. And search across a single or many data sources.
|
|
44
|
|
45 |
|
|
46
|
|
47 **How it works**
|
|
48
|
|
49 This tool use the spocc R package :
|
|
50
|
|
51 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.
|
|
52
|
|
53 |
|
|
54
|
|
55 Original source here : https://cran.r-project.org/web/packages/spocc/index.html
|
|
56
|
|
57 ]]></help>
|
|
58 </tool>
|