Skip to content

Commit

Permalink
Merge pull request #212 from MoTrPAC/develop
Browse files Browse the repository at this point in the history
MotrpacBicQC 0.8.9: process BICRESULTS and more
  • Loading branch information
biodavidjm committed Jul 7, 2023
2 parents 1969b8c + 1aefbd4 commit 5113b9b
Show file tree
Hide file tree
Showing 80 changed files with 107 additions and 91 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: MotrpacBicQC
Type: Package
Title: QC/QA functions for the MoTrPAC community
Version: 0.8.8
Date: 2023-06-15
Version: 0.8.9
Date: 2023-07-07
Author: MoTrPAC Bioinformatics Center
Maintainer: David Jimenez-Morales <davidjm@stanford.edu>
Description: R Package for the analysis of MoTrPAC datasets.
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

# MotrpacBicQC 0.8.9 (2023-07-07)

* Fix bug preventing the processing of BICRESULTS folders (proteomics)
* Make clear that the metadata_phase.txt file is required
* Other enhancements

# MotrpacBicQC 0.8.8 (2023-06-15)

* Add 24 hours time support for the `acquisition_date` (`MM/DD/YYYY HH:MM:SS`)
Expand Down
6 changes: 3 additions & 3 deletions R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ set_phase <- function(input_results_folder,
if ( !(purrr::is_empty(file_phase)) ){
phase_details <- readr::read_lines(file_phase, n_max = 1)
if ( !(is.na(phase_details) || phase_details == '') ){
if(verbose) message("+ Motrpac phase reported: ", phase_details, " (info from metadata_phase.txt available)")
if(verbose) message("+ Motrpac phase reported: ", phase_details, " (info from metadata_phase.txt available): OK")

if( grepl("\\|", phase_details) ){
validate_two_phases(phase_details = phase_details, verbose = FALSE)
Expand All @@ -431,13 +431,13 @@ set_phase <- function(input_results_folder,
dmaqc_phase2validate <- phase_details
}
}else{
if(verbose) message("+ Motrpac phase: ", phase, " (metadata_phase.txt available but EMPTY)")
if(verbose) message("+ Motrpac phase: ", phase, " (metadata_phase.txt available but EMPTY): FAIL")
if( isFALSE(dmaqc_phase2validate) ){
dmaqc_phase2validate <- phase
}
}
}else{
if(verbose) message("+ Motrpac phase: ", phase, " (metadata_phase.txt file NOT available)")
if(verbose) message("+ Motrpac phase: ", phase, " (metadata_phase.txt file NOT available): FAIL")
if( isFALSE(dmaqc_phase2validate) ){
dmaqc_phase2validate <- phase
}
Expand Down
2 changes: 1 addition & 1 deletion R/proteomics_qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ validate_proteomics <- function(input_results_folder,


# PRINT OUT RESULTS-----
batchversion <- stringr::str_extract(string = input_results_folder, pattern = "BATCH.*_[0-9]+/RESULTS_[0-9]+")
batchversion <- stringr::str_extract(string = input_results_folder, pattern = "BATCH.*_([0-9]+/(RESULTS|BICRESULTS)_[0-9]+)")

qc_date <- Sys.time()
qc_date <- gsub("-", "", qc_date)
Expand Down
2 changes: 1 addition & 1 deletion R/validations.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ check_viallabel_dmaqc <- function(vl_submitted,
validate_assay <- function(input_results_folder){

assay <- stringr::str_extract(string = input_results_folder,
pattern = "(IONPNEG|RPNEG|RPPOS|HILICPOS|LRPPOS|LRPNEG|3HIB|AA|AC_DUKE|ACOA|BAIBA|CER_DUKE|CONV|KA|NUC|OA|SPHM|OXYLIPNEG|ETAMIDPOS|AC_MAYO|AMINES|CER_MAYO|TCA|IMM_CRT|IMM_GLC|IMM_INS|PROT_PH|PROT_PR|PROT_AC|PROT_UB)")
pattern = "(?<=T\\d{2}/)(IONPNEG|RPNEG|RPPOS|HILICPOS|LRPPOS|LRPNEG|3HIB|AA|AC_DUKE|ACOA|BAIBA|CER_DUKE|CONV|KA|NUC|OA|SPHM|OXYLIPNEG|ETAMIDPOS|AC_MAYO|AMINES|CER_MAYO|TCA|IMM_CRT|IMM_GLC|IMM_INS|PROT_PH|PROT_PR|PROT_AC|PROT_UB)")
if(is.na(assay)){
stop("ASSAY not found in the folder structure")
}else{
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/other_functions.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="pandoc">
<meta name="date" content="2023-06-15">
<meta name="date" content="2023-07-07">
<title>MotrpacBicQC: Other Functions</title>
<script src="other_functions_files/header-attrs-2.21/header-attrs.js"></script><script src="other_functions_files/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1">
<link href="other_functions_files/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -123,7 +123,7 @@ <h1 class="title">MotrpacBicQC: Other Functions</h1>

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-06-15</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-07-07</p>



Expand Down
4 changes: 2 additions & 2 deletions docs/articles/qc_metabolomics.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="pandoc">
<meta name="date" content="2023-06-15">
<meta name="date" content="2023-07-07">
<title>MotrpacBicQC: Metabolomics QC</title>
<script src="qc_metabolomics_files/header-attrs-2.21/header-attrs.js"></script><script src="qc_metabolomics_files/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1">
<link href="qc_metabolomics_files/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -126,7 +126,7 @@ <h1 class="title">MotrpacBicQC: Metabolomics QC</h1>

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-06-15</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-07-07</p>



Expand Down
4 changes: 2 additions & 2 deletions docs/articles/qc_proteomics.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="pandoc">
<meta name="date" content="2023-06-15">
<meta name="date" content="2023-07-07">
<title>MotrpacBicQC: Proteomics QC</title>
<script src="qc_proteomics_files/header-attrs-2.21/header-attrs.js"></script><script src="qc_proteomics_files/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1">
<link href="qc_proteomics_files/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
Expand Down Expand Up @@ -125,7 +125,7 @@ <h1 class="title">MotrpacBicQC: Proteomics QC</h1>

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-06-15</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2023-07-07</p>



Expand Down
6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/notes_developers.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ articles:
other_functions: other_functions.html
qc_metabolomics: qc_metabolomics.html
qc_proteomics: qc_proteomics.html
last_built: 2023-06-15T22:43Z
last_built: 2023-07-07T18:20Z

2 changes: 1 addition & 1 deletion docs/reference/assay_abbr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/assay_codes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/assay_order.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/bic_animal_tissue_code.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_failedsamples.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_manifest_rawdata.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions docs/reference/check_metadata_metabolites.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_metadata_phase_file.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_metadata_samples.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_ratio_proteomics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_results.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_rii_proteomics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_vial_metadata_proteomics.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/check_viallabel_dmaqc.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/combine_metabolomics_batch.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/create_folder.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5113b9b

Please sign in to comment.