Revision d79b9ae8f0589d6a22a507342fd52299167c65af authored by petrovich on 02 September 2018, 21:08:51 UTC, committed by petrovich on 02 September 2018, 21:08:51 UTC
1 parent 7ccb9f0
probeDataset.R
probeDataset <- function (es, query) {
exprsIndices <- query$exprs;
fDataQuery <- query$fData;
response <- list()
response[['dims']] <- dim(exprs(es))
response[['fvarLabels']] <- colnames(fData(es))
response[['probe']] <- exprs(es)[exprsIndices]
response[['fdata']] <- list()
for(i in 1:nrow(fDataQuery)) {
row <- fDataQuery[i,]
response[['fdata']][[row$name]] <- fData(es)[[row$name]][row$indices[[1]]]
}
jsonlite::toJSON(response)
}
Computing file changes ...