The handling of the output of ECG and of ECG's own errors has been transfered to a new wrapper script that calls ECG. Now, ECG doesn't take an output log file as parameter, rather just write everything to the terminal. It is then retrieved by the wrapper scripts that writes the ouput to the given output log file, and logs any script crash. README has been updated according to these changes, and the verbose and log path options of ECG have been removed. Close #25.

Started integrating the analysis to the workflow, not done yet (#44).
Removed legacy line and bar plot scripts.
This commit is contained in:
antux18 2024-08-15 12:16:53 +02:00
parent aad9318e6e
commit cb1a62217c
2 changed files with 0 additions and 32 deletions

View File

@ -1,16 +0,0 @@
#!/usr/bin/env Rscript
# Libraries:
library(reshape2)
library(tidyverse)
# Parsing command line arguments:
options = commandArgs(trailingOnly = TRUE)
filename = options[1]
table_header = options[-1]
read_csv(filename, col_names = table_header) %>%
mutate(timestamp = as_date(as_datetime(timestamp))) %>% # Formatting the date
melt(id.vars = "timestamp", variable.name = "category", value.name = "amount") %>% # Formatting the table to plot each category
ggplot(aes(x = timestamp, y = amount, fill = category)) +
geom_bar(stat = "identity")

View File

@ -1,16 +0,0 @@
#!/usr/bin/env Rscript
# Libraries:
library(reshape2)
library(tidyverse)
# Parsing command line arguments:
options = commandArgs(trailingOnly = TRUE)
filename = options[1]
table_header = options[-1]
read_csv(filename, col_names = table_header) %>%
mutate(timestamp = as_date(as_datetime(timestamp))) %>% # Formatting the date
melt(id.vars = "timestamp", variable.name = "category", value.name = "amount") %>% # Formatting the table to plot each category
ggplot(aes(x = timestamp, y = amount)) +
geom_line(aes(color = category))