calculate_MS: Calculate Maximum Slope

View source: R/calculate_MS.R

calculate_MSR Documentation

Calculate Maximum Slope

Description

Uses a sliding window to calculate the slope of real-time reads.

Usage

calculate_MS(data, window = 3, data_is_norm = TRUE)

Arguments

data

A dataframe containing real-time reads. It is recommended to use a dataframe made from normalize_RFU.

window

Integer designating how wide you want the sliding window to be for calculating the moving average slope.

data_is_norm

Logical; if FALSE, will make a call to normalize_RFU.

Value

A dataframe containing the real-time slope values as change in RFU/sec.

Examples

# This test takes >5 sec

file <- system.file(
  "extdata/input_files",
  file = "rt_data.csv",
  package = "quicR"
)
df_ <- read.csv(file, check.names = FALSE)
calculate_MS(df_)



quicR documentation built on April 3, 2025, 11:20 p.m.