Revision 26733f88b8b7c1409547009d4051aa4b27e3f50b authored by petrovich on 30 August 2018, 03:44:23 UTC, committed by petrovich on 30 August 2018, 03:44:23 UTC
1 parent 2172598
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 ...