Import raw data
Arguments
- manifest_file
character, file path(s) to manifest(s)
- template_file
character, with datapaths and names of results file(s) or character with file path of templates file(s)
- results_file
character, with datapaths and names of results file(s) or character with file path of results file(s)
- instrument
string with type of instrument used
Examples
td <- get_test_data()
i_df <- import_data(manifest_path(td), template_path(td), result_path(td))
#> INFO [2024-11-06 07:59:27] Manifest loaded successfully
#> INFO [2024-11-06 07:59:27] Reading Template_7daytreated.xlsx with load_templates_xlsx
#> INFO [2024-11-06 07:59:28] Loading Template_7daytreated.xlsx
#> INFO [2024-11-06 07:59:28] Loading Template_Untreated.xlsx
#> INFO [2024-11-06 07:59:28] Templates loaded successfully!
#> INFO [2024-11-06 07:59:28] Reading file /usr/local/lib/R/site-library/gDRimport/extdata/data1/RawData_day0.xlsx, sheet Readout_0077vs0068_day7
#> New names:
#> • `` -> `...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`
#> INFO [2024-11-06 07:59:28] Plate 201904190a read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904190b read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904190c read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904190d read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904190e read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904190f read; 384 wells
#> INFO [2024-11-06 07:59:28] File done
#> INFO [2024-11-06 07:59:28] Reading file /usr/local/lib/R/site-library/gDRimport/extdata/data1/RawData_day7.xlsx, sheet Readout_0077vs0068_day7
#> New names:
#> • `` -> `...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`
#> INFO [2024-11-06 07:59:28] Plate 201904197a read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904197b read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904197c read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904197d read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904197e read; 384 wells
#> INFO [2024-11-06 07:59:28] Plate 201904197f read; 384 wells
#> INFO [2024-11-06 07:59:28] File done
#> INFO [2024-11-06 07:59:28] Merging data
#> INFO [2024-11-06 07:59:28] Merging the metadata (manifest and treatment files)
#> WARN [2024-11-06 07:59:28] 4608 well loaded, 768 wells discarded for lack of annotation,
#> 3840 data point selected
#>