readSampleInfo: Load a CSV containing required information about each sample

Description Usage Arguments Value

View source: R/utility.r

Description

The CSV file must contain the following columns: "sample" - unique sample IDs, "group" - group IDs, "bam" - path to BAM file containing aligned reads for the sample. Columns with other names will be retained but ignored. Note that in subsequent reporting of pattern strings (where each digit represents a group), digits for each group will be ordered in the order they first appear in this samplesheet.

Usage

1

Arguments

file

Path to the CSV samplesheet to open. Must contain the columns described above.

colors

Vector of colors (one for each group) in same order as groups appear in the sample file. These will be uniform colors used in the plotting functions for these groups. Give colors as hex codes. If none are provided they will be auto-selected using RColorBrewer. Alternatively, if there is a column named "color" in the CSV, then these will always be used.

Value

A data.frame of the samplesheet that will be valid input to the "samp" arguments of other functions.


jeffbhasin/methylaction documentation built on May 19, 2019, 1:46 a.m.