load_samples: Load sample metadata file

Description Usage Arguments Value

View source: R/load_samples.R

Description

Loads a tab-delimited file containing the sample metadata. There should be at least two columns - one called basename (containing the basename of the samples) and another containing the contrasts of interest. Another column containing an additional factor of interest which should be taken into account may also be included.

Usage

1
2
load_samples(sample.path = NULL, contrast.column = NULL,
  block.column = NULL, contrast.levels)

Arguments

sample.path

Character string. Full path to sample metadata file.

contrast.column

Chacter string. Column in sample metadata file that contains the contrasts of interest.

block.column

Character string. Column in sample metadata file that contains blocking factors.

contrast.levels

Character vector. The contrast levels listed in the order they should be compared as present in the contrast column of the metadata file (e.g. c("WT", "KO")).

Value

A dataframe of the sample metadata.


anilchalisey/parseR documentation built on May 7, 2019, 7:45 a.m.