annotate spocc_occ_notaxref.xml @ 13:a9221962bf2f draft

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