This method extracts the samples

getSample(.Object, sampleName)

# S4 method for 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)

  • .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)
#> Loading config file: /private/var/folders/3f/0wj7rs2144l9zsgxd3jn5nxc0000gn/T/RtmpEYsaEm/temp_libpath43b174cbd72/pepr/extdata/example_peps-master/example_basic/project_config.yaml
#> Warning: incomplete final line found on '/private/var/folders/3f/0wj7rs2144l9zsgxd3jn5nxc0000gn/T/RtmpEYsaEm/temp_libpath43b174cbd72/pepr/extdata/example_peps-master/example_basic/project_config.yaml'
sampleName = "frog_1" getSample(p, sampleName)
#> sample_name protocol file #> 1: frog_1 anySampleType data/frog1_data.txt