diff --git a/docs/404.html b/docs/404.html index 8fdcb1e0..660024e4 100644 --- a/docs/404.html +++ b/docs/404.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -94,7 +94,10 @@ diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index d08dc1ee..987bface 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -94,7 +94,10 @@ diff --git a/docs/articles/index.html b/docs/articles/index.html index e83e97a6..f9f77fe4 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -94,7 +94,10 @@ @@ -127,7 +130,9 @@

All vignettes

-
MotrpacBicQC: Metabolomics QC
+
MotrpacBicQC: Metabolomics QC
+
+
MotrpacBicQC: Proteomics QC
diff --git a/docs/articles/qc_metabolomics.html b/docs/articles/qc_metabolomics.html new file mode 100644 index 00000000..36565bac --- /dev/null +++ b/docs/articles/qc_metabolomics.html @@ -0,0 +1,278 @@ + + + + + + + +MotrpacBicQC: Metabolomics QC • MotrpacBicQC + + + + + + + + + + +
+
+ + + + +
+
+ + + + +
+

+Installation

+

First, download and install R and RStudio:

+ +

Then, open RStudio and install the devtools package

+
install.packages("devtools")
+

Finally, install the MotrpacBicQC package

+
library(devtools)
+devtools::install_github("MoTrPAC/MotrpacBicQC", build_vignettes = TRUE)
+
+
+

+Usage

+

Load the library

+
library(MotrpacBicQC)
+

And run any of the following tests to check that the package is correctly installed and it works. For example:

+
# Just copy and paste in the RStudio terminal
+
+check_metadata_metabolites(df = metadata_metabolites_named, name_id = "named")
+check_metadata_samples(df = metadata_sample_named, cas = "umichigan")
+check_results(r_m = results_named, m_s = metadata_sample_named, m_m = metadata_metabolites_named)
+

which should generate the following output:

+
check_metadata_metabolites(df = metadata_metabolites_named, name_id = "named")
+#>    + (+) All required columns present
+#>    + (+) {metabolite_name} OK
+#>    + (+) {refmet_name} unique values: OK
+#>    + (+) {refmet_name} ids found in refmet: OK
+#>    + (+) {rt} all numeric: OK
+#>    + (+) {mz} all numeric: OK
+#>    + (+) {neutral_mass} all numeric values OK
+#>    + (+) {formula} available: OK
+check_metadata_samples(df = metadata_sample_named, cas = "umichigan")
+#>    + (+) {sample_id} seems OK
+#>    + (+) {sample_type} seems OK
+#>    + (+) {sample_order} is numeric
+#>    + (+) {sample_order} unique values OK
+#>    + (+) {raw_file} unique values OK
+check_results(r_m = results_named, m_s = metadata_sample_named, m_m = metadata_metabolites_named)
+#>    + (+) All samples from [results_metabolite] are available in [metadata_sample]
+#>    + (+) {metabolite_name} is identical in both [results] and [metadata_metabolites] files: OK
+#>    + (+) {sample_id} columns are numeric: OK
+
+

+How to test your datasets

+

Two approaches available:

+ +
+

+Check individual files

+
    +
  • Check metadata metabolites:
  • +
+
# Open the metadata_metabolites file(s)
+
+metadata_metabolites_named <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+metadata_metabolites_unnamed <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_metadata_metabolites(df = metadata_metabolites_named, name_id = "named")
+check_metadata_metabolites(df = metadata_metabolites_unnamed, name_id = "unnamed")
+
    +
  • Check metadata samples:
  • +
+
# Open your files
+metadata_sample_named <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+metadata_sample_unnamed <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_metadata_samples(df = metadata_sample_named, cas = "your_side_id")
+check_metadata_samples(df = metadata_sample_unnamed, cas = "your_side_id")
+
    +
  • Check results, which needs both both metadata metabolites and samples
  • +
+
# Open your files
+metadata_metabolites_named <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+metadata_sample_named <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+results_named <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_results(r_m = results_named,
+              m_s = metadata_sample_named,
+              m_m = metadata_metabolites_named)
+
+
+
+

+Merge metabolomics data (only PASS1A supported)

+

The following functions enable merging all results and metadata files into a single data frame.

+

The folder/file structure of a required untargeted metabolomics submission is as follows:

+
PASS1A-06/
+  T55/
+   HILICPOS/ 
+    BATCH1_20190725/ 
+     RAW/
+      Manifest.txt
+      file1.raw
+      file2.raw
+      etc
+    PROCESSED_20190725/
+     metadata_failedsamples_[cas_specific_labeling]. txt
+     NAMED/
+        results_metabolites_named_[cas_specific_labeling].txt 
+        metadata_metabolites_named_[cas_specific_labeling].txt
+        metadata_sample_named_[cas_specific_labeling].txt
+        metadata_experimentalDetails_named_[cas_specific_labeling].txt
+     UNNAMED/
+        results_metabolites_unnamed_[cas_specific_labeling].txt
+        metadata_metabolites_unnamed_[cas_specific_labeling].txt
+        metadata_sample_unnamed_[cas_specific_labeling].txt
+        metadata_experimentalDetails_unnamed_[cas_specific_labeling].txt
+

With the following file relations…

+

+

To merge all data available in a PROCESSED_YYYYMMDD folder, run the following command:

+
t31_ionpneg <- combine_metabolomics_batch(input_results_folder = "/full/path/to/PROCESSED_YYYYMMDD/",
+                                          cas = "umichigan")
+

Alternatively, each individual dataset can also be provided. For example:

+
plasma.untargeted.merged <-
+  merge_all_metabolomics(m_m_n = metadata_metabolites_named,
+                         m_m_u = metadata_metabolites_unnamed,
+                         m_s_n = metadata_sample_named,
+                         r_n = results_named,
+                         r_u = results_unnamed,
+                         phase = "PASS1A-06")
+

Check the function help for details

+
+
+
+

+Help

+

Additional details for each function can be found by typing, for example:

+
?merge_all_metabolomics
+

Need extra help? Please, submit an issue here providing as many details as possible.

+
+ +
+ + + +
+ + + + +
+ + + + + + diff --git a/docs/articles/qc_proteomics.html b/docs/articles/qc_proteomics.html new file mode 100644 index 00000000..f2aafeef --- /dev/null +++ b/docs/articles/qc_proteomics.html @@ -0,0 +1,246 @@ + + + + + + + +MotrpacBicQC: Proteomics QC • MotrpacBicQC + + + + + + + + + + +
+
+ + + + +
+
+ + + + +
+

+Installation

+

First, download and install R and RStudio:

+ +

Then, open RStudio and install the devtools package

+
install.packages("devtools")
+

Finally, install the MotrpacBicQC package

+
library(devtools)
+devtools::install_github("MoTrPAC/MotrpacBicQC", build_vignettes = TRUE)
+
+
+

+Usage

+

Load the library

+
library(MotrpacBicQC)
+

And run any of the following tests to check that the package is correctly installed and it works. For example:

+
# Just copy and paste in the RStudio terminal
+test <- check_ratio_proteomics(df_ratio = metadata_metabolites_named,
+                               isPTM =  TRUE)
+test <- check_rii_proteomics(df_rri = metadata_metabolites_named,
+                             isPTM =  TRUE)
+test <- check_vial_metadata_proteomics(df_vm = metadata_metabolites_named)
+

which should generate the following outputs:

+
- (-) The following required columns are missed: ptm_id, protein_id, gene_symbol, entrez_id
+- (-) The following required columns are missed: protein_id, sequence, ptm_id, ptm_peptide, gene_symbol, entrez_id, confident_score, confident_site
+- (-) The following required columns are missed: vial_label, tmt_plex, tmt11_channel
+
+

+How to test your datasets

+

Two approaches available:

+ +
+

+Check individual files

+
    +
  • Check ratio resuls file
  • +
+
# Open the ratio results file
+
+proteomics_ratio_results <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_ratio_proteomics(df_ratio = proteomics_ratio_results,
+                       isPTM = TRUE,
+                       printPDF = FALSE)
+
    +
  • Check proteomics reporter ion intensity file:
  • +
+
# Open your files
+proteomics_ratio_results <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_rii_proteomics(df_rri = proteomics_ratio_results, cas = "your_side_id")
+
    +
  • Check proteomics vial metadata file
  • +
+
# Open your files
+vial_metadata <- read.delim(file = "/path/to/your/file", stringsAsFactors = FALSE)
+
+check_vial_metadata_proteomics(df_vm = vial_metadata)
+
+
+
+
+

+Help

+

Additional details for each function can be found by typing, for example:

+
?check_vial_metadata_proteomics
+

Need extra help? Please, submit an issue here providing as many details as possible.

+
+ +
+ + + +
+ + + + +
+ + + + + + diff --git a/docs/authors.html b/docs/authors.html index 70cc98b3..3692ef3d 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -94,7 +94,10 @@ diff --git a/docs/index.html b/docs/index.html index 2490fbd2..eaf006c7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -39,7 +39,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -62,7 +62,10 @@ @@ -118,7 +121,10 @@

Usage

-

Follow this link to learn how to test and use this package.

+

Alternatively, once the package is installed, run the following command to access the same documentation:

browseVignettes("MotrpacBicQC")

Follow this link for details of all the available functions

diff --git a/docs/notes_developers.html b/docs/notes_developers.html index e9e69271..24f4d1fb 100644 --- a/docs/notes_developers.html +++ b/docs/notes_developers.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0
@@ -94,7 +94,10 @@ diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index b4c46fa7..c8e92b07 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -2,6 +2,7 @@ pandoc: 2.7.3 pkgdown: 1.5.1 pkgdown_sha: ~ articles: - metabolomics_qc: metabolomics_qc.html -last_built: 2020-08-31T23:29Z + qc_metabolomics: qc_metabolomics.html + qc_proteomics: qc_proteomics.html +last_built: 2020-09-21T19:51Z diff --git a/docs/reference/assay_codes.html b/docs/reference/assay_codes.html index 4a40bf79..4d08b76d 100644 --- a/docs/reference/assay_codes.html +++ b/docs/reference/assay_codes.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/bic_animal_tissue_code.html b/docs/reference/bic_animal_tissue_code.html index 104f2bfa..d7051b1c 100644 --- a/docs/reference/bic_animal_tissue_code.html +++ b/docs/reference/bic_animal_tissue_code.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_failedsamples.html b/docs/reference/check_failedsamples.html index 7bff505a..094ff96d 100644 --- a/docs/reference/check_failedsamples.html +++ b/docs/reference/check_failedsamples.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_manifest_rawdata.html b/docs/reference/check_manifest_rawdata.html index 0b9342d9..7a0664fc 100644 --- a/docs/reference/check_manifest_rawdata.html +++ b/docs/reference/check_manifest_rawdata.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_metadata_metabolites.html b/docs/reference/check_metadata_metabolites.html index 6fb97c6a..133ae234 100644 --- a/docs/reference/check_metadata_metabolites.html +++ b/docs/reference/check_metadata_metabolites.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_metadata_samples.html b/docs/reference/check_metadata_samples.html index 314efea4..5550c892 100644 --- a/docs/reference/check_metadata_samples.html +++ b/docs/reference/check_metadata_samples.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_ratio_proteomics.html b/docs/reference/check_ratio_proteomics.html new file mode 100644 index 00000000..e2da76c5 --- /dev/null +++ b/docs/reference/check_ratio_proteomics.html @@ -0,0 +1,221 @@ + + + + + + + + +check proteomics ratio file — check_ratio_proteomics • MotrpacBicQC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +
+

check whether the proteomics ratio results files is following guidelines

+
+ +
check_ratio_proteomics(
+  df_ratio,
+  isPTM,
+  f_proof = TRUE,
+  output_prefix = "ratio-file",
+  out_qc_folder = NULL,
+  printPDF = TRUE,
+  return_n_issues = FALSE,
+  verbose = TRUE
+)
+ +

Arguments

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
df_ratio

(data.frame) proteomics ratio results data frame (required)

isPTM

(logical) TRUE if a PTM results file

f_proof

(logical) TRUE (default) to print out distribution and NA plots

output_prefix

(char) if f_proof = TRUE, provide a prefix for the output name

out_qc_folder

(char) if f_proof is TRUE, a folder path can be provided +(otherwise print in current working directory)

printPDF

(logical) if TRUE (default print plots to pdf)

return_n_issues

(logical) if TRUE returns the number of issues.

verbose

(logical) TRUE (default) shows messages

+ +

Value

+ +

(int) number of issues identified

+ +

Examples

+
{ +test <- check_ratio_proteomics(df_ratio = metadata_metabolites_named, +isPTM = TRUE, return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +}
+
+ +
+ + +
+ + +
+

Site built with pkgdown 1.5.1.

+
+ +
+
+ + + + + + + + diff --git a/docs/reference/check_results.html b/docs/reference/check_results.html index 0daa8668..e0b55a61 100644 --- a/docs/reference/check_results.html +++ b/docs/reference/check_results.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/check_rii_proteomics.html b/docs/reference/check_rii_proteomics.html new file mode 100644 index 00000000..f4e263b2 --- /dev/null +++ b/docs/reference/check_rii_proteomics.html @@ -0,0 +1,221 @@ + + + + + + + + +check proteomics reported ion intensity file — check_rii_proteomics • MotrpacBicQC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +
+

check whether the proteomics rri results files is following guidelines

+
+ +
check_rii_proteomics(
+  df_rri,
+  isPTM,
+  f_proof = TRUE,
+  output_prefix = "rii-file",
+  out_qc_folder = NULL,
+  return_n_issues = FALSE,
+  printPDF = TRUE,
+  verbose = TRUE
+)
+ +

Arguments

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
df_rri

(data.frame) proteomics rri data frame (required)

isPTM

(logical) TRUE if a PTM results file

f_proof

(logical) TRUE (default) to print out distribution and NA plots

output_prefix

(char) if f_proof = TRUE, provide a prefix for the output name

out_qc_folder

(char) if f_proof is TRUE, a folder path can be provided +(otherwise print in current working directory)

return_n_issues

(logical) if TRUE returns the number of issues.

printPDF

(logical) if TRUE (default print plots to pdf)

verbose

(logical) TRUE (default) shows messages

+ +

Value

+ +

(int) number of issues identified

+ +

Examples

+
{ +test <- check_rii_proteomics(df_rri = metadata_metabolites_named, +isPTM = TRUE, return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +}
+
+ +
+ + +
+ + +
+

Site built with pkgdown 1.5.1.

+
+ +
+
+ + + + + + + + diff --git a/docs/reference/check_vial_metadata_proteomics.html b/docs/reference/check_vial_metadata_proteomics.html new file mode 100644 index 00000000..bfb3ca45 --- /dev/null +++ b/docs/reference/check_vial_metadata_proteomics.html @@ -0,0 +1,191 @@ + + + + + + + + +check proteomics vial metadata file — check_vial_metadata_proteomics • MotrpacBicQC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +
+

check whether the proteomics rri results files is following guidelines

+
+ +
check_vial_metadata_proteomics(df_vm, return_n_issues = FALSE, verbose = TRUE)
+ +

Arguments

+ + + + + + + + + + + + + + +
df_vm

(data.frame) proteomics vial_label data frame (required)

return_n_issues

(logical) if TRUE returns the number of issues.

verbose

(logical) TRUE (default) shows messages

+ +

Value

+ +

(int) number of issues identified

+ +

Examples

+
{ +test <- check_vial_metadata_proteomics(df_vm = metadata_metabolites_named, +return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +}
+
+ +
+ + +
+ + +
+

Site built with pkgdown 1.5.1.

+
+ +
+
+ + + + + + + + diff --git a/docs/reference/check_viallabel_dmaqc.html b/docs/reference/check_viallabel_dmaqc.html index 8d954655..139f764d 100644 --- a/docs/reference/check_viallabel_dmaqc.html +++ b/docs/reference/check_viallabel_dmaqc.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/combine_metabolomics_batch.html b/docs/reference/combine_metabolomics_batch.html index 0404a9a5..04cb0d20 100644 --- a/docs/reference/combine_metabolomics_batch.html +++ b/docs/reference/combine_metabolomics_batch.html @@ -74,7 +74,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -97,7 +97,10 @@ diff --git a/docs/reference/filter_required_columns.html b/docs/reference/filter_required_columns.html index 59ec4b7d..4b04d9bc 100644 --- a/docs/reference/filter_required_columns.html +++ b/docs/reference/filter_required_columns.html @@ -6,7 +6,7 @@ -filter required metadata_metabolites columns only — filter_required_columns • MotrpacBicQC +filter required columns only — filter_required_columns • MotrpacBicQC @@ -39,8 +39,8 @@ - - + + @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ @@ -120,18 +123,18 @@
-

it returns a data frame with only the required columns for metadata_metabolites

+

it returns a data frame with only the required columns for metabolomics and proteomics

filter_required_columns(
   df,
-  type = c("m_m", "m_s"),
+  type = c("m_m", "m_s", "v_m"),
   name_id = NULL,
   verbose = TRUE
 )
@@ -148,6 +151,7 @@

Arg

(char) Type of file to filter columns:

  • m_m: metadata metabolites

  • m_s: metadata samples

  • +
  • v_m: proteomics vial_metadata

diff --git a/docs/reference/get_and_validate_mdd.html b/docs/reference/get_and_validate_mdd.html index dbb85071..080b251d 100644 --- a/docs/reference/get_and_validate_mdd.html +++ b/docs/reference/get_and_validate_mdd.html @@ -73,7 +73,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0

@@ -96,7 +96,10 @@ diff --git a/docs/reference/index.html b/docs/reference/index.html index 10767e50..33dbe852 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -71,7 +71,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0
@@ -94,7 +94,10 @@ @@ -180,12 +183,30 @@

check_ratio_proteomics()

+ +

check proteomics ratio file

+ +

check_results()

check results

+ +

check_rii_proteomics()

+ +

check proteomics reported ion intensity file

+ + + +

check_vial_metadata_proteomics()

+ +

check proteomics vial metadata file

+ +

check_viallabel_dmaqc()

@@ -201,7 +222,7 @@

filter_required_columns()

-

filter required metadata_metabolites columns only

+

filter required columns only

@@ -324,6 +345,12 @@

validate_proteomics()

+ +

Validate a Proteomics submissions

+ +

validate_tissue()

diff --git a/docs/reference/load_metabolomics_batch.html b/docs/reference/load_metabolomics_batch.html index 3409678c..666811f8 100644 --- a/docs/reference/load_metabolomics_batch.html +++ b/docs/reference/load_metabolomics_batch.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/merge_all_metabolomics.html b/docs/reference/merge_all_metabolomics.html index f8ce71b6..8eab182d 100644 --- a/docs/reference/merge_all_metabolomics.html +++ b/docs/reference/merge_all_metabolomics.html @@ -73,7 +73,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -96,7 +96,10 @@ diff --git a/docs/reference/merge_metabolomics_metadata.html b/docs/reference/merge_metabolomics_metadata.html index b23a4c0e..1df7c21b 100644 --- a/docs/reference/merge_metabolomics_metadata.html +++ b/docs/reference/merge_metabolomics_metadata.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/merge_phenotype_metabolomics.html b/docs/reference/merge_phenotype_metabolomics.html index 33ecceb4..942a199e 100644 --- a/docs/reference/merge_phenotype_metabolomics.html +++ b/docs/reference/merge_phenotype_metabolomics.html @@ -73,7 +73,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -96,7 +96,10 @@ diff --git a/docs/reference/metadata_metabolites_named.html b/docs/reference/metadata_metabolites_named.html index 6d12dc31..30213786 100644 --- a/docs/reference/metadata_metabolites_named.html +++ b/docs/reference/metadata_metabolites_named.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/metadata_metabolites_unnamed.html b/docs/reference/metadata_metabolites_unnamed.html index ef2f6ea7..8d05576c 100644 --- a/docs/reference/metadata_metabolites_unnamed.html +++ b/docs/reference/metadata_metabolites_unnamed.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/metadata_sample_named.html b/docs/reference/metadata_sample_named.html index 4dfb2447..a8ebc22f 100644 --- a/docs/reference/metadata_sample_named.html +++ b/docs/reference/metadata_sample_named.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/metadata_sample_unnamed.html b/docs/reference/metadata_sample_unnamed.html index c035933b..c76180c1 100644 --- a/docs/reference/metadata_sample_unnamed.html +++ b/docs/reference/metadata_sample_unnamed.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/open_file.html b/docs/reference/open_file.html index c5e24c1e..297f4f2f 100644 --- a/docs/reference/open_file.html +++ b/docs/reference/open_file.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/phenotypes_pass1a06_short.html b/docs/reference/phenotypes_pass1a06_short.html index ccf91666..1d171c60 100644 --- a/docs/reference/phenotypes_pass1a06_short.html +++ b/docs/reference/phenotypes_pass1a06_short.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/remove_empty_columns.html b/docs/reference/remove_empty_columns.html index 99c0cfe6..a114432d 100644 --- a/docs/reference/remove_empty_columns.html +++ b/docs/reference/remove_empty_columns.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/remove_empty_rows.html b/docs/reference/remove_empty_rows.html index b005ee86..0093373f 100644 --- a/docs/reference/remove_empty_rows.html +++ b/docs/reference/remove_empty_rows.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/results_named.html b/docs/reference/results_named.html index 250f3e56..fa508717 100644 --- a/docs/reference/results_named.html +++ b/docs/reference/results_named.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/results_unnamed.html b/docs/reference/results_unnamed.html index 813e1b4c..1041c6a6 100644 --- a/docs/reference/results_unnamed.html +++ b/docs/reference/results_unnamed.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_assay.html b/docs/reference/validate_assay.html index 68fb8dac..9513282a 100644 --- a/docs/reference/validate_assay.html +++ b/docs/reference/validate_assay.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_cas.html b/docs/reference/validate_cas.html index a381b1ac..e6aeab5e 100644 --- a/docs/reference/validate_cas.html +++ b/docs/reference/validate_cas.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_metabolomics.html b/docs/reference/validate_metabolomics.html index 42dddcaf..eeb13da9 100644 --- a/docs/reference/validate_metabolomics.html +++ b/docs/reference/validate_metabolomics.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_phase.html b/docs/reference/validate_phase.html index 26f8e967..bfe5ea32 100644 --- a/docs/reference/validate_phase.html +++ b/docs/reference/validate_phase.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_processFolder.html b/docs/reference/validate_processFolder.html index 330c4217..cebdd61a 100644 --- a/docs/reference/validate_processFolder.html +++ b/docs/reference/validate_processFolder.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/validate_proteomics.html b/docs/reference/validate_proteomics.html new file mode 100644 index 00000000..f846f4f7 --- /dev/null +++ b/docs/reference/validate_proteomics.html @@ -0,0 +1,229 @@ + + + + + + + + +Validate a Proteomics submissions — validate_proteomics • MotrpacBicQC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +
+

Validate a Proteomics submission

+
+ +
validate_proteomics(
+  input_results_folder,
+  isPTM,
+  cas,
+  dmaqc_shipping_info = NULL,
+  f_proof = FALSE,
+  out_qc_folder = NULL,
+  return_n_issues = TRUE,
+  full_report = FALSE,
+  printPDF = TRUE,
+  verbose = TRUE
+)
+ +

Arguments

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
input_results_folder

(char) path to the PROCESSED folder to check

isPTM

(logical) TRUE if it is Post-Translational-Modification proteomics assay

cas

(char) CAS code

dmaqc_shipping_info

(char) phase code

f_proof

(char) print out pdf with charts including:

    +
  • Reported Ion Intensity boxplot distribution and percentage of NA values per sample

  • +
  • Ratio: ratio boxplot distribution and percentage of NA values per samples

  • +
out_qc_folder

(char) if f_proof is TRUE, then a folder must be provided

return_n_issues

(logical) if TRUE (default) returns the number of issues

full_report

(logical) if FALSE (default) it returns only the +total number of issues. If TRUE returns the details of the number of issues (by +group of files, e.g., results, metadata_metabolites, etc)

printPDF

(logical) if TRUE (default print plots to pdf)

verbose

(logical) TRUE (default) prints QC details.

+ +

Value

+ +

(data.frame) Summary of issues

+ +
+ +
+ + +
+ + +
+

Site built with pkgdown 1.5.1.

+
+ +
+
+ + + + + + + + diff --git a/docs/reference/validate_tissue.html b/docs/reference/validate_tissue.html index bbb07d39..e26c4489 100644 --- a/docs/reference/validate_tissue.html +++ b/docs/reference/validate_tissue.html @@ -72,7 +72,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -95,7 +95,10 @@ diff --git a/docs/reference/write_metabolomics_releases.html b/docs/reference/write_metabolomics_releases.html index f8a1cd93..f8544fa4 100644 --- a/docs/reference/write_metabolomics_releases.html +++ b/docs/reference/write_metabolomics_releases.html @@ -73,7 +73,7 @@ MotrpacBicQC - 0.2.2 + 0.3.0 @@ -96,7 +96,10 @@ diff --git a/man/check_ratio_proteomics.Rd b/man/check_ratio_proteomics.Rd new file mode 100644 index 00000000..494598b1 --- /dev/null +++ b/man/check_ratio_proteomics.Rd @@ -0,0 +1,48 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/proteomics_qc.R +\name{check_ratio_proteomics} +\alias{check_ratio_proteomics} +\title{check proteomics ratio file} +\usage{ +check_ratio_proteomics( + df_ratio, + isPTM, + f_proof = TRUE, + output_prefix = "ratio-file", + out_qc_folder = NULL, + printPDF = TRUE, + return_n_issues = FALSE, + verbose = TRUE +) +} +\arguments{ +\item{df_ratio}{(data.frame) proteomics ratio results data frame (required)} + +\item{isPTM}{(logical) \code{TRUE} if a PTM results file} + +\item{f_proof}{(logical) \code{TRUE} (default) to print out distribution and NA plots} + +\item{output_prefix}{(char) if \code{f_proof = TRUE}, provide a prefix for the output name} + +\item{out_qc_folder}{(char) if \verb{f_proof is TRUE}, a folder path can be provided +(otherwise print in current working directory)} + +\item{printPDF}{(logical) if \code{TRUE} (default print plots to pdf)} + +\item{return_n_issues}{(logical) if \code{TRUE} returns the number of issues.} + +\item{verbose}{(logical) \code{TRUE} (default) shows messages} +} +\value{ +(int) number of issues identified +} +\description{ +check whether the proteomics ratio results files is following guidelines +} +\examples{ +{ +test <- check_ratio_proteomics(df_ratio = metadata_metabolites_named, +isPTM = TRUE, return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +} +} diff --git a/man/check_rii_proteomics.Rd b/man/check_rii_proteomics.Rd new file mode 100644 index 00000000..8946910a --- /dev/null +++ b/man/check_rii_proteomics.Rd @@ -0,0 +1,48 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/proteomics_qc.R +\name{check_rii_proteomics} +\alias{check_rii_proteomics} +\title{check proteomics reported ion intensity file} +\usage{ +check_rii_proteomics( + df_rri, + isPTM, + f_proof = TRUE, + output_prefix = "rii-file", + out_qc_folder = NULL, + return_n_issues = FALSE, + printPDF = TRUE, + verbose = TRUE +) +} +\arguments{ +\item{df_rri}{(data.frame) proteomics rri data frame (required)} + +\item{isPTM}{(logical) \code{TRUE} if a PTM results file} + +\item{f_proof}{(logical) \code{TRUE} (default) to print out distribution and NA plots} + +\item{output_prefix}{(char) if \code{f_proof = TRUE}, provide a prefix for the output name} + +\item{out_qc_folder}{(char) if \verb{f_proof is TRUE}, a folder path can be provided +(otherwise print in current working directory)} + +\item{return_n_issues}{(logical) if \code{TRUE} returns the number of issues.} + +\item{printPDF}{(logical) if \code{TRUE} (default print plots to pdf)} + +\item{verbose}{(logical) \code{TRUE} (default) shows messages} +} +\value{ +(int) number of issues identified +} +\description{ +check whether the proteomics rri results files is following guidelines +} +\examples{ +{ +test <- check_rii_proteomics(df_rri = metadata_metabolites_named, +isPTM = TRUE, return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +} +} diff --git a/man/check_vial_metadata_proteomics.Rd b/man/check_vial_metadata_proteomics.Rd new file mode 100644 index 00000000..b44608b1 --- /dev/null +++ b/man/check_vial_metadata_proteomics.Rd @@ -0,0 +1,28 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/proteomics_qc.R +\name{check_vial_metadata_proteomics} +\alias{check_vial_metadata_proteomics} +\title{check proteomics vial metadata file} +\usage{ +check_vial_metadata_proteomics(df_vm, return_n_issues = FALSE, verbose = TRUE) +} +\arguments{ +\item{df_vm}{(data.frame) proteomics vial_label data frame (required)} + +\item{return_n_issues}{(logical) if \code{TRUE} returns the number of issues.} + +\item{verbose}{(logical) \code{TRUE} (default) shows messages} +} +\value{ +(int) number of issues identified +} +\description{ +check whether the proteomics rri results files is following guidelines +} +\examples{ +{ +test <- check_vial_metadata_proteomics(df_vm = metadata_metabolites_named, +return_n_issues = TRUE, verbose = FALSE) +# "test" should be NULL +} +} diff --git a/man/validate_proteomics.Rd b/man/validate_proteomics.Rd index cd85f11e..87b17dbd 100644 --- a/man/validate_proteomics.Rd +++ b/man/validate_proteomics.Rd @@ -13,6 +13,7 @@ validate_proteomics( out_qc_folder = NULL, return_n_issues = TRUE, full_report = FALSE, + printPDF = TRUE, verbose = TRUE ) } @@ -39,6 +40,8 @@ validate_proteomics( total number of issues. If \code{TRUE} returns the details of the number of issues (by group of files, e.g., results, metadata_metabolites, etc)} +\item{printPDF}{(logical) if \code{TRUE} (default print plots to pdf)} + \item{verbose}{(logical) \code{TRUE} (default) prints QC details.} } \value{