{
  "_id": "6a4966da3c3572b93bf7f339",
  "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-06-23 07:31:14 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/78827675f613172c945e8f9fe0b97725472006a65a4c708be19671c3b4a57c09",
  "_filesize": 4205152,
  "_sha256": "78827675f613172c945e8f9fe0b97725472006a65a4c708be19671c3b4a57c09",
  "_expires": "2026-10-12T20:02:32.000Z",
  "_created": "2026-06-23T07:31:14.000Z",
  "_published": "2026-07-04T20:02:34.042Z",
  "_jobs": [
    {
      "job": 85162758683,
      "time": 198,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7814302834"
    },
    {
      "job": 85162758434,
      "time": 204,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7814303931"
    },
    {
      "job": 85162758681,
      "time": 162,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814291605"
    },
    {
      "job": 85162758614,
      "time": 164,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814290813"
    },
    {
      "job": 85162758507,
      "time": 179,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7814287757"
    },
    {
      "job": 85162758584,
      "time": 448,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7814367620"
    },
    {
      "job": 85162758460,
      "time": 200,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814287540"
    },
    {
      "job": 85162758551,
      "time": 294,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814325312"
    },
    {
      "job": 85162758328,
      "time": 277,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814233228"
    },
    {
      "job": 85162758435,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814280410"
    },
    {
      "job": 85162758613,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7814274464"
    },
    {
      "job": 85162758650,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7814271686"
    },
    {
      "job": 85162758461,
      "time": 103,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7814270220"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296",
  "_status": "success",
  "_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": "noble",
  "_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": 297,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cmpsR"
  },
  "_devurl": "https://github.com/willju-wangqian/cmpsr",
  "_searchresults": 17,
  "_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.929418925714293,
  "_indexed": true,
  "_nocasepkg": "cmpsr",
  "_universes": [
    "willju-wangqian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-23T07:34:29.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/a5ff43396651fb8594e02d3e0907da53d5ca305f5e5884733d2814075e39daa7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-23T07:34:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/584299d7c37dd009f3877ff69cf811ab2d6a88be32a7ac8cf2e659eb3aa609a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-23T07:33:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/5348c383459a429f6608d56b6ef0fdb5e12057f7c0cee738a7e029c05efca044",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-23T07:33:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/30737950b13bae4b82c23e0af4eb8f8e6c37ad420ffcb99f559ee4dab817345c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-23T07:33:46.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/2a15fe5d2e80834c59a63360afb93bf78f3647ad91f700707687ea51e9ad1ab7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-23T07:36:15.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/b1ccc5ce79d279ba17e4cbfeb8081abde8ab0b895661d0cf71c83804752b05e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-23T07:33:35.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/c532c880b6b2a35986abba074a3f21e4a04e22344d79e292eade29ee19e365cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-23T07:34:53.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/d18afe42f088c6696d7d2f2b73337e7534cfa21f7c8fafba3abd3fe6f6f68854",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-23T07:33:48.000Z",
      "arch": "emscripten",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/626e932d915bc7c610f1ed6b7843e4c883b96f37af1e6f5636bd828eccb9659b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-23T07:32:46.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/5b353acad7ca1bb461c69fa09dc03951a8d0a202a38157b116fb9bf6bb1b6b15",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-23T07:32:38.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/ca7fbee544c2ddcc561ed3712ec56a15bfef78542f788f7a61ac5929a7e64281",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-23T07:32:36.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/9add8555ff7e3da754b8d92dbfd7a3a462027e6cab686cef94c154da90778919",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/28009654296"
    }
  ]
}