{
  "_id": "6a2ba59057839859431928cf",
  "Package": "symphony",
  "Title": "Efficient and Precise Single-Cell Reference Atlas Mapping",
  "Version": "0.1.3",
  "Authors@R": "c(\nperson(given = \"Joyce\", family = \"Kang\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-1962-1291\"),\nemail = \"joyce.b.kang@gmail.com\"),\nperson(\"Ilya\", \"Korsunsky\", email = \"ilya.korsunsky@gmail.com\",\nrole = c(\"aut\"), comment = c(ORCID = \"0000-0003-4848-3948\")),\nperson(\"Soumya\", \"Raychaudhuri\",\nrole = c(\"aut\"), comment = c(ORCID = \"0000-0002-1901-8265\"))\n)",
  "Description": "Implements the Symphony single-cell reference building and\nquery mapping algorithms and additional functions described in\nKang et al\n<https://www.nature.com/articles/s41467-021-25957-x>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-11 10:30:16 UTC",
    "User": "root"
  },
  "Author": "Joyce Kang [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-1962-1291>), Ilya Korsunsky [aut]\n(ORCID: <https://orcid.org/0000-0003-4848-3948>), Soumya\nRaychaudhuri [aut] (ORCID:\n<https://orcid.org/0000-0002-1901-8265>)",
  "Maintainer": "Joyce Kang <joyce.b.kang@gmail.com>",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-06-11 02:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/symphony",
  "RemoteSha": "fa7167b100173039198d4f03973d08dba9fc1ea7",
  "RemoteSubdir": "symphony",
  "MD5sum": "1e338426ffa8576f5885499655c4c88f",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "symphony_0.1.3.tar.gz",
  "_fileid": "608a89d5205e85fff8f1c83d58093396dc6d37909657dbf5203960cd0b7c0a8a",
  "_filesize": 1061503,
  "_sha256": "608a89d5205e85fff8f1c83d58093396dc6d37909657dbf5203960cd0b7c0a8a",
  "_created": "2026-06-11T10:30:16.000Z",
  "_published": "2026-06-12T06:22:08.593Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80970324404,
      "time": 189,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7561665313"
    },
    {
      "job": 80970324476,
      "time": 224,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7561678838"
    },
    {
      "job": 80970324402,
      "time": 200,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7561669838"
    },
    {
      "job": 80970324559,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7561660287"
    },
    {
      "job": 80970323773,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7584510278"
    },
    {
      "job": 80970323750,
      "time": 283,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7584504850"
    },
    {
      "job": 80970323772,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7584524580"
    },
    {
      "job": 80970323758,
      "time": 391,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7584528947"
    },
    {
      "job": 80970324319,
      "time": 267,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7561599354"
    },
    {
      "job": 80970324233,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7561646257"
    },
    {
      "job": 80970324396,
      "time": 196,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7561668163"
    },
    {
      "job": 80970324597,
      "time": 179,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7561662466"
    },
    {
      "job": 80970324374,
      "time": 218,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7561676692"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "fa7167b100173039198d4f03973d08dba9fc1ea7",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add symphony to CRANhaven, because archived on 2026-06-11 02:02:00 +0000\n",
    "time": 1781143320
  },
  "_maintainer": {
    "name": "Joyce Kang",
    "email": "joyce.b.kang@gmail.com",
    "login": "joycekang",
    "description": "",
    "uuid": 12923683,
    "orcid": "0000-0002-1962-1291"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "harmony",
      "role": "Imports"
    },
    {
      "package": "uwot",
      "role": "Imports"
    },
    {
      "package": "irlba",
      "role": "Imports"
    },
    {
      "package": "class",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "RANN",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "ggthemes",
      "role": "Suggests"
    },
    {
      "package": "ggrepel",
      "role": "Suggests"
    },
    {
      "package": "ggrastr",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe",
    "openblas",
    "cpp"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 868,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/symphony"
  },
  "_devurl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_searchresults": 164,
  "_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/symphony.html",
    "manual.pdf"
  ],
  "_realowner": "joycekang",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-08-05"
    },
    {
      "version": "0.1.1",
      "date": "2023-01-16"
    },
    {
      "version": "0.1.2",
      "date": "2025-10-31"
    },
    {
      "version": "0.1.3",
      "date": "2026-05-25"
    }
  ],
  "_exports": [
    "buildReference",
    "buildReferenceFromHarmonyObj",
    "calcknncorr",
    "calcknncorrWithinQuery",
    "calcPerCellMappingMetric",
    "calcPerClusterMappingMetric",
    "evaluate",
    "findVariableGenes",
    "knnPredict",
    "mapQuery",
    "plotReference",
    "rowSDs",
    "runPCAQueryAlone",
    "scaleDataWithStats",
    "vargenes_vst"
  ],
  "_datasets": [
    {
      "name": "pbmcs_exprs_small",
      "title": "Log(CP10k+1) normalized counts matrix (genes by cells) for 10x PBMCs dataset for vignette.",
      "object": "pbmcs_exprs_small",
      "class": [
        "dgCMatrix"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "pbmcs_meta_small",
      "title": "Metadata for 10x PBMCs dataset for vignette.",
      "object": "pbmcs_meta_small",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cell_id",
        "donor",
        "nUMI",
        "nGene",
        "percent_mito",
        "cell_type",
        "cell_type_broad"
      ],
      "rows": 1200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "buildReference",
      "title": "Function for building a Symphony reference starting from expression matrix",
      "topics": [
        "buildReference"
      ]
    },
    {
      "page": "buildReferenceFromHarmonyObj",
      "title": "Function for building a Symphony reference from a Harmony object. Useful if you would like your code to be more modular. Note that you must have saved vargenes_means_sds and PCA loadings.",
      "topics": [
        "buildReferenceFromHarmonyObj"
      ]
    },
    {
      "page": "calcknncorr",
      "title": "Calculates the k-NN correlation, which measures how well the sorted ordering of k nearest reference neighbors in a gold standard embedding correlate with the ordering for the same reference cells in an alternative embedding (i.e. from reference mapping). NOTE: it is very important for the order of reference cells (cols) in gold_ref matches that of alt_ref (same for matching columns of gold_query and alt_query).",
      "topics": [
        "calcknncorr"
      ]
    },
    {
      "page": "calcknncorrWithinQuery",
      "title": "Calculates the k-NN correlation within the query cells only, which measures how well the sorted ordering of k nearest query neighbors in a query de novo PCA embedding correlate with the ordering for the cells in the reference mapping embedding.",
      "topics": [
        "calcknncorrWithinQuery"
      ]
    },
    {
      "page": "calcPerCellMappingMetric",
      "title": "Per-cell Confidence Score: Calculates the weighted Mahalanobis distance for the query cells to reference clusters. Returns a vector of distance scores, one per query cell. Higher distance metric indicates less confidence.",
      "topics": [
        "calcPerCellMappingMetric"
      ]
    },
    {
      "page": "calcPerClusterMappingMetric",
      "title": "Per-cluster Confidence Score: Calculates the Mahalanobis distance from user-defined query clusters to their nearest reference centroid after initial projection into reference PCA space. All query cells in a cluster get the same score. Higher distance indicates less confidence. Due to the instability of estimating covariance with small numbers of cells, we do not assign a score to clusters smaller than u * d, where d is the dimensionality of the embedding and u is specified.",
      "topics": [
        "calcPerClusterMappingMetric"
      ]
    },
    {
      "page": "evaluate",
      "title": "Function for evaluating F1 by cell type, adapted from automated cell type identifiaction benchmarking paper (Abdelaal et al. Genome Biology, 2019)",
      "topics": [
        "evaluate"
      ]
    },
    {
      "page": "findVariableGenes",
      "title": "Function to find variable genes using mean variance relationship method",
      "topics": [
        "findVariableGenes"
      ]
    },
    {
      "page": "knnPredict",
      "title": "Predict annotations of query cells from the reference using k-NN method",
      "topics": [
        "knnPredict"
      ]
    },
    {
      "page": "mapQuery",
      "title": "Function for mapping query cells to a Symphony reference",
      "topics": [
        "mapQuery"
      ]
    },
    {
      "page": "pbmcs_exprs_small",
      "title": "Log(CP10k+1) normalized counts matrix (genes by cells) for 10x PBMCs dataset for vignette.",
      "topics": [
        "pbmcs_exprs_small"
      ]
    },
    {
      "page": "pbmcs_meta_small",
      "title": "Metadata for 10x PBMCs dataset for vignette.",
      "topics": [
        "pbmcs_meta_small"
      ]
    },
    {
      "page": "plotReference",
      "title": "Function to plot reference, colored by cell type",
      "topics": [
        "plotReference"
      ]
    },
    {
      "page": "rowSDs",
      "title": "Calculate standard deviations by row",
      "topics": [
        "rowSDs"
      ]
    },
    {
      "page": "runPCAQueryAlone",
      "title": "Runs a standard PCA pipeline on query (1 batch). Assumes query_exp is already normalized.",
      "topics": [
        "runPCAQueryAlone"
      ]
    },
    {
      "page": "scaleDataWithStats",
      "title": "Scale data with given mean and standard deviations",
      "topics": [
        "scaleDataWithStats"
      ]
    },
    {
      "page": "vargenes_vst",
      "title": "Function to find variable genes using variance stabilizing transform (vst) method",
      "topics": [
        "vargenes_vst"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/symphony/symphony/README.md",
  "_rundeps": [
    "BH",
    "class",
    "cli",
    "cowplot",
    "cpp11",
    "data.table",
    "dplyr",
    "dqrng",
    "farver",
    "FNN",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "harmony",
    "irlba",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RANN",
    "RColorBrewer",
    "Rcpp",
    "RcppAnnoy",
    "RcppArmadillo",
    "RcppEigen",
    "RcppProgress",
    "RhpcBLASctl",
    "rlang",
    "RSpectra",
    "S7",
    "scales",
    "sitmo",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "uwot",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "quickstart_tutorial.Rmd",
      "filename": "quickstart_tutorial.html",
      "title": "Quickstart Tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Load the data",
        "Build Symphony reference",
        "Option 1: Build from Harmony object (preferred method)",
        "Option 2: Build from scratch (starting with expression)",
        "Map query",
        "Visualization of mapping"
      ],
      "created": "2026-06-11 02:02:00",
      "modified": "2026-06-11 02:02:00",
      "commits": 1
    }
  ],
  "_score": 4.6127838567197355,
  "_indexed": false,
  "_nocasepkg": "symphony",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://joycekang.r-universe.dev/symphony",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-11T10:33:10.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "378267393fc4ee5b07d29986d62566b78766598be480e21b6d6faab88a74ce1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-11T10:33:29.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "11de67db327c9746e11cc3d94944f5aba82c9a0a05b36715e2f0f165c6699a38",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-11T10:33:20.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "52cc91332dbf7a95ae34146909ac2ae3b341f22747f199e8299ad13875af085a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-06-11T10:33:04.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "32a63ca622429b87aa2de9bb7efb44cc8c381aae686b1f45b6af9c4f2152b97f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-12T06:19:49.000Z",
      "arch": "aarch64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "921ceff611aead5a81d68b197388cfd968d61854aa64daba1b7432579cca589c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-12T06:18:39.000Z",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "37d33b6a078575b1267b012def8d4c01cd88cbef10c8eb09a48ea52c3b2c4bba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-12T06:20:48.000Z",
      "arch": "aarch64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "2b4ee01a73ea79f23d70543e2a52e1986816e2dfbdbe738f4c5b743514ce9d34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-06-12T06:20:15.000Z",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "62f740b65d9644fe62cf567d48aa919473b05725a63a8beefb9e000733fe0429",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-06-11T10:32:53.000Z",
      "arch": "emscripten",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "5dc6bcbfab0ec9c4fc534217f815e510861a93164469b048bc2e73d130d18be5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-11T10:32:28.000Z",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "129b8ab9d1ff05cd7b86837ff26302246386e4c19add338fb298926dee88ef01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-11T10:32:14.000Z",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "f99908fdf976ed9a2ca0403a2709741ca3e7510ba5df1e7acb2fe0f4478595eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-06-11T10:32:16.000Z",
      "arch": "x86_64",
      "commit": "fa7167b100173039198d4f03973d08dba9fc1ea7",
      "fileid": "611291d524c7735480f2c6a64a633adc8d70d83f4762c1d10e4e78fee1577091",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/27340435934"
    }
  ]
}