Skip to content

Commit 5f1a992

Browse files
committed
add html report
1 parent 9dbc487 commit 5f1a992

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

R/app-Gce.R

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ ezMethodGce = function(input=NA, output=NA, param=NA, htmlFile="00index.html"){
1818
ezSystem(cmd)
1919
cmd = paste("convert", paste0(sampleName, "kmer.freq.stat_real_theory_distribution.svg"), paste0(sampleName, "kmer.freq.stat_real_theory_distribution.png"))
2020
ezSystem(cmd)
21+
22+
#html report)
23+
htmlFile = output$getColumn("Report")
24+
styleFiles <- file.path(system.file("templates", package="ezRun"),
25+
c("fgcz.css", "Gce.Rmd",
26+
"fgcz_header.html", "banner.png"))
27+
file.copy(from=styleFiles, to=".", overwrite=TRUE)
28+
params = list(sample=sampleName)
29+
rmarkdown::render(input="Gce.Rmd", envir = new.env(), output_dir=".", output_file=htmlFile, quiet=TRUE)
30+
2131
return("Success")
2232
}
2333

0 commit comments

Comments
 (0)