Skip to contents

Get sample data from YAML

Usage

getSampleDataFromYaml(yaml)

Arguments

yaml

list. YAML metadata.

Value

DataFrame.

Note

Updated 2022-03-07.

Author

Michael Steinbaugh

Examples

file <- file.path(bcbioBaseTestsUrl, "summary.yaml")
yaml <- import(file)
#> → Downloading <https://r.acidgenomics.com/testdata/bcbiobase/summary.yaml> to /private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/RtmprBcLWH/DChiyE7Afr-169651164541055/pipette-10f0e87f9972.yaml.
#> → Importing <https://r.acidgenomics.com/testdata/bcbiobase/summary.yaml> using yaml::`yaml.load_file()`.
x <- getSampleDataFromYaml(yaml)
#> → Getting sample metadata from YAML.
summary(x)
#> [1] "DataFrame object of length 5 with 0 metadata columns"
colnames(x)
#> [1] "sampleName"  "description" "genomeBuild" "group"       "samRef"