{
  "_id": "6a12aad7acfb0bcc41d1717b",
  "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-05-24 07:31:25 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>",
  "MD5sum": "8c943ba5d6413e00b43de6d825152af4",
  "_user": "willju-wangqian",
  "_type": "src",
  "_file": "cmpsR_0.1.2.tar.gz",
  "_fileid": "df252c32e16de86cd0294abba293e56fec047e83a3d879ed34f8dd3b0ca9ba56",
  "_filesize": 4197527,
  "_sha256": "df252c32e16de86cd0294abba293e56fec047e83a3d879ed34f8dd3b0ca9ba56",
  "_created": "2026-05-24T07:31:25.000Z",
  "_published": "2026-05-24T07:37:59.296Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77580632410,
      "time": 169,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183300610"
    },
    {
      "job": 77580632406,
      "time": 214,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183305275"
    },
    {
      "job": 77580632414,
      "time": 168,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183300427"
    },
    {
      "job": 77580632413,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183300255"
    },
    {
      "job": 77580632405,
      "time": 140,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183302194"
    },
    {
      "job": 77580632408,
      "time": 328,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183319208"
    },
    {
      "job": 77580632409,
      "time": 172,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183309620"
    },
    {
      "job": 77580632420,
      "time": 247,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183309804"
    },
    {
      "job": 77580436886,
      "time": 209,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183282116"
    },
    {
      "job": 77580632398,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183296143"
    },
    {
      "job": 77580632419,
      "time": 142,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183297777"
    },
    {
      "job": 77580632416,
      "time": 104,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183293289"
    },
    {
      "job": 77580632412,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183295010"
    }
  ],
  "_buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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"
  },
  "_downloads": {
    "count": 253,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cmpsR"
  },
  "_devurl": "https://github.com/willju-wangqian/cmpsr",
  "_searchresults": 16,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/cmpsR.html",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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.9030899869919438,
  "_indexed": true,
  "_nocasepkg": "cmpsr",
  "_universes": [
    "willju-wangqian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-24T07:34:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "09a996a239117509ec047059ad6149a6bbbbd44d9f36531b0eaf0c2740a22b01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-24T07:34:41.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "ec7fcc64d00f415557e47b014e8e6df62918a4da6aa8ef33a252884a48dba2df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-24T07:34:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "4fd11390f3bbcb107559a05c9ca791375c5e02f9e1ffd6084b2d606dae6850ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-24T07:33:53.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "47d9a66ff477203309452d5bcee617b3925e3a46337fcd6a4124b446e381261a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-24T07:34:25.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "e24d9c0ba2edab2ba6ee84ab23b6bb9474ee5d75cd91b5db5b6404a9c80d9730",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-24T07:36:19.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "213f7f1a52c3a059daf04ca68ecf72ae58c07c845aa3b248b61b64affdeeab1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-24T07:35:17.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "75e4cce755699ac8a26053ccb52b1b4b850bda4971cc7bc4f1ab49bbb53b1cf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-24T07:35:10.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "241bab3d92e21b58cdd189b45550df4dd35bc9097b84ba883001f6bc44efeac5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-05-24T07:33:51.000Z",
      "arch": "emscripten",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "752c0ee3e6443a1cc00b910adc2621304fd3bc30591cff83f6c5e6dac4273b35",
      "status": "success",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-24T07:33:09.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "36cab41b84c67e7d7918c378f2b5409d2e9d0c3caeb7a8591fccfc9efc04f9bc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-24T07:32:39.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "2b0aa0b3889e6aa2c22bb5e84598e811322fb9b20bedd54a18230b75105c5d4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-24T07:32:49.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "5b27ef535fee604faca75bf791664c841dae551a6f17ccda8d00d4a3e3556606",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/26355148853"
    }
  ]
}