getSample: Extract samples

getSampleR Documentation

Extract samples

Description

This method extracts the samples

Usage

getSample(.Object, sampleName)

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

Arguments

.Object

An object of Project class

sampleName

character the name of the sample

Value

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

Methods (by class)

  • getSample(.Object = Project, sampleName = character): extracts the sample from the "Project" object

Examples

projectConfig = system.file(
"extdata",
"example_peps-master",
"example_basic",
"project_config.yaml",
package = "pepr"
)
p = Project(projectConfig)
sampleName = "frog_1"
getSample(p, sampleName)

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