{
  "_id": "6ad86c294b18b9008999aa0c",
  "Package": "cmpsR",
  "Title": "R Implementation of Congruent Matching Profile Segments Method",
  "Version": "0.1.2",
  "Authors@R": "c(\nperson(\"Wangqian\", \"Ju\", email = \"wju@iastate.edu\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-9977-377X\")),\nperson(\"Heike\", \"Hofmann\", email = \"hofmann@iastate.edu\", role = \"ctb\", comment=c(ORCID=\"0000-0001-6216-5183\"))\n)",
  "Description": "This is an open-source implementation of the Congruent\nMatching Profile Segments (CMPS) method (Chen et al.\n2019)<doi:10.1016/j.forsciint.2019.109964>. In general, it can\nbe used for objective comparison of striated tool marks, and in\nour examples, we specifically use it for bullet signatures\ncomparisons. The CMPS score is expected to be large if two\nsignatures are similar. So it can also be considered as a\nfeature that measures the similarity of two bullet signatures.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.2",
  "VignetteBuilder": "knitr",
  "Repository": "https://willju-wangqian.r-universe.dev",
  "Date/Publication": "2022-10-20 17:43:28 UTC",
  "RemoteUrl": "https://github.com/willju-wangqian/cmpsr",
  "RemoteRef": "HEAD",
  "RemoteSha": "87baa1bf111639894daffc9e8eb385290ceb55c8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-21 07:32:19 UTC",
    "User": "root"
  },
  "Author": "Wangqian Ju [aut, cre] (ORCID: <https://orcid.org/0000-0002-9977-377X>),\nHeike Hofmann [ctb] (ORCID: <https://orcid.org/0000-0001-6216-5183>)",
  "Maintainer": "Wangqian Ju <wju@iastate.edu>",
  "_user": "willju-wangqian",
  "_type": "src",
  "_file": "cmpsR_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/f243fe5ad9e29118d3ad5997b4ae46b9b0cc528d0ed9aeca35b988595381ed3d",
  "_filesize": 4198058,
  "_sha256": "f243fe5ad9e29118d3ad5997b4ae46b9b0cc528d0ed9aeca35b988595381ed3d",
  "_expires": "2027-01-29T07:39:20.000Z",
  "_created": "2026-10-21T07:32:19.000Z",
  "_published": "2026-10-21T07:39:21.850Z",
  "_buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 119097564671,
      "time": 153,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12328995824"
    },
    {
      "job": 119097564790,
      "time": 159,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12328691700"
    },
    {
      "job": 119097565156,
      "time": 144,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12327884726"
    },
    {
      "job": 119097564654,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12327729871"
    },
    {
      "job": 119097564613,
      "time": 193,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12328586975"
    },
    {
      "job": 119097564586,
      "time": 249,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12328622099"
    },
    {
      "job": 119097564639,
      "time": 171,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12328551981"
    },
    {
      "job": 119097564670,
      "time": 281,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12328302486"
    },
    {
      "job": 119094522444,
      "time": 474,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12328316744"
    },
    {
      "job": 119097564419,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12328756938"
    },
    {
      "job": 119097565025,
      "time": 372,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12327944894"
    },
    {
      "job": 119097564667,
      "time": 107,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12327774988"
    },
    {
      "job": 119097565092,
      "time": 98,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12328551765"
    },
    {
      "job": 119097565106,
      "time": 375,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12328627226"
    },
    {
      "job": 119097565014,
      "time": 117,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12328492511"
    }
  ],
  "_upstream": "https://github.com/willju-wangqian/cmpsr",
  "_commit": {
    "id": "87baa1bf111639894daffc9e8eb385290ceb55c8",
    "author": "willju-wangqian <wju@iastate.edu>",
    "committer": "willju-wangqian <wju@iastate.edu>",
    "message": "bug fix: algorithm breaks when the number of peaks in ccf is less than npeaks\n",
    "time": 1666287808
  },
  "_maintainer": {
    "name": "Wangqian Ju",
    "email": "wju@iastate.edu",
    "login": "willju-wangqian",
    "description": "",
    "uuid": 54684730,
    "orcid": "0000-0002-9977-377X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "assertthat",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.5",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.3.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "ggpubr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "willju-wangqian",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "willju-wangqian",
      "count": 89,
      "uuid": 54684730
    },
    {
      "user": "heike",
      "count": 5,
      "uuid": 92882
    }
  ],
  "_userbio": {
    "uuid": 54684730,
    "type": "user",
    "name": "Wangqian (Will) Ju",
    "followers": 4
  },
  "_downloads": {
    "count": 394,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cmpsR"
  },
  "_devurl": "https://github.com/willju-wangqian/cmpsr",
  "_searchresults": 17,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/cmpsR.html",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/willju-wangqian/cmpsr",
  "_realowner": "willju-wangqian",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-10-29"
    },
    {
      "version": "0.1.2",
      "date": "2022-07-18"
    }
  ],
  "_exports": [
    "cmps_na_trim",
    "cmps_segment_plot",
    "cmps_signature_plot",
    "compute_diff_phase",
    "compute_score_metrics",
    "compute_ss_ratio",
    "extract_feature_cmps",
    "get_all_phases",
    "get_ccf4",
    "get_ccp",
    "get_ccr_peaks",
    "get_CMPS",
    "get_seg_scale",
    "get_segs",
    "metric_plot_helper"
  ],
  "_datasets": [
    {
      "name": "bullets",
      "title": "Information of two example bullets",
      "object": "bullets",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "source",
        "sigs",
        "bulletland"
      ],
      "rows": 12,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bullets",
      "title": "Information of two example bullets",
      "topics": [
        "bullets"
      ]
    },
    {
      "page": "cmps_na_trim",
      "title": "Remove the leading and trailing missing values in a numeric vector",
      "topics": [
        "cmps_na_trim"
      ]
    },
    {
      "page": "cmps_segment_plot",
      "title": "Plot the selected basis segment and its cross-correlation curve at all scales based on the results of CMPS algorithm",
      "topics": [
        "cmps_segment_plot"
      ]
    },
    {
      "page": "cmps_signature_plot",
      "title": "Plot reference signature and comparison signature based on the results of CMPS algorithm",
      "topics": [
        "cmps_signature_plot"
      ]
    },
    {
      "page": "compute_cross_corr",
      "title": "Wrapper function for compute_cross_corr",
      "topics": [
        "compute_cross_corr"
      ]
    },
    {
      "page": "compute_diff_phase",
      "title": "Compute a Statistic for the Foreground Phase and the Background Phases",
      "topics": [
        "compute_diff_phase"
      ]
    },
    {
      "page": "compute_score_metrics",
      "title": "Compute Different Metrics Based on Scores",
      "topics": [
        "compute_score_metrics"
      ]
    },
    {
      "page": "compute_ss_ratio",
      "title": "#' Compute the Sum of Squares Ratio",
      "topics": [
        "compute_ss_ratio"
      ]
    },
    {
      "page": "extract_feature_cmps",
      "title": "Computes the CMPS score of a comparison between two bullet profiles/signatures",
      "topics": [
        "extract_feature_cmps"
      ]
    },
    {
      "page": "get_all_phases",
      "title": "Obtain a list of all phases of a bullet-by-bullet comparison",
      "topics": [
        "get_all_phases"
      ]
    },
    {
      "page": "get_ccf4",
      "title": "Function to calculate the cross-correlation between two sequences",
      "topics": [
        "get_ccf4"
      ]
    },
    {
      "page": "get_ccp",
      "title": "Identify at most one consistent correlation peak (ccp)",
      "topics": [
        "get_ccp"
      ]
    },
    {
      "page": "get_ccr_peaks",
      "title": "Identify peaks of a cross correlation curve",
      "topics": [
        "get_ccr_peaks"
      ]
    },
    {
      "page": "get_CMPS",
      "title": "Compute the CMPS score",
      "topics": [
        "get_CMPS"
      ]
    },
    {
      "page": "get_seg_scale",
      "title": "Change the sacle of a segment",
      "topics": [
        "get_seg_scale"
      ]
    },
    {
      "page": "get_segs",
      "title": "Divide a bullet signature/profile into basis segments of desired length",
      "topics": [
        "get_segs"
      ]
    },
    {
      "page": "local_max_cmps",
      "title": "find local maximums",
      "topics": [
        "local_max_cmps"
      ]
    },
    {
      "page": "metric_plot_helper",
      "title": "Helper Function for Plotting the Distribution of a Metric",
      "topics": [
        "metric_plot_helper"
      ]
    },
    {
      "page": "na_trim_cmps",
      "title": "Wrapper function for na_trim",
      "topics": [
        "na_trim_cmps"
      ]
    }
  ],
  "_readme": "https://github.com/willju-wangqian/cmpsr/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "cmpsR-vignette.Rmd",
      "filename": "cmpsR-vignette.html",
      "title": "cmpsR-vignette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Example and Summary of the Algorithm",
        "Main Idea",
        "Full Comparison Between Two Bullets",
        "Reference"
      ],
      "created": "2021-10-18 03:59:27",
      "modified": "2022-07-18 03:01:19",
      "commits": 3
    }
  ],
  "_score": 3.929418925714293,
  "_indexed": true,
  "_nocasepkg": "cmpsr",
  "_universes": [
    "willju-wangqian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:47.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/afd3b8a9243dac280e2c92b4d7db0796b638c7930743bc66a7bf7d38cb1cdc62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:45.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/6ec0081e7db4458fe9d803c70965adf94561be0fa87fe732cc26328e2c909e1d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:42.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/f2e686141bed03a44eae7664e1a9a1dce5685dbd216dc372aaa0851ffcc86628",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:34.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/15b11371662b0589f4cd4bf13c3db45230284ade22758c17eb1743deab831e2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T07:35:26.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/4f44bfcbf5b79cf5845a2659dbd75b212d154d52e9ee4dd30bb14ccbe11230db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T07:36:12.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/32f48a13dd68cf3b72d39a7bf5efb28da234cb40cccfd10e2a273e73cd2aa69b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:57.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/df3c5c65b19d9cd9c740af7eab4c6dad33415c27742f831d7e0222ea417a48e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T07:37:00.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/f871c4239adbaba47f91b83481f25a3235ff99592aeec5d60226235923d6e658",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-21T07:34:51.000Z",
      "arch": "emscripten",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/fd97e078fe39e02495b3a49b1d450a5e65f4a82faae85f0f5cabc387abdcb484",
      "status": "success",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T07:37:42.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/956a0964675b2b22011072a1e06b25e497fd672c474e9837d64ee25323542a8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T07:33:30.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/d03be3900703c141679679ea2f28bb6c8bc238e30cc34872005278d215aec024",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T07:33:37.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/53cb52a7fc092f9020573baa19c801866c1b889c9eea4e693d5443ba35045d7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T07:37:40.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/51c5d6909554570d86dddaddce53c92d4233ad091476c02b87e7e1e668cd6130",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T07:33:48.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/16dea3bed419a3749891cb67934a9702228a7117889acce5c357cc0216a521cb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/39561746160"
    }
  ]
}