tidy_raw_trace: Correct raw trace csv file from ImageJ

View source: R/read_trace.R

tidy_raw_traceR Documentation

Correct raw trace csv file from ImageJ

Description

This function takes the raw trace csv file from ImageJ and applies a series of corrections to it such that it can be used in this package. This involves correcting the default y-axis values, ordering, filtering, and adding proper names to the data frame.

Usage

tidy_raw_trace(filepath_trace, col_x = 1, col_y = 2)

Arguments

filepath_trace

the path to the csv file containing the raw trace data from ImageJ

col_x

column of the x values, default is set to first column.

col_y

column of the y values, default is set to second column.

Value

One trace data frame after correcting ImageJ's default origin placement

Examples

## Not run: 
filepath <- system.file("extdata", "WS_25_1981", package = "recoverKBTDR")
filepath_trace <- paste(filepath, "WS_25_1981_trace.csv", sep = "/")
tidy_raw_trace(filepath_trace, col_x = 1, col_y = 2)

## End(Not run)


EmmaLiTsai/recoverKBTDR documentation built on Aug. 29, 2024, 10:38 a.m.