View source: R/immunemap-integration.R
get.immap.metadata | R Documentation |
Get metadata from tracks obtained from https://immunemap.org and import into celltrackR.
get.immap.metadata(
input,
warn.exclude = TRUE,
exclude.names = c("points", "cellTypeObject", "date")
)
input |
a parsed json file obtained with |
warn.exclude |
logical: if |
exclude.names |
if the json contains keys with these names, they are ignored when reading the metadata. |
a dataframe with metadata. This function currently only handles metadata with a single
value for each track and ignores others (with a warning when warn.exclude=TRUE
).
column names in the dataframe correspond to the keys in the original json, and values to
the values for each track.
## Not run:
## Read tracks from immunemap online
input <- parse.immap.json( url = "https://api.immunemap.org/video/14/tracks" )
meta.df <- get.immap.metadata( input )
## Repeat but ignore also the 'color' column:
exclude <- c("points", "cellTypeObject","date", "color")
meta.df <- get.immap.metadata( input, exclude.names = exclude )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.