Mercurial > repos > iuc > ampvis2_export_otu
annotate export_otu.xml @ 1:f92f6cb141fd draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ampvis2 commit e0ad9ce8f508215ec6af69be2682a0faf38415da
| author | iuc |
|---|---|
| date | Mon, 10 Nov 2025 12:50:02 +0000 |
| parents | adab1cdb8811 |
| children |
| rev | line source |
|---|---|
|
1
f92f6cb141fd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ampvis2 commit e0ad9ce8f508215ec6af69be2682a0faf38415da
iuc
parents:
0
diff
changeset
|
1 <tool id="ampvis2_export_otu" name="ampvis2 export otu" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@" license="MIT"> |
|
0
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
2 <description></description> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
3 <macros> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
5 </macros> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
6 <expand macro="header"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
7 <command detect_errors="exit_code"><![CDATA[ |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
8 Rscript '$rscript' && |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
9 mv tmp_otu.tsv $otu_long |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
10 ]]></command> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
11 <configfiles> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
12 <configfile name="rscript"><![CDATA[ |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
13 library(ampvis2, quietly = TRUE) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
14 library(phyloseq) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
15 library(tibble) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
16 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
17 ## read the data |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
18 data <- readRDS("$data") |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
19 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
20 ## Export otutable (including taxonomy) from an ampvis2 object as TSV |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
21 amp_export_otutable(data, filename = "tmp_otu", sep = "\t", extension = "tsv", normalise = "$norm") |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
22 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
23 ## get only tax table (first column OTU ID) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
24 tax_table <- data\$tax |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
25 tax_table <- tax_table[,c(8,(ncol(tax_table)-6):(ncol(tax_table) - 1))] |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
26 write.table(tax_table, "$tax", sep = "\t", row.names=FALSE, quote = FALSE) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
27 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
28 ## get only otu table (first column OTU ID) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
29 #if $norm |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
30 data_norm <- normaliseTo100(data) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
31 otu_table <- data_norm\$abund |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
32 #else |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
33 otu_table <- data\$abund |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
34 #end if |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
35 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
36 otu_table <- cbind(OTU = rownames(otu_table), otu_table) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
37 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
38 ## add index col manually: https://stackoverflow.com/questions/2478352/write-table-writes-unwanted-leading-empty-column-to-header-when-has-rownames |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
39 write.table(otu_table, "$otu_short", sep = "\t", row.names=FALSE, quote = FALSE) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
40 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
41 ## get metadata |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
42 meta_data = data\$metadata |
|
1
f92f6cb141fd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ampvis2 commit e0ad9ce8f508215ec6af69be2682a0faf38415da
iuc
parents:
0
diff
changeset
|
43 write.table(meta_data, "$meta", sep = "\t", row.names = FALSE, quote = FALSE) |
|
0
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
44 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
45 ## needs to be numeric |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
46 otu_table <- apply(otu_table, 2, as.numeric) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
47 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
48 ## needs to be character so that reupload as ampvis object works |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
49 meta_data[] <- lapply(meta_data, as.character) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
50 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
51 OTU <- otu_table(otu_table, taxa_are_rows = TRUE) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
52 TAX <- tax_table(tax_table) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
53 META <- sample_data(meta_data) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
54 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
55 ## we always assume this names and order |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
56 colnames(TAX) <- c("Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species") |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
57 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
58 physeq <- phyloseq(OTU, TAX, META) |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
59 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
60 ## Save the Phyloseq object |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
61 saveRDS(physeq, "$phyloseq") |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
62 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
63 ]]></configfile> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
64 </configfiles> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
65 <inputs> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
66 <expand macro="rds_input_macro"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
67 <param argument="norm" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Transform the OTU read counts to be in percent per sample"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
68 <param name="output_selection" type="select" multiple="true" label="Output files selection" min="1"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
69 <option value="otu_long" selected="false"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
70 Long OTU with Taxonomy at the end |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
71 </option> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
72 <option value="otu_short" selected="true"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
73 Short OTU |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
74 </option> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
75 <option value="tax" selected="true"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
76 Taxonomy mapping |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
77 </option> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
78 <option value="meta" selected="true"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
79 Metadata mapping |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
80 </option> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
81 <option value="phyloseq" selected="false"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
82 Phyloseq object |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
83 </option> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
84 </param> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
85 </inputs> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
86 <outputs> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
87 <data name="otu_long" format="tabular" label="${tool.name}: Long OTU" > |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
88 <filter>"otu_long" in output_selection</filter> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
89 </data> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
90 <data name="otu_short" format="tabular" label="${tool.name}: Short OTU"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
91 <filter>"otu_short" in output_selection</filter> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
92 </data> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
93 <data name="tax" format="tabular" label="${tool.name}: Taxonomy mapping" > |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
94 <filter>"tax" in output_selection</filter> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
95 </data> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
96 <data name="meta" format="tabular" label="${tool.name}: Metadata mapping" > |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
97 <filter>"meta" in output_selection</filter> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
98 </data> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
99 <data name="phyloseq" format="phyloseq" label="${tool.name}: Phyloseq object" > |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
100 <filter>"phyloseq" in output_selection</filter> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
101 </data> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
102 </outputs> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
103 <tests> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
104 <!-- defaults --> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
105 <test expect_num_outputs="3"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
106 <param name="data" value="AalborgWWTPs-complete.rds" ftype="ampvis2"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
107 <output name="otu_short" value="output_otu_short.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
108 <output name="tax" value="output_otu_taxonomy_mapping.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
109 <output name="meta" value="output_metadata.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
110 </test> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
111 <test expect_num_outputs="5"> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
112 <param name="data" value="AalborgWWTPs-complete.rds" ftype="ampvis2"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
113 <param name="output_selection" value="otu_long,otu_short,tax,meta,phyloseq" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
114 <output name="otu_long" value="output_otu_long.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
115 <output name="otu_short" value="output_otu_short.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
116 <output name="tax" value="output_otu_taxonomy_mapping.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
117 <output name="meta" value="output_metadata.tsv" ftype="tabular" /> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
118 <output name="phyloseq" ftype="phyloseq" > |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
119 <assert_contents> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
120 <has_size value="12684" delta="10"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
121 </assert_contents> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
122 </output> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
123 </test> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
124 </tests> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
125 <help><![CDATA[ |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
126 What it does |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
127 ============ |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
128 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
129 Exports OTU/ASV, Taxonomy table, Metadata, or phyloseq object from an ampvis2 object. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
130 The taxonomy table in the phyloseq object always uses the following headers: |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
131 ``Kingdom, Phylum, Class, Order, Family, Genus, Species``. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
132 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
133 This can be changed using the `Add Rank Names to Phyloseq Object <toolshed.g2.bx.psu.edu/repos/iuc/phyloseq_add_rank_names/phyloseq_add_rank_names/1.50.0+galaxy2>`_ tool. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
134 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
135 The Galaxy tool calls the `amp_export_otutable <https://kasperskytte.github.io/ampvis2/reference/amp_export_otutable.html>`_ function |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
136 from the ampvis2 package. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
137 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
138 Input |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
139 ===== |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
140 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
141 @HELP_RDS_INPUT@ |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
142 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
143 Use case |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
144 ======== |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
145 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
146 Load your OTU into a ampvis object with ampvis load. Subset based on metadata and/or taxonomy. Export the OTU table / phyloseq object. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
147 Perform downstream analysis such as differential analysis and/or phyloseq visualization. |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
148 |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
149 ]]></help> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
150 <expand macro="citations"/> |
|
adab1cdb8811
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit f32c3d9a92dca8a60504824fc7bcee290c30a211
iuc
parents:
diff
changeset
|
151 </tool> |
