set_phase: Set the phase to be validated.

View source: R/misc.R

set_phaseR Documentation

Set the phase to be validated.

Description

A group might choose to combine two different phases, due to the complications associated with PASS1A/1C. If they choose to combine two phases, the CAS must provide a new file metadata_phase.txt with a single line, as for example: PASS1A-06|PASS1C-06. This function checks if the file is available, and set that phase as the phases to validate. In summary, the order of preference is:

  1. function's argument: dmaqc_phase2validate (if provided in the validation functions)

  2. metadata_phase.txt file if available in the batch folder.

  3. Phase in folder structure

Usage

set_phase(input_results_folder, dmaqc_phase2validate, verbose = TRUE)

Arguments

input_results_folder

(char) path to the PROCESSED/RESULTS folder to check

dmaqc_phase2validate

(data.frame) dmaqc shipping information

verbose

(logical) TRUE (default) shows messages

Value

(int) the phase to be validated.


MoTrPAC/MotrpacBicQC documentation built on Sept. 26, 2024, 11:10 a.m.