This repository contains the scripts yielding to the processed scRNAseq data of NK cells in Multiple Myeloma patients. The study utilizing this dataset is published in the results in our article.
The processed data of 8 NK cell clusters determined in the MM patients and healthy donors were stored in Zenodo

Below structure of scripts are the step by step data curation and then investigation of NK cells in the downstream analysis.
This repo is archived, active repo is migrated to here
├── 01_individually_processing_per_emulsion.R # Reading Cellranger / Velocyto outputs, then annotating cell types per emulsion to ref PBMC in a loop
├── 02_merging_processed_emulsions.R #Merging each emulsions' data into one data object
├── 03a_nuc_frac_calcul.R #Calculating nuclear RNA fraction of cells
├── 03b_nuclear_RNA_fraction_metric.py # Helper python script of nuclear RNA fraction
├── 04_QC_check_and_trim.R # QC plots and trimming based-on QC
├── 05a_preprocessing.R # Normalization,ScaleData,Dimensional Reduction,PC-correction etc.
├── 05b_plots_leading_to_nk_subsetting.R # Intermediate step of assessing inferred cell types
├── 06a_nk_subsetting.R # Separating NK cells from the rest of the cell types
├── 06b_removal_of_prolif_nk_portion.R # Keeping non-proliferating, more stable NK cells for downstream analysis
├── quant_pcs.R # Helper function to select of optimum dims of PCs reductions
├── quant_harmonys.R # Helper function to select of optimum dims of harmony reductions
├── multi_criteria_filt_GSEA.R # Multiple parameter assessment oriented GSEA script
├── combin_presto_function.R # Helper function of combinatorial Presto running to rank all genes for comparison groups (ClusterXvsY)
├── combin_gsea_function.R # Helper function to run fGSEA for comparison pairs and keep them in list of lists format
All of the analyses of this study except MELD were performed with the local machine (workstation) containing Intel® Core™ i9-9900K CPU and 128 GB RAM, running on Linux (Ubuntu 22.04.2 LTS) operation system.
