{
  "_id": "6b001cf9304827bb829a190b",
  "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-11-20 10:04:29 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/b37b8e2c53fb7af9b475d855d8d728d5050a83f7ea7066a6a73fb02cf0e0905d",
  "_filesize": 4198179,
  "_sha256": "b37b8e2c53fb7af9b475d855d8d728d5050a83f7ea7066a6a73fb02cf0e0905d",
  "_expires": "2027-02-28T10:12:07.000Z",
  "_created": "2026-11-20T10:04:29.000Z",
  "_published": "2026-11-20T10:12:09.483Z",
  "_upstream": "https://github.com/willju-wangqian/cmpsr",
  "_status": "success",
  "_maintainer": {
    "name": "Wangqian Ju",
    "email": "wju@iastate.edu",
    "login": "willju-wangqian",
    "description": "",
    "uuid": 54684730,
    "orcid": "0000-0002-9977-377X"
  },
  "_jobs": [
    {
      "job": 136219872343,
      "time": 128,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14619104050"
    },
    {
      "job": 136219872397,
      "time": 174,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14619064236"
    },
    {
      "job": 136219872499,
      "time": 146,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14620175253"
    },
    {
      "job": 136219872304,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14619039281"
    },
    {
      "job": 136219872393,
      "time": 244,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14619842165"
    },
    {
      "job": 136219872432,
      "time": 304,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14620415184"
    },
    {
      "job": 136219872402,
      "time": 252,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14619398371"
    },
    {
      "job": 136219872367,
      "time": 419,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14620185835"
    },
    {
      "job": 136217987980,
      "time": 226,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14619657018"
    },
    {
      "job": 136219872245,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14619771747"
    },
    {
      "job": 136219872406,
      "time": 381,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14620131125"
    },
    {
      "job": 136219872291,
      "time": 166,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14619602594"
    },
    {
      "job": 136219872329,
      "time": 118,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "14619293677"
    },
    {
      "job": 136219872400,
      "time": 406,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14620185830"
    },
    {
      "job": 136219872501,
      "time": 110,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14619827017"
    }
  ],
  "_buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 2,
  "_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": 499,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cmpsR"
  },
  "_devurl": "https://github.com/willju-wangqian/cmpsr",
  "_abi": {
    "exports": [
      {
        "key": "cmpsR/include",
        "hash": "945beb59cf3d04da"
      },
      {
        "key": "cmpsR::compute_cross_corr()",
        "hash": "36ea258b8dcd0a3b"
      },
      {
        "key": "cmpsR::local_max_cmps()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "cmpsR::na_trim_cmps()",
        "hash": "33a97ea62b293da6"
      }
    ],
    "imports": []
  },
  "_rbuild": "4.6.2",
  "_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"
    }
  ],
  "_authors": [
    {
      "name": "Wangqian Ju",
      "email": "wju@iastate.edu",
      "orcid": "0000-0002-9977-377X",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Heike Hofmann",
      "email": "hofmann@iastate.edu",
      "orcid": "0000-0001-6216-5183",
      "role": [
        "ctb"
      ]
    }
  ],
  "_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": 4,
  "_indexed": true,
  "_nocasepkg": "cmpsr",
  "_universes": [
    "willju-wangqian"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:24.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/bf65b788465778085e1893d25da7bca580eb43f4c6b274c6ec35a888100c7753",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:54.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/d1cab4443fa26dbbc3946a3c18bc6784a2ce41b448f45dbd3a7f6450e4d53641",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/c9603799729c19836df2e74134124f44c8da51a55f66d23a736ffc243282e11c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:45.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/e851b29d79db918b0f41696a68cb9e0a1d4dfb168ec5e8a9a2c6bb0f60898759",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-20T10:07:34.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/2665ff31ed017cb3d8f8d974d6e621898f10b244a1506062dec9e6638d251cc9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-20T10:08:18.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/36f4a1950cab5521579536f61b2cbfe702d3c1499bca066e164afa61624a4bf0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-20T10:07:14.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/de13ba5e4a1a658ec7cfe5f22374d076129b1ebab44c3c9551fad36cd8b526c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-11-20T10:09:15.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/ae584a29a87cd8b022fecf182c455cc505c1dec9c1702317f2d94897ebe60885",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:38.000Z",
      "arch": "emscripten",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/44bc5f6b0521d68858722ebe43629b1dbf9ea2fbe1cf4390ad847c5ba64c8a3a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-20T10:09:36.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/a02277d35d0e007cfb7194e7f0c1de95fc5a27c50e918f2032b0e682aaeb697e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-20T10:06:00.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/e342369e1df3291efae82c994dcd19ec4c815e637fb4d21fc000526a6e3e1b00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-20T10:05:50.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/6e673d7d455ae0a27fc65f9c86d486780dea68a694a18872e3a94cd7e9ba8d89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-20T10:10:17.000Z",
      "arch": "aarch64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/851aa196ba527d42bbbf347b59ccfc5a7d06b24b5f68633f4c2232188c2dc875",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-11-20T10:05:44.000Z",
      "arch": "x86_64",
      "commit": "87baa1bf111639894daffc9e8eb385290ceb55c8",
      "fileid": "https://r2.ropensci.org/2d908356c16f9fbc445183496f52fb3c94fc11ee01fbcc22ec1da216720ba4c2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/willju-wangqian/actions/runs/44715448568"
    }
  ]
}