Load multiple hap.py results into a happy_samplesheet object starting from a samplesheet csv.

read_samplesheet(samplesheet_path, lazy = TRUE)

Arguments

samplesheet_path

Path to samplesheet.csv. Required fields: replicate_id, happy_prefix.

lazy

Do not load larger hap.py results until needed. Default: TRUE.

Value

A happy_samplesheet object, with the following fields:

  • samplesheet: the original samplesheet, stored as a data.frame.

  • results: a happy_result_list that contains individual happy_result objects.

Examples

# NOT RUN { ## example happyr_samplesheet.csv # group_id,replicate_id,happy_prefix # PCR-Free,NA12878-I30,NA12878-I30_S1 # PCR-Free,NA12878-I33,NA12878-I33_S1 # Nano,NA12878-R1,NA12878-R1_S1 # Nano,NA12878-R2,NA12878-R2_S1 hap_samplesheet <- read_samplesheet(samplesheet_path = 'happyr_samplesheet.csv') # }