Skip to content

Parametric Time Warping

5packages depend
14.2Kdownloads / year
20.2%test coverage
13/13flavors OK

Overview

About

Parametric Time Warping aligns patterns, i.e., it aims to put corresponding features at the same locations. The algorithm searches for an optimal polynomial describing the warping. It is possible to align one sample to a reference, several samples to the same reference, or several samples to several references. One can choose between calculating individual warpings, or one global warping for a set of samples and one reference. Two optimization criteria are implemented: RMS (Root Mean Square error) and WCC (Weighted Cross Correlation). Both warping of peak profiles and of peak lists are supported. A vignette for the latter is contained in the inst/doc directory of the source package - the vignette source can be found on the package github site. See `citation("ptw")` for more details.

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.9-17
READMENoVignettesNoNEWSYes · 100% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
22 (1 internal)includes a package overview page
Examples that run
90%18 run in a plain check · 2 never run
Exported functions with examples
100%
Documented parameters
92%
Return-value docs
94%
Help pages citing references
73%

Also includes 3 demo scripts (run with demo())

Downloads

14.2K
CRAN downloads in the past year
Rank #3,627 · ~39/day · ~1.2K/mo
Daily download trend is not available in this view yet.
1.1K30 days
2.8K90 days
14.2K1 year
Compare downloads with other packages →
Also on2.5K r2u3 autocran6.1K conda_forge254 bioconda3.9K c2d4u

Repository

8Stars
5Forks
5Open issues
0Open PRs
0Releases
71Commits
4Commit identities
71 commits · Last activity 2026-01-19
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2023-03-06 · 82026-07-07 · 8
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/rwehrens/ptw on 2026-10-21.

Continuous integration (1)
Travis CI (config file)
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing ptw adds 3 packages (3 with compiled code, 3.1 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB, RcppDE 284 KB.

Depends (0)
none
Imports (4)
RcppDEgraphicsgrDevicesstats
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
5direct
3indirect
Depends 1 · Imports 4
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (5)
Author, Maintainer since 1.9-10 (2015)
Contributor
Contributor

Previously maintained by Tom Bloemberg (1.0-0 to 1.0-7).

Listed in earlier versions (1)
no longer listed · 1.0-4 to 1.0-7
Releases (15)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.9-17Latest
    record
    2026-01-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.9-16
    record
    2022-01-19 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 1.9-15
    record
    2019-11-26 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.9-13
    record
    2018-05-26 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 1.9-12
    record
    2017-03-06 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
Show 19 earlier eventsHide 19 earlier events
  • 1.9-11
    record
    2015-08-21 · diff ↗
  • 1.9-10
    record
    2015-07-01 · diff ↗ ·
    removed 1 export
    pattern:.
    added 21 exports
    ptw, baseline.corr, bestref, coda, padzeros, ptwgrid, select.traces, stptw, whit1, whit2, calc.multicoef, calc.zerocoef, difsm, wcc, wac, wcc.st, wac.st, asysm, warp.time, pktab2mzchannel, mzchannel2pktab
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.0-7
    record
    2014-03-30 · diff ↗
  • 1.0-6
    record
    2013-11-19 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 1.0-5
    record
    2013-01-09 · diff ↗
  • 1.0-4
    record
    2012-08-08 · diff ↗
  • 1.0-3
    record
    2012-07-26 · diff ↗
  • 1.0-2
    record
    2012-06-19 · diff ↗ ·
    added 1 export
    pattern:.
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • 1.0-1
    record
    2010-11-17 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • R
    R 2.11.0 released · 2010-04-22
  • 1.0-0
    record
    2009-10-27
  • R
    R 2.10.0 released · 2009-10-26

Package metadata

First published
2009-10-27
Total releases
15 / 17 yrs
License
GPL (>= 2) OSI
Bundled data
2.5 MB / 3 files
Download size
4.0 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ptw")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ptw version 1.9-17 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy