restore_amp_names: Restore amplicons names in LinRegPCR output

View source: R/restore_amp_names.R

restore_amp_namesR Documentation

Restore amplicons names in LinRegPCR output

Description

restore_amp_names() is useful when LinRegPCR output files contain a single amplicon, in which case the amplicon name is replaced by "not_named".

The function takes xlsx files produced by LinRegPCR as inputs and returns csv files in which the amplicon names have been restored based on files names.

Usage

restore_amp_names(path, filenames)

Arguments

path

a string specifying the path to the directory containing LinRegPCR output files.

filenames

a character vector containing the names of xlsx files produced by LinRegPCR, with the xlsx extension included. The files must be of xlsx type and their name must match the following regex pattern: "^.*_amplicon.name.xlsx$".

Value

For each xlsx file provided as input, a csv file in which the amplicon name has been restored. The csv files are written in the directory indicated by the path argument.


benvallin/banban documentation built on Sept. 29, 2023, 5:46 a.m.