Skip to content

Commit

Permalink
v0.5.6: Bug fix
Browse files Browse the repository at this point in the history
Bug fix affecting manifest file check
  • Loading branch information
biodavidjm committed Jul 23, 2021
1 parent 9d3edab commit 9599da1
Show file tree
Hide file tree
Showing 66 changed files with 90 additions and 77 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.5.5
Date: 2021-07-21
Version: 0.5.6
Date: 2021-07-22
Author: MoTrPAC Bioinformatics Center
Maintainer: David Jimenez-Morales <davidjm@stanford.edu>
Description: R Package for the analysis of MoTrPAC datasets.
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# MotrpacBicQC 0.5.6 (2021-07-22)

* Bug fix

# MotrpacBicQC 0.5.5 (2021-07-21)

* Update: add human tissue codes
Expand Down
18 changes: 10 additions & 8 deletions R/metabolomics_qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ validate_metabolomics <- function(input_results_folder,
manifest$file_base <- basename(manifest$file_name)

if(f_mmn){
metadata_metabolites_named_file <- basename(manifest$file_name[grepl(".*etadata_metabolit.*_named", manifest$file_name)])
metadata_metabolites_named_file <- basename(manifest$file_name[grepl(".*etadata_metabolit.*_named", manifest$file_name)])[1]
tocheck <- basename(m_m_n_f)
if( tocheck == metadata_metabolites_named_file){
if(verbose) message(" + (+) metadata_metabolites_named_file included in manifest: OK")
Expand All @@ -841,7 +841,7 @@ validate_metabolomics <- function(input_results_folder,
}

if(f_msn){
metadata_samples_named_file <- basename(manifest$file_name[grepl(".*etadata_samp.*_named", manifest$file_name)])
metadata_samples_named_file <- basename(manifest$file_name[grepl(".*etadata_samp.*_named", manifest$file_name)])[1]
tocheck <- basename(m_s_n_f)
if( tocheck == metadata_samples_named_file ){
if(verbose) message(" + (+) metadata_sample_named_file included in manifest: OK")
Expand All @@ -865,7 +865,7 @@ validate_metabolomics <- function(input_results_folder,
} # f_msn

if(f_rmn){
results_metabolites_named_file <- basename(manifest$file_name[grepl(".*esults_metabolit.*_named", manifest$file_name)])
results_metabolites_named_file <- basename(manifest$file_name[grepl(".*esults_metabolit.*_named", manifest$file_name)])[1]
tocheck <- basename(r_m_n_f)
if( tocheck == results_metabolites_named_file ){
if(verbose) message(" + (+) results_metabolites_named_file included in manifest: OK")
Expand All @@ -880,7 +880,8 @@ validate_metabolomics <- function(input_results_folder,
if( any(grepl(processfolder, experimentalDetails_file)) ){
if(verbose) message(" + (+) experimentalDetails_file included in manifest: OK")
full_path_edf <- file.path(normalizePath(batch_folder) , experimentalDetails_file )
if( file.exists(full_path_edf) ){
full_path_edf <- sort(full_path_edf, decreasing = TRUE)
if( file.exists(full_path_edf[1]) ){
if(verbose) message(" + (+) experimentalDetails_file exists: OK")
}else{
if(verbose) message(" - (-) experimentalDetails_file cannot be found: FAIL")
Expand All @@ -895,7 +896,7 @@ validate_metabolomics <- function(input_results_folder,
if(untargeted){

if(f_mmu){
metadata_metabolites_unnamed_file <- basename(manifest$file_name[grepl(".*etadata_metabolit.*_unnamed", manifest$file_name)])
metadata_metabolites_unnamed_file <- basename(manifest$file_name[grepl(".*etadata_metabolit.*_unnamed", manifest$file_name)])[1]
tocheck <- basename(m_m_u_f)
if( tocheck == metadata_metabolites_unnamed_file ){
if(verbose) message(" + (+) results_metabolites_unnamed_file included in manifest: OK")
Expand All @@ -906,7 +907,7 @@ validate_metabolomics <- function(input_results_folder,
}

if(f_msu){
metadata_samples_unnamed_file <- basename(manifest$file_name[grepl(".*etadata_sam.*_unnamed", manifest$file_name)])
metadata_samples_unnamed_file <- basename(manifest$file_name[grepl(".*etadata_sam.*_unnamed", manifest$file_name)])[1]
tocheck <- basename(m_s_u_f)
if( tocheck == metadata_samples_unnamed_file ){
if(verbose) message(" + (+) metadata_sample_unnamed_file included in manifest: OK")
Expand All @@ -931,7 +932,7 @@ validate_metabolomics <- function(input_results_folder,
}

if(f_rmu){
results_metabolites_unnamed_file <- basename(manifest$file_name[grepl(".*esults_metabolit.*_unnamed", manifest$file_name)])
results_metabolites_unnamed_file <- basename(manifest$file_name[grepl(".*esults_metabolit.*_unnamed", manifest$file_name)])[1]

tocheck <- basename(r_m_u_f)
if( tocheck == results_metabolites_unnamed_file ){
Expand All @@ -947,7 +948,8 @@ validate_metabolomics <- function(input_results_folder,
if( any(grepl(processfolder, experimentalDetails_file)) ){
if(verbose) message(" + (+) experimentalDetails_file included in manifest: OK")
full_path_edf <- file.path(normalizePath(batch_folder) , experimentalDetails_file )
if( file.exists(full_path_edf) ){
full_path_edf <- sort(full_path_edf, decreasing = TRUE)
if( file.exists(full_path_edf)[1] ){
if(verbose) message(" + (+) experimentalDetails_file exists: OK")
}else{
if(verbose) message(" - (-) experimentalDetails_file cannot be found: FAIL")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Currently supports both Metabolomics and Proteomics datasets.

## Package Updates

This package is frequently updated. Please, check the file [NEWS.md](https://github.com/MoTrPAC/MotrpacBicQC/blob/master/NEWS.md) to find out more about the changes affecting every version
This package is frequently updated. Please, check the file [NEWS.md](https://motrpac.github.io/MotrpacBicQC/news/index.html) to find out more about the changes affecting every version

## Installation

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="2021-07-21">
<meta name="date" content="2021-07-22">
<title>MotrpacBicQC: Other Functions</title>
<script src="other_functions_files/header-attrs-2.9/header-attrs.js"></script><script src="other_functions_files/jquery-1.11.3/jquery.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="hasAnchor">

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-21</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-22</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="2021-07-21">
<meta name="date" content="2021-07-22">
<title>MotrpacBicQC: Metabolomics QC</title>
<script src="qc_metabolomics_files/header-attrs-2.9/header-attrs.js"></script><script src="qc_metabolomics_files/jquery-1.11.3/jquery.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 @@ -191,7 +191,7 @@ <h1 class="hasAnchor">

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-21</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-22</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="2021-07-21">
<meta name="date" content="2021-07-22">
<title>MotrpacBicQC: Proteomics QC</title>
<script src="qc_proteomics_files/header-attrs-2.9/header-attrs.js"></script><script src="qc_proteomics_files/jquery-1.11.3/jquery.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 @@ -191,7 +191,7 @@ <h1 class="hasAnchor">

<p class="authors">
</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-21</p>
<p class="date"><span class="glyphicon glyphicon-calendar"></span> 2021-07-22</p>



Expand Down
2 changes: 1 addition & 1 deletion docs/authors.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/index.html

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

9 changes: 8 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: 2021-07-21T16:48Z
last_built: 2021-07-23T02:37Z

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.

2 changes: 1 addition & 1 deletion 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_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/filter_required_columns.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/get_and_validate_mdd.html

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

Loading

0 comments on commit 9599da1

Please sign in to comment.