load_fluorescence_data: Import fluorescence data

View source: R/01_load_fluorescence_data.R

load_fluorescence_dataR Documentation

Import fluorescence data

Description

Reads a file containing fluorescence data (in which rows correspond to probes and columns correspond to fluorescence values) and reformats it. The output from this function is suitable for use by annotate_fluorescence_table.

Usage

load_fluorescence_data(fluorescence_file, pbm_conditions)

Arguments

fluorescence_file

character(1). The path to the fluorescence data file to load. See 'Details' for expected columns.

pbm_conditions

character. The PBM conditions (e.g., cell type, treatment, and factor profiled) in the order they appear in fluorescence_file.

Details

The fluorescence data file supplied to fluorescence_file must contain n + 3 tab-delimited columns, where n is the number of PBM conditions supplied to pbm_conditions. This file must NOT have a header. The columns must be as follows:

  1. The probe ID. The orientation tags (i.e., "_o1" or "_o2") will be removed from these IDs.

  2. The probe sequence. This column will be removed.

  3. The number of PBM conditions profiled on this array. This column will be removed.

Columns 4 through (n + 3) must contain the fluorescence values for the PBM conditions in the order they appear in pbm_conditions.

Value

A data frame containing the fluorescence values from the specified fluorescence data file. The first column will be named "probe_id", and the remaining columns will be named according to the PBM conditions supplied to pbm_conditions.

Examples

print("FILL THIS IN")

Siggers-Lab/hTF_array documentation built on Feb. 7, 2024, 11:25 p.m.