annotate make_eml.R @ 0:ad96b20423cf draft default tip

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