View source: R/reading_classifications.R
import_emf_classifications | R Documentation |
Allows the reading in of EMF classification results from a JSON file.
import_emf_classifications(
classification_file,
remove_categories = list(Sphingolipids = c("neutral glycosphingolipids",
"acidic glycosphingolipids")),
fix_json = FALSE
)
classification_file |
the file to read from |
remove_categories |
a named list of categories and classes to remove (see Details) |
fix_json |
properly format the JSON so the JSON parser can read it? |
'remove_categories' is used to define which categories and sub-classes of lipids to remove. The default is a list for two classes in *Sphingolipids* that are known to be over assigned, *neutral glycosphingolipics* and *acidic glycosphingolipids*. The top name of the list defines the *Category* level, and then the text entries underneath define the *Classes* to remove. See examples for different ways to define this list that should do different things.
data.frame
## don't run these
## Not run:
# turn off filtering behavior
import_emf_classifications("categories.json", remove_categories = NULL)
# filter ALL Sphingolipids
import_emf_classifications("categories.json", remove_categories = list(
Sphingolipids = NULL))
# filter Ceramides
import_emf_classifications("categories.json", remove_categories = list(Sphingolipids = "ceramides"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.