This method extracts the samples
getSample(.Object, sampleName)
# S4 method for class 'Project,character'
getSample(.Object, sampleName)data.table one row data table with the sample associated metadata
getSample(.Object = Project, sampleName = character): extracts the sample from the "Project" object
projectConfig = system.file(
"extdata",
"example_peps-master",
"example_basic",
"project_config.yaml",
package = "pepr"
)
p = Project(projectConfig)
#> Loading config file: /home/runner/work/_temp/Library/pepr/extdata/example_peps-master/example_basic/project_config.yaml
sampleName = "frog_1"
getSample(p, sampleName)
#> sample_name protocol file
#> <char> <char> <char>
#> 1: frog_1 anySampleType data/frog1_data.txt