")
if (all(getSampleNames(xobject) == sampleNamesList$sampleNamesMakeNames)) {
- sampleNameHeaderHtml <- paste0("sample | ")
- sampleNameHtml <- paste0("", getSampleNames(xobject), " | ")
+ sampleNameHeaderHtml <- paste0("sample | ")
+ sampleNameHtml <- paste0("", getSampleNames(xobject), " | ")
} else {
- sampleNameHeaderHtml <- paste0("sample | sample renamed | ")
- sampleNameHtml <- paste0("", getSampleNames(xobject), " | ", sampleNamesList$sampleNamesMakeNames, " | ")
+ sampleNameHeaderHtml <- paste0("sample | sample renamed | ")
+ sampleNameHtml <- paste0("", getSampleNames(xobject), " | ", sampleNamesList$sampleNamesMakeNames, " | ")
}
if (!exists("md5sumList")) {
- md5sumHeaderHtml <- ""
- md5sumHtml <- ""
- md5sumLegend <- ""
+ md5sumHeaderHtml <- ""
+ md5sumHtml <- ""
+ md5sumLegend <- ""
} else if (is.null(md5sumList$removalBadCharacters)) {
- md5sumHeaderHtml <- paste0("md5sum* | ")
- md5sumHtml <- paste0("", md5sumList$origin, " | ")
- md5sumLegend <- "
*The program md5sum is designed to verify data integrity. So you can check if the data were uploaded correctly or if the data were changed during the process."
+ md5sumHeaderHtml <- paste0("md5sum* | ")
+ md5sumHtml <- paste0("", md5sumList$origin, " | ")
+ md5sumLegend <- "
*The program md5sum is designed to verify data integrity. So you can check if the data were uploaded correctly or if the data were changed during the process."
} else {
- md5sumHeaderHtml <- paste0("md5sum* | md5sum** after bad characters removal | ")
- md5sumHtml <- paste0("", md5sumList$origin, " | ", md5sumList$removalBadCharacters, " | ")
- md5sumLegend <- "
*The program md5sum is designed to verify data integrity. So you can check if the data were uploaded correctly or if the data were changed during the process.
**Because some bad characters (eg: accent) were removed from your original file, the checksum have changed too.
"
+ md5sumHeaderHtml <- paste0("md5sum* | md5sum** after bad characters removal | ")
+ md5sumHtml <- paste0("", md5sumList$origin, " | ", md5sumList$removalBadCharacters, " | ")
+ md5sumLegend <- "
*The program md5sum is designed to verify data integrity. So you can check if the data were uploaded correctly or if the data were changed during the process.
**Because some bad characters (eg: accent) were removed from your original file, the checksum have changed too.
"
}
writehtml("", sampleNameHeaderHtml, "filename | ", md5sumHeaderHtml, "
")
@@ -155,43 +159,44 @@
writehtml("timestamp*** | function | argument | value |
")
# XCMS 3.x
if (class(xobject) == "XCMSnExp") {
- xcmsFunction <- NULL
- params <- NULL
- for (processHistoryItem in processHistory(xobject)) {
- if ((xcmsFunction == processType(processHistoryItem)) && equalParams(params, processParam(processHistoryItem)))
- next
- timestamp <- processDate(processHistoryItem)
- xcmsFunction <- processType(processHistoryItem)
- params <- processParam(processHistoryItem)
- writehtml("", timestamp, " | ", xcmsFunction, " | ")
- writeraw(htmlOutput, params)
- writehtml(" |
")
- }
+ xcmsFunction <- NULL
+ params <- NULL
+ for (processHistoryItem in processHistory(xobject)) {
+ if ((xcmsFunction == processType(processHistoryItem)) && equalParams(params, processParam(processHistoryItem))) {
+ next
+ }
+ timestamp <- processDate(processHistoryItem)
+ xcmsFunction <- processType(processHistoryItem)
+ params <- processParam(processHistoryItem)
+ writehtml("", timestamp, " | ", xcmsFunction, " | ")
+ writeraw(htmlOutput, params)
+ writehtml(" |
")
+ }
}
# CAMERA and retrocompatability XCMS 1.x
if (exists("listOFlistArguments")) {
- for (tool in names(listOFlistArguments)) {
- listOFlistArgumentsDisplay <- listOFlistArguments[[tool]][!(names(listOFlistArguments[[tool]]) %in% argBlacklist)]
+ for (tool in names(listOFlistArguments)) {
+ listOFlistArgumentsDisplay <- listOFlistArguments[[tool]][!(names(listOFlistArguments[[tool]]) %in% argBlacklist)]
- timestamp <- strsplit(tool, "_")[[1]][1]
- xcmsFunction <- strsplit(tool, "_")[[1]][2]
- writehtml("", timestamp, " | ", xcmsFunction, " | ")
- line_begin <- ""
- for (arg in names(listOFlistArgumentsDisplay)) {
- writehtml(line_begin, "", arg, " | ", unlist(listOFlistArgumentsDisplay[arg][1]), " |
")
- line_begin <- ""
+ timestamp <- strsplit(tool, "_")[[1]][1]
+ xcmsFunction <- strsplit(tool, "_")[[1]][2]
+ writehtml("
", timestamp, " | ", xcmsFunction, " | ")
+ line_begin <- ""
+ for (arg in names(listOFlistArgumentsDisplay)) {
+ writehtml(line_begin, "", arg, " | ", unlist(listOFlistArgumentsDisplay[arg][1]), " |
")
+ line_begin <- ""
+ }
}
- }
}
writehtml("