Mercurial > repos > ecology > raster_template
annotate vector_templates.R @ 2:9eaf84bf856f draft
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit 2d36dc964f548b5acbc43ffd78e51e6fc7dc80bb
author | ecology |
---|---|
date | Tue, 10 Sep 2024 12:52:44 +0000 |
parents | b34c5a70b706 |
children |
rev | line source |
---|---|
0
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
1 #15/12/2023 #SEGUINEAU Pauline |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
2 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
3 #Load packages |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
4 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
5 library(EMLassemblyline) |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
6 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
7 #Load arguments |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
8 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
9 if (length(commandArgs(trailingOnly = TRUE)) > 0) { |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
10 data_vector <- commandArgs(trailingOnly = TRUE)[1] |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
11 } |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
12 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
13 #Transform arguments |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
14 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
15 vector = strsplit(data_vector," ") |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
16 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
17 #Make templates to describe data raster |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
18 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
19 template_vector_attributes(path = ".",data.path= "data_files", vector.file = vector[[1]]) |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
20 template_categorical_variables(path = ".", data.path = "data_files") |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
21 |
b34c5a70b706
planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/master/tools/EMLassemblyline commit f00c48e2a16ba6154e6c1aa50330586eefb13a32
ecology
parents:
diff
changeset
|
22 |