knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

lifecycle CRAN status

Read, ~~Validate~~, ~~Simulate~~ and ~~Write~~ YeastGrower (aka ACCESS) files.

Installation

# install.packages("readyg") # not yet.
remotes::install_github("npjc/readyg")

Example

Yeast Grower/ACCESS files are written in windows ini format (sort-of). read_yg() parses this format and returns the data in a format suitable for analysis or exporting (writing) to a .csv files.

library(readyg)
files <- yg_example_files()
read_yg(files[1])
read_yg(files[1], all_fields = TRUE) # full yg has quite a lot of fields...

In the individual sections:

d <- read_yg(files[1], all_fields = TRUE)
d$data
d$run_params
d$drug_data

If you want the information in the other sections , you can use read_ini() instead. This parses the ini file into a list:

l <- read_ini(files[1])
str(l, 1)

Additional Info

YeastGrower/ACCESS encodes data in non-standard ways that read_yg() corrects:

data section:

all the keys

The Yeast Grower format has some use of nearly 3000 separte keys (fields). To retrieve all of them:

yg_section_keys()


npjc/readyg documentation built on Oct. 21, 2019, 4:59 p.m.