Revision 5b8431ba571c216741ecf0b452522eadc983bf29 authored by Vladislav Kamenev on 26 October 2018, 11:45:43 UTC, committed by Vladislav Kamenev on 29 October 2018, 13:01:51 UTC
1 parent 1c57067
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 seq_len(nrow(fDataQuery))) {
row <- fDataQuery[i,]
response[['fdata']][[row$name]] <- fData(es)[[row$name]][row$indices[[1]]]
}
jsonlite::toJSON(response)
}
Computing file changes ...