Skip to content

QuantQC single cell QC package for nPOP experiments

Notifications You must be signed in to change notification settings

Andrew-Leduc/QuantQC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuantQC: nPOP sample preparation evaluation pipline

 

alt text

Installation

QuantQC is available as both an R package and a Python package.

Python

Requires Python >= 3.10. Install directly from GitHub:

pip install git+https://github.com/Andrew-Leduc/QuantQC.git#subdirectory=python

Or clone the repo and install in editable mode for development:

git clone https://github.com/Andrew-Leduc/QuantQC.git
cd QuantQC/python
pip install -e .

Optional dependencies for UMAP, graph-based clustering, batch correction, and XGBoost can be installed with:

pip install -e ".[all]"

R

Requires R >= 3.5.0. There are two required packages that are not installed by default:

  1. Seurat
  2. DIANN r package

To install the QuantQC package, run (you may need to install devtools first):

devtools::install_github("https://github.com/SlavovLab/QuantQC")
library(QuantQC)

Quick start (Python)

import quantqc as qqc

# Import data (supports TSV and parquet files)
obj = qqc.diann_to_qqc("report.tsv", "linker.csv", plex=3)

# Link CellenONE metadata
obj = qqc.link_cellenone_raw(obj, cellenone_path="cellenone_files/")

# Build cell x peptide matrix and normalize
obj = qqc.cell_x_peptide(obj)
obj = qqc.collapse_to_protein(obj)

# QC plots
obj = qqc.compute_pca(obj)
fig = qqc.plot_pca(obj, by="Condition")

# Peptide correlations
obj = qqc.shared_peptide_cor(obj)
fig = qqc.plot_pep_cor(obj)

See AnalysisFromPaper/Analysis_python.ipynb for a complete walkthrough with the plexDIA and pSCoPE datasets.


Reproducing the data analysis

  1. Download all the data reports from the "search" section of MassIVE MSV000093494.

  2. Download the "AnalysisFromProtocol" folder from the QuantQC Github page. In the R script "Analysis.R", change the path names for the relevant meta data files. There are two types. The linker file which connects the file names from the MS runs to the wells of the plate they were run from, and the cellenONE cell sorting files. These files are origninally named XXX_isolated.xls and are auto generated by the cellenONE in the folder created when the user performs cell sorting to the glass slide.

  3. Run the Analysis.R script line by line following the comments in the script. Alternatively, run the Python notebook AnalysisFromPaper/Analysis_python.ipynb.

About the project

The manuscript is freely available on bioRxiv: Leduc et al., 2023.

For more information, contact Slavov Laboratory or directly Andrew Leduc

License

The QuantQC code is distributed by an MIT license.

Contributing

Please feel free to contribute to this project by opening an issue or pull request.


Help!

For any bugs, questions, or feature requests, please use the GitHub issue system to contact the developers.

About

QuantQC single cell QC package for nPOP experiments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published