{
  "_id": "6a153e97acfb0bcc41d551ff",
  "Package": "scGate",
  "Type": "Package",
  "Title": "Marker-Based Cell Type Purification for Single-Cell Sequencing\nData",
  "Version": "1.7.2",
  "Authors@R": "c(\nperson('Zaoqu', 'Liu',\nemail = 'liuzaoqu@163.com',\nrole = c('aut','cre'),\ncomment = c(ORCID = '0000-0002-0452-742X')),\nperson('Massimo', 'Andreatta',\nemail = 'massimo.andreatta@unige.ch',\nrole = c('aut'),\ncomment = c(ORCID = '0000-0002-8036-2647')),\nperson('Ariel','Berenstein',\nemail = 'arieljberenstein@gmail.com',\nrole = c('aut'),\ncomment = c(ORCID = '0000-0001-8540-5389')),\nperson('Josep','Garnica',\nemail = 'josep.garnicacaparros@unige.ch',\nrole = c('aut')),\nperson('Santiago', 'Carmona',\nemail = 'santiago.carmona@unige.ch',\nrole = c('aut'),\ncomment = c(ORCID = '0000-0002-2495-0671'))\n)",
  "Description": "A common bioinformatics task in single-cell data analysis\nis to purify a cell type or cell population of interest from\nheterogeneous datasets. 'scGate' automatizes marker-based\npurification of specific cell populations, without requiring\ntraining data or reference gene expression profiles. Briefly,\n'scGate' takes as input: i) a gene expression matrix stored in\na 'Seurat' object and ii) a “gating model” (GM), consisting of\na set of marker genes that define the cell population of\ninterest. The GM can be as simple as a single marker gene, or a\ncombination of positive and negative markers. More complex GMs\ncan be constructed in a hierarchical fashion, akin to gating\nstrategies employed in flow cytometry. 'scGate' evaluates the\nstrength of signature marker expression in each cell using the\nrank-based method 'UCell', and then performs k-nearest neighbor\n(kNN) smoothing by calculating the mean 'UCell' score across\nneighboring cells. kNN-smoothing aims at compensating for the\nlarge degree of sparsity in scRNA-seq data. Finally, a\nuniversal threshold over kNN-smoothed signature scores is\napplied in binary decision trees generated from the\nuser-provided gating model, to annotate cells as either “pure”\nor “impure”, with respect to the cell population of interest.\nSee the related publication Andreatta et al. (2022)\n<doi:10.1093/bioinformatics/btac141>.",
  "biocViews": "",
  "VignetteBuilder": "knitr",
  "URL": "https://zaoqu-liu.github.io/scGate/,\nhttps://github.com/Zaoqu-Liu/scGate",
  "BugReports": "https://github.com/Zaoqu-Liu/scGate/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libpng-dev\nlibuv1-dev libxml2-dev libssl-dev python3 zlib1g-dev",
  "Repository": "https://zaoqu-liu.r-universe.dev",
  "Date/Publication": "2026-01-24 04:43:14 UTC",
  "RemoteUrl": "https://github.com/Zaoqu-Liu/scGate",
  "RemoteRef": "main",
  "RemoteSha": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-26 06:26:39 UTC",
    "User": "root"
  },
  "Author": "Zaoqu Liu [aut, cre] (ORCID: <https://orcid.org/0000-0002-0452-742X>),\nMassimo Andreatta [aut] (ORCID:\n<https://orcid.org/0000-0002-8036-2647>),\nAriel Berenstein [aut] (ORCID: <https://orcid.org/0000-0001-8540-5389>),\nJosep Garnica [aut],\nSantiago Carmona [aut] (ORCID: <https://orcid.org/0000-0002-2495-0671>)",
  "Maintainer": "Zaoqu Liu <liuzaoqu@163.com>",
  "MD5sum": "07c5676ed1224fbbcb55d7bb60879982",
  "_user": "zaoqu-liu",
  "_type": "src",
  "_file": "scGate_1.7.2.tar.gz",
  "_fileid": "e90e4ae4cf21dbc09940990b4edbb244fe4c5241621bd17792cd2087c9b4968f",
  "_filesize": 1833511,
  "_sha256": "e90e4ae4cf21dbc09940990b4edbb244fe4c5241621bd17792cd2087c9b4968f",
  "_created": "2026-05-26T06:26:39.000Z",
  "_published": "2026-05-26T06:32:55.415Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77819329618,
      "time": 321,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7210352575"
    },
    {
      "job": 77819329590,
      "time": 256,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7210336932"
    },
    {
      "job": 77819329609,
      "time": 159,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7210319796"
    },
    {
      "job": 77819329583,
      "time": 187,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7210323467"
    },
    {
      "job": 77818751640,
      "time": 300,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7210273509"
    },
    {
      "job": 77819329599,
      "time": 196,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7210321192"
    },
    {
      "job": 77819329629,
      "time": 202,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7210323815"
    },
    {
      "job": 77819329611,
      "time": 200,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7210323123"
    },
    {
      "job": 77819329631,
      "time": 206,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7210324135"
    }
  ],
  "_buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/Zaoqu-Liu/scGate",
  "_commit": {
    "id": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
    "author": "Zaoqu-Liu <liuzaoqu@163.com>",
    "committer": "Zaoqu-Liu <liuzaoqu@163.com>",
    "message": "Add NEWS.md and update pkgdown news page\n",
    "time": 1769229794
  },
  "_maintainer": {
    "name": "Zaoqu Liu",
    "email": "liuzaoqu@163.com",
    "login": "zaoqu-liu",
    "orcid": "0000-0002-0452-742X",
    "description": "AI4S",
    "uuid": 68080738
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3.0",
      "role": "Depends"
    },
    {
      "package": "Seurat",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "patchwork",
      "role": "Imports"
    },
    {
      "package": "ggridges",
      "role": "Imports"
    },
    {
      "package": "colorspace",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "BiocParallel",
      "role": "Imports"
    },
    {
      "package": "BiocNeighbors",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "ggparty",
      "role": "Suggests"
    },
    {
      "package": "partykit",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "zaoqu-liu",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-04",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "zaoqu-liu",
      "count": 7,
      "uuid": 68080738
    }
  ],
  "_userbio": {
    "uuid": 68080738,
    "type": "user",
    "name": "LIU Zaoqu",
    "description": "AI4S"
  },
  "_downloads": {
    "count": 503,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scGate"
  },
  "_devurl": "https://github.com/zaoqu-liu/scgate",
  "_pkgdown": "https://zaoqu-liu.github.io/scGate/",
  "_searchresults": 209,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/scGate.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/carmonalab/scgate",
  "_realowner": "carmonalab",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.4.1",
      "date": "2022-12-20"
    },
    {
      "version": "1.6.0",
      "date": "2023-11-06"
    },
    {
      "version": "1.6.2",
      "date": "2024-04-23"
    },
    {
      "version": "1.7.0",
      "date": "2025-04-24"
    },
    {
      "version": "1.7.2",
      "date": "2025-07-23"
    }
  ],
  "_exports": [
    "combine_scGate_multiclass",
    "gating_model",
    "get_scGateDB",
    "get_testing_data",
    "load_scGate_model",
    "performance.metrics",
    "plot_levels",
    "plot_tree",
    "plot_UCell_scores",
    "scGate",
    "test_my_model"
  ],
  "_datasets": [
    {
      "name": "genes.blacklist.default",
      "title": "Blocklist of genes for dimensionality reduction",
      "object": "genes.blacklist.default",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "query.seurat",
      "title": "Toy dataset to test the package",
      "object": "query.seurat",
      "class": [
        "Seurat"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "combine_scGate_multiclass",
      "title": "Combine scGate annotations",
      "topics": [
        "combine_scGate_multiclass"
      ]
    },
    {
      "page": "gating_model",
      "title": "Model creation and editing",
      "topics": [
        "gating_model"
      ]
    },
    {
      "page": "genes.blacklist.default",
      "title": "Blocklist of genes for dimensionality reduction",
      "topics": [
        "genes.blacklist.default"
      ]
    },
    {
      "page": "get_scGateDB",
      "title": "Load scGate model database",
      "topics": [
        "get_scGateDB"
      ]
    },
    {
      "page": "get_testing_data",
      "title": "Download sample data",
      "topics": [
        "get_testing_data"
      ]
    },
    {
      "page": "load_scGate_model",
      "title": "Load a single scGate model",
      "topics": [
        "load_scGate_model"
      ]
    },
    {
      "page": "performance.metrics",
      "title": "Performance metrics",
      "topics": [
        "performance.metrics"
      ]
    },
    {
      "page": "plot_levels",
      "title": "Plot scGate filtering results by level",
      "topics": [
        "plot_levels"
      ]
    },
    {
      "page": "plot_tree",
      "title": "Plot model tree",
      "topics": [
        "plot_tree"
      ]
    },
    {
      "page": "plot_UCell_scores",
      "title": "Plot UCell scores by level",
      "topics": [
        "plot_UCell_scores"
      ]
    },
    {
      "page": "query.seurat",
      "title": "Toy dataset to test the package",
      "topics": [
        "query.seurat"
      ]
    },
    {
      "page": "scGate",
      "title": "Filter single-cell data by cell type",
      "topics": [
        "scGate"
      ]
    },
    {
      "page": "test_my_model",
      "title": "Test your model",
      "topics": [
        "test_my_model"
      ]
    }
  ],
  "_readme": "https://github.com/Zaoqu-Liu/scGate/raw/main/README.md",
  "_rundeps": [
    "abind",
    "askpass",
    "assorthead",
    "base64enc",
    "beachmat",
    "BH",
    "BiocGenerics",
    "BiocNeighbors",
    "BiocParallel",
    "bitops",
    "bslib",
    "cachem",
    "caTools",
    "cli",
    "cluster",
    "codetools",
    "colorspace",
    "commonmark",
    "cowplot",
    "cpp11",
    "crosstalk",
    "curl",
    "data.table",
    "DelayedArray",
    "deldir",
    "digest",
    "dotCall64",
    "dplyr",
    "dqrng",
    "evaluate",
    "farver",
    "fastDummies",
    "fastmap",
    "fitdistrplus",
    "FNN",
    "fontawesome",
    "formatR",
    "fs",
    "futile.logger",
    "futile.options",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "ggrepel",
    "ggridges",
    "globals",
    "glue",
    "goftest",
    "gplots",
    "gridExtra",
    "gtable",
    "gtools",
    "here",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "httr",
    "ica",
    "igraph",
    "IRanges",
    "irlba",
    "isoband",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "lambda.r",
    "later",
    "lattice",
    "lazyeval",
    "lifecycle",
    "listenv",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixGenerics",
    "matrixStats",
    "memoise",
    "mime",
    "miniUI",
    "nlme",
    "openssl",
    "otel",
    "parallelly",
    "patchwork",
    "pbapply",
    "pillar",
    "pkgconfig",
    "plotly",
    "plyr",
    "png",
    "polyclip",
    "progressr",
    "promises",
    "purrr",
    "R6",
    "RANN",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppAnnoy",
    "RcppArmadillo",
    "RcppEigen",
    "RcppHNSW",
    "RcppProgress",
    "RcppTOML",
    "reshape2",
    "reticulate",
    "rlang",
    "rmarkdown",
    "ROCR",
    "rprojroot",
    "RSpectra",
    "Rtsne",
    "S4Arrays",
    "S4Vectors",
    "S7",
    "sass",
    "scales",
    "scattermore",
    "sctransform",
    "Seurat",
    "SeuratObject",
    "shiny",
    "sitmo",
    "snow",
    "sourcetools",
    "sp",
    "spam",
    "SparseArray",
    "spatstat.data",
    "spatstat.explore",
    "spatstat.geom",
    "spatstat.random",
    "spatstat.sparse",
    "spatstat.univar",
    "spatstat.utils",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tensor",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "uwot",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "XVector",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "advanced-usage.Rmd",
      "filename": "advanced-usage.html",
      "title": "Advanced Usage and Best Practices",
      "author": "Zaoqu Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Building Hierarchical Models",
        "Multi-Level Gating Strategy",
        "Model Conversion Utilities",
        "Multi-Class Classification",
        "Annotating Multiple Cell Types",
        "Visualizing Multi-Class Results",
        "Working with Integrated Data",
        "Using Pre-computed Reductions",
        "Assay Selection",
        "Parameter Optimization",
        "Key Parameters",
        "Threshold Tuning",
        "Performance Evaluation",
        "Using Ground Truth",
        "Interpreting Metrics",
        "Parallel Processing",
        "Multi-core Processing",
        "Gene Blacklisting",
        "Default Blacklist",
        "Custom Blacklist",
        "Troubleshooting",
        "Common Issues",
        "Diagnostic Checks",
        "Best Practices Summary",
        "Session Info"
      ],
      "created": "2026-01-23 09:28:34",
      "modified": "2026-01-23 09:28:34",
      "commits": 1
    },
    {
      "source": "algorithm.Rmd",
      "filename": "algorithm.html",
      "title": "Algorithm and Mathematical Framework",
      "author": "Zaoqu Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Algorithm Pipeline",
        "Step 1: Signature Scoring with UCell",
        "Mathematical Formulation",
        "Key Properties",
        "Step 2: kNN Smoothing",
        "Effect of Smoothing",
        "Step 3: Hierarchical Decision Trees",
        "Gating Logic",
        "Parameter Decay",
        "Performance Metrics",
        "Matthews Correlation Coefficient (MCC)",
        "Numerical Stability",
        "Computational Considerations",
        "Vectorized Operations",
        "Parallel Processing",
        "Summary",
        "References",
        "Session Info"
      ],
      "created": "2026-01-23 09:28:34",
      "modified": "2026-01-23 09:28:34",
      "commits": 1
    },
    {
      "source": "quick-start.Rmd",
      "filename": "quick-start.html",
      "title": "Quick Start Guide",
      "author": "Zaoqu Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Key Features",
        "Installation",
        "Quick Example",
        "Load Required Packages",
        "Load Example Data",
        "Create a Simple Gating Model",
        "Apply scGate",
        "Visualize Results",
        "Building More Complex Models",
        "Positive and Negative Markers",
        "Using Pre-defined Models",
        "Multi-class Classification",
        "Key Parameters",
        "Session Info"
      ],
      "created": "2026-01-23 09:28:34",
      "modified": "2026-01-23 09:28:34",
      "commits": 1
    },
    {
      "source": "visualization.Rmd",
      "filename": "visualization.html",
      "title": "Visualization Guide",
      "author": "Zaoqu Liu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Preparing Example Data",
        "Basic Visualizations",
        "Gating Results on UMAP",
        "Signature Score Visualization",
        "Level-by-Level Visualization",
        "Using plot_levels()",
        "Custom Level Visualization",
        "Score Distribution Analysis",
        "Violin Plots",
        "Density Plots by Cell Type",
        "UCell Score Ridge Plots",
        "Using plot_UCell_scores()",
        "Confusion Matrix Visualization",
        "Creating a Confusion Matrix",
        "Publication-Ready Figures",
        "Combined Summary Figure",
        "Color Palettes",
        "Recommended Color Schemes",
        "Exporting Figures",
        "High-Resolution Export",
        "Tips for Effective Visualization",
        "Session Info"
      ],
      "created": "2026-01-23 09:28:34",
      "modified": "2026-01-23 09:28:34",
      "commits": 1
    }
  ],
  "_score": 5.098297536494698,
  "_indexed": false,
  "_nocasepkg": "scgate",
  "_universes": [
    "zaoqu-liu"
  ],
  "_indexurl": "https://carmonalab.r-universe.dev/scGate",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.7.2",
      "date": "2026-05-26T06:30:50.000Z",
      "distro": "noble",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "bc50c24935a5be04bf602db0cf6248f53c5fc15fe92ebd7679480b381d1e83b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.7.2",
      "date": "2026-05-26T06:29:51.000Z",
      "distro": "noble",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "615c735cb020e3915588537c7e8bce8a93b34c21a24ae9fdfc9ac50532bb35cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.7.2",
      "date": "2026-05-26T06:29:04.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "9440c450267d211d3cc8a70f698e4f6c0f40f32459098de8c20584416bbbbc12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.7.2",
      "date": "2026-05-26T06:29:09.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "dba3d301b2332f5eba1486a8afa78e9611c4dd4ece227083bb31065ef0c35bbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.7.2",
      "date": "2026-05-26T06:30:21.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "ff2aaf0e4a9aad5ca4bb0d7219d3fe68976ba7d356cf4bf794b39d0c0a70ed9e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.7.2",
      "date": "2026-05-26T06:28:39.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "4eb5c3eb829b9349d77529e28cdd48c56ebb9c2fc4dc90454cd584746dfbc9ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.7.2",
      "date": "2026-05-26T06:28:57.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "bdde6b5374ae4c4f85310252a0acd7320289556d52b80328ef4ab15989085154",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.7.2",
      "date": "2026-05-26T06:28:42.000Z",
      "commit": "464ffc9b424f70ef6754a3cbe146ed50f61aeffb",
      "fileid": "311c3d23c5ca0d0765078c599ce36597563b2a004d3fb13561a97d0bf98c4bb0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26435942516"
    }
  ]
}