Learn R Programming

pepr (version 0.5.0)

getSample: Extract samples

Description

This method extracts the samples

Usage

getSample(.Object, sampleName)

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

Value

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

Arguments

.Object

An object of Project class

sampleName

character the name of the sample

Methods (by class)

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

Examples

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

Run the code above in your browser using DataLab