Revision 27fbda84308c033e99139d5fb248d2857f01eb97 authored by Vladislav Kamenev on 08 September 2018, 23:34:46 UTC, committed by Vladislav Kamenev on 08 September 2018, 23:34:46 UTC
1 parent 06931f9
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 ...