| write_thresholds | R Documentation |
write_thresholds() saves thresholds to a YAML file, and
read_thresholds() reads them back.
Use the file to apply the same quality-control policy to each study, or to
load thresholds that you tuned in nacho_app().
The Export page of the app writes the same file.
write_thresholds(thresholds, file)
read_thresholds(file)
thresholds |
A list of thresholds, as returned by |
file |
The path of the YAML file. |
In the file, .inf and -.inf are open bounds, and .na.character is an
unknown instrument.
You can edit the file by hand.
read_thresholds() reads whole numbers such as 80 as numbers, and checks
the thresholds as normalise() does.
If the file does not give a miRNA threshold (Ligation_order,
Ligation_R2, Ligation_NEG or Haemolysis), read_thresholds() uses the
value of the preset in the file.
write_thresholds() returns file, invisibly.
read_thresholds() returns the list of thresholds.
file <- tempfile(fileext = ".yml")
thresholds <- nacho_thresholds("sprint")
thresholds$FoV <- 80
write_thresholds(thresholds, file)
read_thresholds(file)
unlink(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.