Fix invalid data filename
raw.fixInvalidFile.Rd
Fix invalid data filename
Usage
raw.fixInvalidFile(
filename,
addInstrument = "",
addUser = "",
addProject = "",
addSample = "",
renameFile = FALSE
)
Arguments
- filename
name of file
- addInstrument
instrument to be added
- addUser
user to be added
- addProject
project to be added
- addSample
sample to be added
- renameFile
if
TRUE
file will be renamed
Examples
f = raw.findFiles(raw.getSamplePath(), instrument='MM160622SI1')
print(f)
#> [1] "/private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/RtmpfTPid7/temp_libpath302c870eeeb/RAWdataR/extdata/20160718_Dual_MM_MM160622SI1_20160718_2.5K_MVSH_00001.txt"
f.new = raw.fixInvalidFile(f, addInstrument='vsm')
print(paste("Old name:",f))
#> [1] "Old name: /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/RtmpfTPid7/temp_libpath302c870eeeb/RAWdataR/extdata/20160718_Dual_MM_MM160622SI1_20160718_2.5K_MVSH_00001.txt"
print(paste("New name:",f.new))
#> [1] "New name: /private/var/folders/bz/zk25f6614w5b3_f61czs2dtc0000gr/T/RtmpfTPid7/temp_libpath302c870eeeb/RAWdataR/extdata/20160718_Dual_MM_vsm_MM160622SI1_20160718_2.5K_MVSH_00001.txt"