Mercurial > repos > iuc > vegan_diversity
annotate macros.xml @ 3:a2c047a2c380 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
author | iuc |
---|---|
date | Fri, 07 Sep 2018 11:30:36 -0400 |
parents | |
children | a1b80a746054 |
rev | line source |
---|---|
3
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
1 <macros> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
2 <xml name="requirements"> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
3 <requirements> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
4 <requirement type="package" version="@TOOL_VERSION@">r-vegan</requirement> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
5 <yield /> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
6 </requirements> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
7 </xml> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
8 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
9 <xml name="version_command"> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
10 <version_command><![CDATA[Rscript -e 'library(vegan)' 2>&1 > /dev/null | grep 'This is vegan']]></version_command> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
11 </xml> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
12 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
13 <xml name="stdio"> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
14 <stdio> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
15 <exit_code range="1:" /> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
16 <exit_code range=":-1" /> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
17 </stdio> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
18 </xml> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
19 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
20 <xml name="params_load_tabular_file"> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
21 <param name="input_abundance" type="data" format="tabular" label="File with abundance values for community" help="Rows are samples; columns are species/phyla/community classifier"/> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
22 <param name="species_column" label="Group name column" type="data_column" data_ref="input_abundance" value="6" help="Species, phylum, etc"/> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
23 <param name="sample_columns" label="Sample count columns" type="data_column" multiple="True" value="2" data_ref="input_abundance" help="Select each column that contains counts"/> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
24 <param name="header" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="False" label="Input has a header line"/> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
25 </xml> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
26 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
27 <token name="@RSCRIPT_LOAD_TABULAR_FILE@"><![CDATA[ |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
28 #set $int_species_column = int( str( $species_column ) ) |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
29 #set $fixed_sample_columns = [] |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
30 #for $sample_col in map( int, str( $sample_columns ).split( "," ) ): |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
31 #assert $sample_col != $int_species_column, "Sample label column and sample count columns must not be the same." |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
32 #silent $fixed_sample_columns.append( str( $sample_col if $sample_col < $int_species_column else $sample_col-1 ) ) |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
33 #end for |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
34 input_abundance <- read.delim("${input_abundance}", header=${header}, sep="\t", row.names=${ species_column }) |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
35 input_abundance <- t( input_abundance[ c( ${ ",".join( $fixed_sample_columns ) } )] ) |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
36 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
37 ]]> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
38 </token> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
39 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
40 <token name="@RSCRIPT_PREAMBLE@"><![CDATA[ |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
41 options(bitmapType='cairo')## No X11, so we'll use cairo |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
42 library(vegan) |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
43 ]]> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
44 </token> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
45 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
46 <token name="@TOOL_VERSION@">2.4-3</token> |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
47 |
a2c047a2c380
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/vegan/ commit e0cd7ae10ce97bed51594e7cc0b969a803d698b7
iuc
parents:
diff
changeset
|
48 </macros> |