-
Notifications
You must be signed in to change notification settings - Fork 0
/
saveData.R
30 lines (27 loc) · 1.14 KB
/
saveData.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# ============================================================================
#
# DESCRIPTION: Data analysis for Fíji pHlorin workflow
#
# AUTHOR: Christopher Schmied,
# CONTACT: schmied@dzne.de
# INSITUTE: Leibniz-Forschungsinstitut f r Molekulare Pharmakologie (FMP)
# Cellular Imaging - Core facility
# Campus Berlin-Buch
# Robert-Roessle-Str. 10
# 13125 Berlin, Germany
#
# BUGS:
# NOTES:
# DEPENDENCIES:
#
# VERSION: 1.0.0
# CREATED: 2018-05-24
# REVISION: 2018-08-07
#
# ============================================================================
# saving of the result tables in a csv
writeToCsv <- function(outdir, resultname, table.signal, table.background, finalTable){
write.csv(table.signal, file = file.path(outdir,paste0( resultname, "_RawSignal.csv" ), fsep = .Platform$file.sep))
write.csv(table.background, file = file.path(outdir,paste0( resultname, "_RawBackground.csv" ), fsep = .Platform$file.sep))
write.csv(finalTable, file = file.path(outdir,paste0( resultname, "_Mean.csv" ), fsep = .Platform$file.sep))
}