Skip to content

Source code of the tool for QC Assay Portal Data

Notifications You must be signed in to change notification settings

esacinc/MSInspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSInspector

A Python program to evaluate the data quality of the five experiments in CPTAC assay portal, the format of input files is *.sky.zip.
The experiments are:
Experiment 1, response curve (or ResponseCurve)
Experiment 2, evaluation of repeatability (or ValidationSamples)
Experiment 3, selectivity (or Selectivity)
Experiment 4, stability (Stability)
Experiment 5, reproducible detection of endogenous analyte (Endogenous)

The work flow of MSInspector is shown here.

A report file (QC_report.html) will be generated which will capture the details of errors and warnings when running the R codes for the individual experiment. The details of the errors and warnings are listed here.

Documentation

Installation

Install MSInspector

MSInspector is implemented as a Python program running on a Windows platform that requires pre-installation of Skyline https://skyline.ms/project/home/software/Skyline/begin.view and R https://cran.r-project.org/bin/windows/base/

It has the following dependencies:

MSInspector can be installed from the source code by pip:

  1. Download MSInspector source code from URL and unzip the zipped file folder.
  2. If the package of wheel is not installed, run pip install wheel to install it.
  3. Change the directory to MSInspector's directory and run python setup.py bdist_wheel to build a wheel file for the subsequent installation via pip.
  4. Run pip install .\dist\MSInspector-2.1.0-py3-none-any.whl to install MSInspector.

How to use it

Command line

Usage: MSInspector [-h] [<args>]

Example 1:
MSInspector -ps "C:\Program Files\Skyline\SkylineCmd.exe"" -pr "C:\Program Files\R\R-4.3.2\bin\Rscript.exe" -i "D:\Skyline_analysis\qcAssayPortal\data\UVicPC_Borchers-MousePlasma_Agilent6490_directMRM-Exp1\20160309_MouseV2B1.5_refined_2018-07-03_14-59-18.sky.zip" -e exp1 -t "D:\Skyline_analysis\qcAssayPortal\data\UVicPC_Borchers-MousePlasma_Agilent6490_directMRM-Exp1\meta_data.tsv"

Example 2:
MSInspector -ps "C:\Program Files\Skyline\SkylineCmd.exe" -pr "C:\Program Files\R\R-4.3.2\bin\Rscript.exe" -i "D:\Skyline_analysis\qcAssayPortal\data\UVicPC_Borchers-MousePlasma_Agilent6490_directMRM-Exp2" -e exp2

optional arguments:
  -h, --help            show this help message and exit
  -ps <dir required>    the path to SkylineCmd.exe, SkylineRunner.exe, or SkylineDailyRunner.exe in the Windows OS
  -pr <dir required>    the path to Rscript.exe in the Windows OS
  -i input <required> [input <required> ...]
                        two options: 1. A directory where all the *.sky.zip files are located 2.*.sky.zip *.sky.zip ... (at least one input *.sky.zip)
  -e string <required>  the experiment type. Choose one from Options: exp1 , exp2
  -t peptide type file <required> the directory of the file whose first column is the *.sky.zip and second column is peptide type ("purified" or "crude"). When -e is exp1, it must be assigned. Otherwise, please leave it blank.
  -o <dir>              the directory of the outputs (default: current directory)
  --version             show program's version number and exit

Changelog

2019-05-31 Add a function to infer which template (new or old) is being applied to annotate the data for experiment 1 and experiment 2.
2019-06-13 Add a function to QA the experiment type from the input parameter.
                   Add a function to QA the data type of several required attributes.
2019-06-26 Fix the bug caused by the space in the directory of the input parameters.
2019-07-18 Add a function to capture the error caused by wrong annotation of IS Spike for experiment 1.
2019-08-22 Fix the issue of the variable width of the horizontal lines in Response Curve for the experiment 1.
2019-12-03 Add errors and warnings detecting function to experiment 3.
2020-01-17 Add errors and warnings detecting function to experiment 4.
2020-03-19 Add errors and warnings detecting function to experiment 5.
2024-01-15 Update Python from Python 2.7 to Python 3.11

Citation

About

Source code of the tool for QC Assay Portal Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published