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