annotate make_eml.R @ 0:330f15f2ad3f draft

planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
author ecology
date Sat, 23 Dec 2023 20:40:29 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
1 ##07/06/2023 ##Genthon Tanguy
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
2 ##update 15/11/2023 ## Seguineau Pauline
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
3
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
4 ###make_eml
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
5
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
6 args = commandArgs(trailingOnly=TRUE)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
7 if(length(args)>0){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
8 title <- args[1]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
9 start <- args[2]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
10 end <-args[3]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
11 data_table <- args[4]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
12 data_raster <- args[5]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
13 data_vector <- args[6]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
14 data_other <- args[7]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
15 destable <- args[8]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
16 desraster<- args[9]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
17 desvector<- args[10]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
18 desother <- args[11]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
19 quote <- args[12]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
20 table_url <- args[13]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
21 other_url <- args[14]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
22 raster_url <- args[15]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
23 vector_url <- args[16]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
24 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
25
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
26 #Load package
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
27
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
28 library(EMLassemblyline)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
29 sessionInfo()
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
30
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
31
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
32 ###Format data###
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
33 if (data_table == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
34 table=NULL
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
35 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
36 table = strsplit(data_table," ")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
37 for (file in table){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
38 name_table = gsub("\\.[a-zA-Z]*", "", file)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
39 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
40
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
41
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
42 if (quote != ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
43 quote = strsplit(quote,",")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
44 if (length(quote[[1]]) != length(table[[1]])){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
45 stop("Your number of quote(s) isn't equal to your number of data table file(s). Please enter the quote parameter as many time as the number of data tables you've input")}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
46 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
47
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
48
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
49 tablequote=NULL
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
50 for (quote_table in quote[[1]]){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
51 if (quote_table=="quote"){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
52 quote_table = sub("quote",'"', quote_table)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
53 else if (quote_table=="apostrophe"){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
54 quote_table = gsub("apostrophe","'",quote_table)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
55 else if (quote_table=="none"){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
56 quote_table = gsub("none","",quote_table)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
57 tablequote = c(tablequote, quote_table)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
58 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
59
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
60
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
61 if (data_raster == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
62 raster=NULL
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
63 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
64 raster = strsplit(data_raster," ")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
65 for (file in raster){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
66 name_raster = gsub("\\.[a-zA-Z]*", "", file)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
67 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
68
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
69 if (data_vector == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
70 vector=NULL
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
71 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
72 vector = strsplit(data_vector," ")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
73 for (file in vector){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
74 name_vector = gsub("\\.[a-zA-Z]*", "", file)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
75 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
76
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
77 if (data_other == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
78 other=NULL
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
79 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
80 other = strsplit(data_other," ")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
81 for (file in other){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
82 name_other = gsub("\\.[a-zA-Z]*", "", file)}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
83 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
84
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
85 if (data_table !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
86 if (destable == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
87 des_table = name_table
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
88 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
89 des_table = strsplit(destable,",")}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
90 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
91
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
92 if (data_raster !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
93 if (desraster == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
94 des_raster = name_raster
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
95 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
96 des_raster = strsplit(desraster,",")}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
97 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
98
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
99 if (data_vector !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
100 if (desvector == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
101 des_vector = name_vector
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
102 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
103 des_vector = strsplit(desvector,",")}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
104 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
105
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
106 if (data_other !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
107 if (desother == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
108 des_other = name_other
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
109 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
110 des_other = strsplit(desother,",")}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
111 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
112
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
113 if (data_table !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
114 if (table_url == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
115 urltable = ""
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
116 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
117 table_url = gsub("\\-" ,"", table_url)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
118 urltable = strsplit(table_url,",")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
119 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
120 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
121
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
122 if (data_other !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
123 if (other_url == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
124 urlother = ""
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
125 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
126 other_url = gsub("\\-" ,"", other_url)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
127 urlother = strsplit(other_url,",")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
128 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
129 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
130
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
131 if (data_raster !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
132 if (raster_url == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
133 urlraster = ""
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
134 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
135 raster_url = gsub("\\-" ,"", raster_url)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
136 urlraster = strsplit(raster_url,",")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
137 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
138 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
139
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
140 if (data_vector !=""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
141 if (vector_url == ""){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
142 urlvector = ""
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
143 }else{
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
144 vector_url = gsub("\\-" ,"", vector_url)
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
145 urlvector = strsplit(vector_url,",")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
146 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
147 }
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
148
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
149
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
150
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
151 ###Make EML###
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
152
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
153 if (!is.null(table) && !is.null(raster) && !is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
154
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
155 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
156 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
157 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
158 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
159 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
160 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
161 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
162 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
163 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
164 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
165 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
166 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
167 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
168 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
169 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
170 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
171 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
172 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
173 spatial.vector.url = urlvector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
174 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
175 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
176 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
177 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
178
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
179 }else if (is.null(table) && is.null(raster) && is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
180
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
181 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
182 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
183 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
184 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
185 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
186 temporal.coverage = c(start,end))
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
187
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
188 }else if (!is.null(table) && is.null(raster) && is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
189
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
190 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
191 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
192 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
193 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
194 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
195 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
196 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
197 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
198 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
199 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
200 data.table.url = urltable[[1]]
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
201 )
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
202
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
203 }else if (!is.null(table) && !is.null(raster) && is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
204
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
205 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
206 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
207 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
208 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
209 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
210 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
211 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
212 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
213 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
214 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
215 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
216 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
217 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
218 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
219 spatial.raster.url = urlraster[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
220
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
221 }else if (!is.null(table) && !is.null(raster) && !is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
222
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
223 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
224 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
225 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
226 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
227 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
228 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
229 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
230 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
231 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
232 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
233 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
234 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
235 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
236 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
237 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
238 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
239 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
240 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
241 spatial.vector.url = urlvector[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
242
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
243 }else if (is.null(table) && !is.null(raster) && is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
244
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
245 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
246 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
247 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
248 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
249 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
250 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
251 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
252 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
253 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
254 spatial.raster.url = urlraster[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
255
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
256 }else if (is.null(table) && !is.null(raster) && !is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
257
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
258 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
259 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
260 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
261 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
262 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
263 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
264 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
265 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
266 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
267 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
268 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
269 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
270 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
271 spatial.vector.url = urlvector[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
272
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
273 }else if (is.null(table) && !is.null(raster) && !is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
274
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
275 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
276 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
277 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
278 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
279 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
280 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
281 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
282 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
283 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
284 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
285 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
286 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
287 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
288 spatial.vector.url = urlvector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
289 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
290 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
291 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
292 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
293
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
294 }else if (is.null(table) && is.null(raster) && !is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
295
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
296 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
297 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
298 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
299 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
300 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
301 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
302 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
303 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
304 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
305 spatial.vector.url = urlvector[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
306
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
307 }else if (is.null(table) && is.null(raster) && !is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
308
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
309 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
310 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
311 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
312 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
313 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
314 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
315 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
316 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
317 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
318 spatial.vector.url = urlvector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
319 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
320 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
321 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
322 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
323
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
324 }else if (is.null(table) && is.null(raster) && is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
325
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
326 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
327 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
328 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
329 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
330 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
331 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
332 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
333 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
334 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
335 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
336
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
337 }else if (!is.null(table) && is.null(raster) && !is.null(vector) && is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
338
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
339 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
340 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
341 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
342 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
343 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
344 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
345 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
346 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
347 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
348 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
349 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
350 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
351 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
352 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
353 spatial.vector.url = urlvector[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
354
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
355 }else if (!is.null(table) && is.null(raster) && is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
356
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
357 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
358 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
359 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
360 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
361 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
362 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
363 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
364 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
365 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
366 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
367 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
368 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
369 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
370 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
371 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
372
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
373 }else if (is.null(table) && !is.null(raster) && is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
374
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
375 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
376 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
377 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
378 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
379 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
380 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
381 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
382 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
383 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
384 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
385 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
386 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
387 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
388 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
389
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
390 }else if (!is.null(table) && is.null(raster) && !is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
391
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
392 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
393 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
394 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
395 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
396 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
397 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
398 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
399 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
400 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
401 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
402 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
403 spatial.vector=vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
404 spatial.vector.name = name_vector,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
405 spatial.vector.description = des_vector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
406 spatial.vector.url = urlvector[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
407 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
408 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
409 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
410 other.entity.url= urlother[[1]])
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
411
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
412 }else if (!is.null(table) && !is.null(raster) && is.null(vector) && !is.null(other)){
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
413
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
414 EMLassemblyline::make_eml(
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
415 path="output_template",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
416 data.path="data_files",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
417 eml.path=".",
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
418 dataset.title = title,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
419 temporal.coverage = c(start,end),
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
420 data.table=table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
421 data.table.name = name_table,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
422 data.table.description = des_table[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
423 data.table.quote.character = tablequote,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
424 data.table.url = urltable[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
425 spatial.raster=raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
426 spatial.raster.name = name_raster,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
427 spatial.raster.description = des_raster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
428 spatial.raster.url = urlraster[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
429 other.entity=other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
430 other.entity.name = name_other,
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
431 other.entity.description = des_other[[1]],
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
432 other.entity.url= urlother[[1]])}
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
433
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
434 issues()
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
435 old.names <- list.files(path=".", pattern=".xml")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
436 file.rename(from=old.names, to="eml.xml")
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
437
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
438
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
439
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
440
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
441
330f15f2ad3f planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff changeset
442