Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

LPWC: Lag Penalized Weighted Correlation for Time Series Clustering

Authors: Thevaa Chandereng and Anthony Gitter

Overview

Lag Penalized Weighted Correlation (LPWC) is a method for clustering short time series data. It is designed to identify groups of biological entities (for example, genes or phosphosites) that exhibit the same pattern of activity changes over time. LPWC allows lags to incorporate delayed responses in the biological data. For example, two genes may have similar expression changes over time, but one initiates those changes 5 minutes after the other. LPWC also supports irregular time intervals between time points collected in biological data.

Installation

Prior to analyzing your data, the R package needs to be installed.

The easiest way to install LPWC is through CRAN:

install.packages("LPWC")

There are other additional ways to download LPWC. The first option is most useful if want to download a specific version of LPWC (which can be found at https://github.com/gitter-lab/LPWC/releases).

devtools::install_github("gitter-lab/LPWC@vx.xx.x")
# OR 
devtools::install_version("LPWC", version = "x.x.x", repos = "http://cran.us.r-project.org")

The second option is to download through GitHub.

devtools::install_github("gitter-lab/LPWC")

After successful installation, the package must be loaded into the working space:

library(LPWC)

Usage

See the vignette for usage instructions.

Reference

If you use LPWC, please cite

Lag Penalized Weighted Correlation for Time Series Clustering. Thevaa Chandereng, Anthony Gitter. bioRxiv 2018. doi:10.1101/292615

License

LPWC is available under the open source MIT license.

Copy Link

Version

Install

install.packages('LPWC')

Monthly Downloads

22

Version

0.99.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Thevaa Chandereng

Last Published

June 4th, 2018

Functions in LPWC (0.99.3)

wt.corr

Weighted correlation
weight.lag

Weight Lag
comp.corr

Computing corr
corr.bestlag

Computes best lag correlation
prep.data

Preparing Data
simdata

Example datasets for LPC
score

Score of Lags
weight

Weight in correlation
best.lag

Best Lag
findC

Finding best C