MoTrPAC / MotrpacBicQC

R package for the MoTrPAC community
https://motrpac.github.io/MotrpacBicQC/index.html
MIT License
8 stars 4 forks source link

Deal with more than 1 `metadata_phase.txt` files #224

Closed biodavidjm closed 8 months ago

biodavidjm commented 10 months ago

The QCs should be able to deal with more than one metadata_phase.txt. Currently, it throws an error:

+ Motrpac phase reported: HUMAN-PRECOVIDHUMAN-PRECOVID (info from metadata_phase.txt available): OK                                        
Error in if (grepl("\\|", phase_details)) { : 
  the condition has length > 1
In addition: Warning messages:
1: In is.na(phase_details) || phase_details == "" :
  'length(x) = 2 > 1' in coercion to 'logical(1)'
2: In is.na(phase_details) || phase_details == "" :
  'length(x) = 2 > 1' in coercion to 'logical(1)'