getSubsample: Extract subsamples

getSubsampleR Documentation

Extract subsamples

Description

This method extracts the subsamples

Usage

getSubsample(.Object, sampleName, subsampleName)

## S4 method for signature 'Project,character,character'
getSubsample(.Object, sampleName, subsampleName)

Arguments

.Object

An object of Project class

sampleName

character the name of the sample

subsampleName

character the name of the subsample

Value

data.table one row data table with the subsample associated metadata

Methods (by class)

  • getSubsample( .Object = Project, sampleName = character, subsampleName = character ): extracts the subsamples from the "Project" object

Examples

projectConfig = system.file(
"extdata",
"example_peps-master",
"example_subtable1",
"project_config.yaml",
package = "pepr"
)
p = Project(projectConfig)
sampleName = "frog_1"
subsampleName = "sub_a"
getSubsample(p, sampleName, subsampleName)

pepr documentation built on Nov. 21, 2023, 5:06 p.m.