annotate phyloseq_abundance_factor.r @ 0:3856a1590a11 draft default tip

"planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
author qfabrepo
date Mon, 14 Sep 2020 08:02:08 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
1
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
2 library('getopt')
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
3 suppressPackageStartupMessages(library('phyloseq'))
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
4 Sys.setenv("DISPLAY"=":1")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
5
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
6
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
7 cmd_args <- commandArgs(TRUE)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
8 options(warn=-1)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
9 option_specification = matrix(c(
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
10 'biomfile','b',2,'character',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
11 'metafile','m',2,'character',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
12 'xcolumn','x',2,'numeric',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
13 'lcolumn','l',2,'numeric',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
14 'factor1','f1',2,'numeric',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
15 'factor2','f2',1,'numeric',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
16 'outdir','o',2,'character',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
17 'htmlfile','h',2,'character'
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
18 ),byrow=TRUE,ncol=4);
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
19
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
20
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
21 options <- getopt(option_specification);
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
22 options(bitmapType="cairo")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
23
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
24
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
25
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
26 if (!is.null(options$outdir)) {
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
27 # Create the directory
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
28 dir.create(options$outdir,FALSE)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
29 }
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
30
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
31
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
32 galaxy_biom <- import_biom(options$biomfile)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
33 galaxy_map <- import_qiime_sample_data(options$metafile)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
34
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
35
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
36 tax_col_norm <- c("Kingdom","Phylum","Class","Order","Family","Genus","Species")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
37 tax_col_extra <- c("None","Kingdom","Phylum","Class","Order","Family","Genus","Species")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
38
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
39 number.of.tax.rank<-length(colnames(tax_table(galaxy_biom)))
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
40
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
41 if( number.of.tax.rank == 7){
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
42 colnames(tax_table(galaxy_biom)) <- tax_col_norm
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
43 }else{
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
44 colnames(tax_table(galaxy_biom)) <- tax_col_extra
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
45 }
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
46
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
47
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
48 AIP_galaxy <- merge_phyloseq(galaxy_biom,galaxy_map)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
49
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
50
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
51 pdffile <- gsub("[ ]+", "", paste(options$outdir,"/abundance.pdf"))
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
52 pngfile_abundance <- gsub("[ ]+", "", paste(options$outdir,"/abundance.png"))
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
53 htmlfile <- gsub("[ ]+", "", paste(options$htmlfile))
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
54
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
55
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
56 ###### To obtain the column name in metadata ################
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
57 x.selectedColumn<-colnames(galaxy_map)[options$xcolumn]
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
58 l.selectedColumn<-colnames(galaxy_map)[options$lcolumn]
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
59 f1.selectedColumn<-colnames(galaxy_map)[options$factor1]
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
60
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
61 factor.var <- f1.selectedColumn
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
62
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
63 if(!is.null(options$factor2)){
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
64 f2.selectedColumn<-colnames(galaxy_map)[options$factor2]
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
65 factor.var <- paste(f1.selectedColumn,f2.selectedColumn,sep="+")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
66 }
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
67
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
68
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
69 # Produce PDF file
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
70 pdf(pdffile);
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
71 plot_bar(AIP_galaxy,x=x.selectedColumn,facet_grid = paste('~', factor.var),fill=l.selectedColumn)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
72 garbage<-dev.off();
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
73
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
74 #png('abundance_1.png')
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
75 bitmap(pngfile_abundance,"png16m")
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
76 plot_bar(AIP_galaxy,x=x.selectedColumn,facet_grid = paste('~', factor.var),fill=l.selectedColumn)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
77 garbage<-dev.off()
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
78
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
79 # Produce the HTML file
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
80 htmlfile_handle <- file(htmlfile)
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
81 html_output = c('<html><body>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
82 '<table align="center">',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
83 '<tr>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
84 '<td valign="middle" style="vertical-align:middle;">',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
85 '<a href="abundance.pdf"><img src="abundance.png"/></a>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
86 '</td>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
87 '</tr>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
88 '</table>',
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
89 '</html></body>');
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
90 writeLines(html_output, htmlfile_handle);
3856a1590a11 "planemo upload for repository https://github.com/QFAB-Bioinformatics/metaDEGalaxy/tree/master/phyloseq_abundance_factor commit 8bd68662b72404f6291e9628327dcb109b5fa55e"
qfabrepo
parents:
diff changeset
91 close(htmlfile_handle);